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.
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
- How do you apply least privilege to service-to-service communication (e.g., with Istio mTLS)? [Intermediate]
- What is encryption at rest versus in transit, and how do you ensure both? [Advanced]
- What is the difference between symmetric and asymmetric encryption? [Advanced]
- What is OPA, and what is the Rego language used for? [Intermediate]
- What is certificate management, and how do tools like cert-manager help? [Advanced]
- What is workload identity, and how does it remove static credentials? [Intermediate]
- What is the difference between authentication and authorization? [Advanced]
- What are Linux capabilities, and why drop them in containers? [Advanced]