Interview Security & DevSecOps

What is secrets management, and how does HashiCorp Vault work at a high level? [Intermediate]

Answer

Secrets management is the controlled storage, access, rotation, and audit of sensitive values such as passwords, API keys, certificates, and tokens. HashiCorp Vault works by authenticating clients, authorizing them through policies, and serving secrets from engines such as KV, database, PKI, transit, or cloud engines.

Technical explanation

Vault centralizes access control and audit logging for secrets.

Clients authenticate using methods such as Kubernetes auth, AppRole, OIDC, or cloud IAM.

Policies define which paths a client can read, write, or generate, and leases control secret lifetime.

Hands-on example

Hands-on: enable Kubernetes auth, bind service account payments-api to Vault role payments, allow it to read only secret/data/payments/config, and deliver the secret through Vault Agent Injector or the Vault Secrets Operator rather than storing it in Git.

Preparing for an interview?

Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.

More Security & DevSecOps interview questions

← All Security & DevSecOps questions