notary

module
v0.0.0-...-b5c541a Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT

README

covidtrace/notary

Notary handles generating signed Cloud Storage PUT URLs so that the COVID Trace app can upload files directly to Cloud Storage.

API

POST /
curl -XPOST 'https://covidtrace-notary.domain/?contentType=text/csv&object=sample.csv&bucket=BUCKET'
{"success": true, "signed_url": "SIGNED_CLOUD_STORAGE_PUT_URL"}

Deploying

Notary is deployed as a Google Cloud Run service behind a rate limiting proxy. It is designed to be easy to deploy and configure using the following environment variables.

GOOGLE_SERVICE_ACCOUNT="JSON service account file generated by IAM"
CLOUD_STORAGE_BUCKETS="comma separated list of buckets to sign URLs for"

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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