Sobes.tech
Senior

What does a developer need to do to use secrets mounted via Vault Injector?

sobes.tech AI

Answer from AI

To use secrets mounted via Vault Injector, a developer needs to:

  1. Ensure that the Kubernetes manifest (e.g., Deployment) has annotations specifying which secrets Vault Injector should mount and where.
  2. Use the file paths in the application where Vault Injector mounts the secrets (usually a path inside the container, e.g., /vault/secrets/my-secret).
  3. Read the secrets from these files as regular configuration data — for example, at application startup or at runtime.

Thus, the developer does not need to interact directly with the Vault API, but only work with local files that are automatically updated by Vault Injector.