Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge env vars from config and secrets #74

Open
oxaronick opened this issue Jun 9, 2022 · 0 comments
Open

Merge env vars from config and secrets #74

oxaronick opened this issue Jun 9, 2022 · 0 comments

Comments

@oxaronick
Copy link

If an env var, say "SOME_API", is defined as a JSON object string in both config and secrets, currently the value from secrets will overwrite the value from config (when loading secrets). Instead, we define:

  • $SOME_API in config, specifying:
    • the URL to the API endpoint
    • any other non-secret info or config about that API
  • $SOME_API_SECRETS in secrets: specifying:
    • username/password/API key

It would be helpful to have ops merge these values for us, iff:

  • $SOME_API is set to a decodable JSON object in both files
  • $SOME_API decodes as an Object
  • possibly an option, like "options.config.merge_json_objects" is set to true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant