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

Add secrets.json #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marczych
Copy link

This augments the environment_secrets repository rule to also emit
secrets.json alongside secrets.bzl. This allows application code to
parse the JSON file rather than the skylark file to retrieve all
secrets. Alternatively, the user could list the secrets in
environment_secrets, duplicate them in the load() statement, and
duplicate them in some sort of template expansion genrule to create a
file to be used at runtime.

NOTE: This also adds the latest version of skylib because it wasn't
available otherwise.

This augments the `environment_secrets` repository rule to also emit
`secrets.json` alongside `secrets.bzl`. This allows application code to
parse the JSON file rather than the skylark file to retrieve all
secrets. Alternatively, the user could list the secrets in
`environment_secrets`, duplicate them in the `load()` statement, and
duplicate them in some sort of template expansion genrule to create a
file to be used at runtime.

NOTE: This also adds the latest version of skylib because it wasn't
available otherwise.
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

Successfully merging this pull request may close these issues.

1 participant