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

Sourcing credentials with an external process #16

Open
elyzov opened this issue Feb 10, 2023 · 0 comments · May be fixed by #17
Open

Sourcing credentials with an external process #16

elyzov opened this issue Feb 10, 2023 · 0 comments · May be fixed by #17

Comments

@elyzov
Copy link

elyzov commented Feb 10, 2023

Problem

I have a special binary which implements custom logic of obtaining Vault token in clouds. It would be very nice to have an ability to sourcing Vault credentials (token) with an external process, like it's implemented in AWS CLI for seamless integration with custom binaries.

Possible Solution

Provide an ability to specify the credential_process option in the config, and if it's specified sourcing Vault token with an external process, e.g.

[global]
# Vault address
address = "http://127.0.0.1:8200"
# Process to retrieve vault token
credential_process = "get-vault-token -f credential-process"

Custom binary should produce the token in the following format (like in AWS CLI):

{
  "Version": 1,
  "TokenId": "an Vault access token"
} 

So, it's pretty straightforward to implement such a logic, but it opens ability to plenty of custom integrations.

elyzov pushed a commit to elyzov/rvault that referenced this issue Feb 14, 2023
@elyzov elyzov linked a pull request Feb 14, 2023 that will close this issue
elyzov pushed a commit to elyzov/rvault that referenced this issue Jun 22, 2023
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 a pull request may close this issue.

1 participant