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

Enable server settings via config file and env vars #315

Merged
merged 1 commit into from Jan 5, 2022

Conversation

jdolitsky
Copy link
Contributor

Modify the viper settings in the serve subcommand to allow users to provide a config file using -c/--config vs. setting everything using command line flags.

Sinc this is based upon viper, the following config file extensions are supported: "json", "toml", "yaml", "yml", "properties", "props", "prop", "hcl", "tfvars", "dotenv", "env", and "ini".

This change also allows using env vars prefixed with FULCIO_SERVE to provide configuration settings as well.

Resolves #314

@jdolitsky jdolitsky force-pushed the issue-314 branch 4 times, most recently from 8d1d80b to 95dc24b Compare January 5, 2022 22:32
Modify the viper settings in the serve subcommand to
allow users to provide a config file using -c/--config
vs. setting everything using command line flags.

Sinc this is based upon viper, the following config file
extensions are supported: "json", "toml", "yaml", "yml",
"properties", "props", "prop", "hcl", "tfvars", "dotenv",
"env", and "ini".

This change also allows using env vars prefixed with
FULCIO_SERVE to provide configuration settings as well.

Resolves sigstore#314

Signed-off-by: Josh Dolitsky <josh@dolit.ski>
@mattmoor mattmoor merged commit dc8c121 into sigstore:main Jan 5, 2022
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.

Allow passing configuration via config file
2 participants