Subdomain 1.2: Choose an authentication method based on use case
1.A small development team uses GitHub for version control. They want a simple way to authenticate to Vault using their existing GitHub personal access tokens to read secrets. Which authentication method is most appropriate?
- A.GitHub
- B.OIDC
- C.Userpass
- D.AppRole
Show answer & explanation
Correct answer: A — GitHub
- A. Correct. The GitHub auth method is specifically designed to allow users to authenticate to Vault using their GitHub personal access tokens. It integrates seamlessly with existing GitHub workflows by mapping GitHub organizations and teams to Vault policies, making it the most straightforward solution for this team.
- B. Incorrect. OIDC (OpenID Connect) is typically used for federated identity management and involves a browser-based login flow. While GitHub can act as an identity provider, it is more complex to set up than the native GitHub auth method and is not designed to consume existing personal access tokens directly for authentication.
- C. Incorrect. The Userpass auth method involves managing unique usernames and passwords within Vault itself. This would require the team to manage a second set of credentials rather than leveraging their existing GitHub tokens.
- D. Incorrect. AppRole is the primary method for machine-to-machine authentication, involving RoleIDs and SecretIDs. It is not intended for human users looking for a simple way to authenticate using their version control system credentials.