News for hackers. Stuff that matters.
Re:App Engine’s New Go 1.11 Runtime by steren on Tuesday October 16, 2018 @02:23PM (#18231841)
(App Engine PM here) At this time, app.yaml is the only way to set env vars. If you want to separate environments, you could use different .yaml files, I personally use app.staging.yaml and app.prod.yaml
Re:App Engine’s New Go 1.11 Runtime by dfischer on Tuesday October 16, 2018 @02:43PM (#18232023)
Not worried about secrets in repo?
Re:App Engine’s New Go 1.11 Runtime by CydeWeys on Tuesday October 16, 2018 @03:05PM (#18232195)
Tech Lead of Google Registry ( https://registry.google ) here. We run on GCP.

You definitely don't want to check secrets into the repo for the same reason you don't set them as environment variables: It's not secure. The solution is to use Cloud Key Management Service. More info here: https://cloud.google.com/kms/ We use that to either store secrets directly, or to decrypt encrypted entities in a DB (e.g. Datastore).

You can see how we use it here (our project is open source): https://github.com/google/nomulus/tree/master/java/google/re...

Re:App Engine’s New Go 1.11 Runtime by asciimike on Tuesday October 16, 2018 @03:39PM (#18232497)
Another great resource: https://sethvargo.com/secrets-in-serverless/

Shows how to encrypt env vars with Cloud KMS then decrypt them in memory.

Re:App Engine’s New Go 1.11 Runtime by CydeWeys on Wednesday October 17, 2018 @10:54AM (#18239643)
Neat, looks like they're using a solution similar to what we're doing, except instead of using Cloud KMS to encrypt information stored in Google Cloud Storage, we're putting our information in Datastore.

The reason being that these secrets are absolutely essential for many tasks that our registry needs to perform, and the past six years of experience have shown us that Datastore has better availability than GCS. We haven't seen Datastore ever go down unless all of Cloud is down too, whereas we have seen outages isolated to just GCS. Datastore also has lower latency (since it's a DB, not bulk file storage).

One caveat is that the maximum size of a single entity in Datastore is 1 MB -- if you're encrypting stuff larger than that then you'll need to shard (ugly) or just use GCS. Since none of our secrets are anything close to that large, it works just fine.

Re:App Engine’s New Go 1.11 Runtime by dfischer on Tuesday October 16, 2018 @08:02PM (#18234375)
This is rad. Thanks.
Re:App Engine’s New Go 1.11 Runtime by buss on Tuesday October 16, 2018 @04:00PM (#18232721)
Also, the NYTimes just published their project which integrates with HashiCorp's Vault: https://open.nytimes.com/open-source-simplifying-serverless-...
Re:App Engine’s New Go 1.11 Runtime by dfischer on Tuesday October 16, 2018 @03:48PM (#18232573)
It’d be awesome if app engine had an easy way to add this like Firebase does.

P.s typo on your link