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 flags for managing profiles #26

Open
jacobbednarz opened this issue Nov 11, 2020 · 2 comments
Open

Add flags for managing profiles #26

jacobbednarz opened this issue Nov 11, 2020 · 2 comments

Comments

@jacobbednarz
Copy link
Owner

jacobbednarz commented Nov 11, 2020

Sometimes we want to use cf-vault programmatically or in automation and the processes can't handle the interactive steps. To allow using it in this fashion, we can expose the options via CLI flags.

As a part of this, we need to establish and document a hierarchy of overrides. I.e config < env < flags where the last one in the chain is the value. IIRC, cobra/viper has this built-in and we can take advantage of it.

@simpsora
Copy link

simpsora commented Dec 2, 2020

Tangentially related, it would be cool to list the supported values for --profile-template.

@jacobbednarz
Copy link
Owner Author

We could do. For now, we're relying on the documentation at https://github.com/jacobbednarz/cf-vault#predefined-short-lived-token-policies

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

2 participants