Enable vault.client.api-util/api-request
to support Agent-based authentication
#63
Labels
Milestone
vault.client.api-util/api-request
to support Agent-based authentication
#63
Vault Agent can be used to handle all of the Vault authentication for an application. This means that the application doesn’t manage its own Vault tokens i.e. it can make API calls to Vault through the agent without having to retrieve a token beforehand, and the app doesn’t need to include the
X-Vault-Token
header in the request.As far as I understand, since
api-request
checks that there is a token associated with the client and includes theX-Vault-Token
header in the request, it does not support agent-based authentication.It would be great if this was supported in
api-request
, and I believe it would be possible by making the following changes:X-Vault-Token
header would be set only if there is a token associated with the clientThe text was updated successfully, but these errors were encountered: