← Vault Associate 003: secrets and operations
01 / 7 · 30 MIN

Authentication and identity

Choose authentication methods and distinguish identity from authorization.

Concept and mechanism

Vault verifies identity through an auth method and normally issues a token used for subsequent operations. The method can serve people or workloads; selection should consider available identity, environment, and initial credential delivery.

Valid login does not grant access to every secret. Attached policies still decide operations on specific paths. Also distinguish the method type from its mount path: userpass can be mounted at auth/ops-login.

The client must use that configured endpoint. CLI, API, and UI are interfaces to the same responsibilities of authentication, authorization, and credential protection.

Guided application

For a fictional batch without integrated cloud identity, AppRole can use RoleID and SecretID. RoleID selects the role; SecretID is a credential that should reach only the authorized workload. SecretID requirements depend on configuration, so exercises explicitly state bind_secret_id is enabled.

For people authenticated through different sources, entities and aliases relate identities. An alias includes mount context, so matching names do not prove the same person. Whoever changes aliases, entities, or group membership can influence privileges.

An apparently administrative support task deserves bounded scope and evidence. When diagnosing denial after login, inspect token, entity, policies, and path before replacing the method or distributing broad credentials.

IN PRACTICE

Successful login and denied read can coexist: they are different decisions.

Common pitfalls

Method as authorization; display name as identity; SecretID as public configuration; alias writes as an unprivileged task.

Related topics: Policies, paths, and capabilities · Tokens, leases, and renewal · KV, database, and wrapping secrets

Take this idea with you

Identify who acts, how identity is proven, and which operations are granted.

Create account

Reference: Vault authentication · Vault Associate (003); product version tested: Vault 1.19

Vault is a trademark of HashiCorp, Inc., an IBM company. bigsavant.com is an independent preparation platform and is not affiliated with, associated with, sponsored, authorised or endorsed by HashiCorp. Content and questions are original, are not official exam questions, and completing our tests does not award or guarantee any certification. Names are used only to identify the subject. All other trademarks belong to their respective owners.