Skip to content

Sourcing credentials with an external process #16

Description

@diffnull

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions