Details
-
Task
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
-
None
-
None
Description
Hi,
currently the Hashicorp Plugin only supports tokens to authenticate requests against vault.
But in context of Hashicorp Vault a token should be considered as a short-time authentication methode - like a session for a website. By default configuration of vault a token expires after 30days.
Quoted from Vault documentation https://www.vaultproject.io/docs/concepts/auth
Before a client can interact with Vault, it must authenticate against an auth method. Upon authentication, a token is generated. This token is conceptually similar to a session ID on a website. The token may have attached policy, which is mapped at authentication time. This process is described in detail in the policies concepts documentation.
So proper authentication methods needs to be implemented to the Hashicorp Plugin.
Those are documented here: https://www.vaultproject.io/docs/auth
Quite popular for tooling is the AppRole Auth Method. In our case this method would fullfill all requirements. May this is good auth method to start.
Regards
Simon