ON-PREM CHOREO CLOUD BOTH

What you will learn

  • Follow a secret from the person who typed it to an environment variable in the agent's pod
  • Say what Agent Manager stores about a secret, and what it does not
  • Explain what a SecretReference is and what the External Secrets operator does
  • Name the two exceptions that do not take this route

Before you start

On this page

An agent often needs a secret: an API key for a tool, a password, a token. You type it into a form, and a moment later the running agent can read it. In between, it must not end up in the agent’s configuration, in a log or in a database that many people can read. Agent Manager has a short path for that.

The idea

Agent Manager hands the secret value to OpenChoreo and keeps only the secret’s name. The pod then receives the value through a Kubernetes mechanism, and the agent reads it as an ordinary environment variable. This lesson follows the proxy API key that a platform-hosted agent receives, and every other secret that Agent Manager stores through its secret client takes the same route.

Component

Secrets path

Shared or other Other BOTH

The secrets path is how a sensitive value, such as an API key an agent needs, travels from the person who typed it to the running pod without being stored in the agent's configuration. Agent Manager hands the value to OpenChoreo's secret API, which stores it in the secret backend and creates a SecretReference (a pointer). The pod receives only a reference to a Kubernetes Secret that is filled from that pointer.

The route

Flow

The secrets path, from Agent Manager to a pod environment variable

F15 12 steps BOTH

Agent Manager hands a secret value to OpenChoreo (directly on-prem, through secret-manager-api on SaaS), keeps only the secret's name for this path, and the pod receives the value through an ExternalSecret that copies it from the data plane's secret store (OpenBao on SaaS development, the cloud Vault on stage and production) into a Kubernetes Secret.

  1. AMS decides where the secret lives

    Before storing anything, AMS builds an address for the secret from the organisation, project, environment and agent names. A name that contains a slash is rejected.

  2. AMS gives the value to OpenChoreo

    On-prem, AMS writes the value through the OpenChoreo secret API. It does not talk to the secret store itself. On the same call goes to a front desk called secret-manager-api, which finds the organisation from the caller’s token and forwards the write.

  3. OpenChoreo stores the value and leaves a signpost

    OpenChoreo puts the value in its secret store and records a . The signpost says where the value is, but it does not contain it.

  4. AMS keeps only the name

    AMS writes down the name of the signpost in its own database. Someone who read that database would find names, not passwords.

  5. AMS tells OpenChoreo which secret the pod needs

    It adds a line to the agent’s deployment that says environment variable X comes from that secret. OpenChoreo turns the deployment into Kubernetes objects and the data plane applies them.

  6. A helper copies the value into the pod's secret

    The in the data plane reads the secret store and creates an ordinary Kubernetes Secret with the value. It checks again every so often, so a changed secret follows along.

  7. The pod starts with the variable set

    Kubernetes puts the secret into the agent’s environment. The agent reads a normal variable and does not know where it came from.

In the local quick start, the secret store is . The store is a pluggable part behind the secret client.

Component

OpenBao + External Secrets

Shared or other Other BOTH

OpenBao is the secret store behind OpenChoreo's secret references, with External Secrets Operator copying values into Kubernetes Secrets. Agent API keys, agent identity secrets and Git credentials are kept there. Locally it runs in development mode.

Two exceptions

Not every secret takes this route.

  • Git credentials for private repositories. To list the branches and commits of a private repository, AMS looks up the signpost and then fetches the password from the secret store itself.
  • The upstream key of an LLM provider. AMS keeps it in its own database, encrypted with a key that only AMS holds. It is decrypted only when the gateway asks for its configuration.

Your turn

Open Try it and play flow F15. At which step does the value stop being in AMS’s hands, and which step creates the signpost? Then play the matcher: pair each stop on the path with what happens there.

Recap

  • AMS gives the secret value to OpenChoreo and keeps only the secret’s name.
  • OpenChoreo stores the value and creates a SecretReference, a signpost that says where the value is.
  • The External Secrets operator copies the value into a Kubernetes Secret, and the pod reads it as an environment variable.
  • Git credentials for reading private repositories and the upstream keys of LLM providers are the two exceptions.

Try it

Follow one request

What to do: press Play, or use Next, to walk through the request step by step.

Loading the diagram...

Match them up

What to do: pick an item on the left, then its partner on the right.

Loading the matching game...

Wrap up

Recap

Tick each one when you could explain it to a colleague.

Finished?

Quick check

Loading the quick check...

Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)