Documentation

The secrets client reads and writes secrets through one API, SecretManagerClient, from Google Secret Manager, AWS Secrets Manager, files the platform mounts or a local file. Every value, and every token and key that grants access to one, is kept in guarded native memory, never on the Java heap, and a heap-dump test proves it for every path.

Start here:

  • Getting started: dependencies, the modules, a first client, choosing a provider
  • The API: SecretManagerClient, configuration, the contract every provider follows, keeping secrets out of memory, guarded memory (SecretMemory, Secret), JPMS

How it works:

  • Architecture: the modules, the layers inside the API module, and where a secret lives in each
  • Protocols: TLS, HTTP/1.1, the Google and AWS APIs, SigV4, OAuth and the credential endpoints, as the library speaks them
  • Topology: what the process talks to for each provider, what crosses the network, trust boundaries
  • Deployment models: running on a laptop, Cloud Run, GKE, ECS, EKS, EC2 and in tests
  • Sequence flows: every read, write and credential fetch step by step
  • The security model: what is protected and where protection ends, credentials, what the platform must provide, what the canary tests prove

Providers:

More: