You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Secrets set now handles test vs production secrets (#8359)
apphosting:secrets:set now asks if the secret is test-only and can update apphosting.emulator.yaml instead for these cases (as well as granting individuals or groups access).
1. When adding a new secret, prompts if this secret is for local development only.
2. If only local development, asks for a list of users or groups to grant access.
3. If local only, tries to add the secret to apphosting.emulator.yaml instead of apphosting.yaml
4. If local only, tries stripping any "test-" prefix off of suggested key names to help with user flows where people will want something like stripe-key and test-stripe-key to both point to STRIPE_KEY in apphosting.yaml and apphosting.emulator.yaml respectively
5. Fixes a slight bug where we found a project root with X file and try to insert the variable in Y file (e.g. apphosting.local.yaml exists, but we're adding to apphosting.yaml)
6. Prints guidance on how to grant access to a secret in further commands
0 commit comments