proxy

package module
v0.0.0-...-33784b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2020 License: MIT Imports: 13 Imported by: 0

README

covidtrace/proxy

Proxy is a rate limiting Google Cloud Function that knows how to proxy authenticated traffic to Google Cloud Run backend services.

Proxy interacts with a Redis instance which, on Google Cloud Platform, is a private VPC service. At the time of writing, Cloud Run services have no ability to connect to private VPC services, hence the need for a Cloud Function.

Proxy is pretty tightly coupled with COVID Trace services so it's really only useful in the context of deploying a COVID Trace stack. The code is pretty simple to follow, check out proxy.go to better understand how it works and deploy.sh to see how it is deployed.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElevatedNotary

func ElevatedNotary(w http.ResponseWriter, r *http.Request)

ElevatedNotary is the cloud function that handles requests to the elevated notary service, ensuring the token is elevated and rate limiting using the JWT hash key

func Emails

func Emails(w http.ResponseWriter, r *http.Request)

Emails proxies requests to the internal email service

func Notary

func Notary(w http.ResponseWriter, r *http.Request)

Notary is the cloud function that handles requests to the notary service, rate limiting using the JWT hash key

func Operator

func Operator(w http.ResponseWriter, r *http.Request)

Operator handles proxying requests to the Operator service, rate limiting by X-Forwarded-For

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL