Secrets in provisioning pipelines

Each provisioning pipeline task fetches its own secrets from OpenBao into a memory-backed volume, so the secrets stay off the shared volume and the disk.

The control plane runs the cluster provisioning work as Tekton pipelines. Each task runs as a Pod, each step in a task runs as a container, and later tasks mount the same PersistentVolumeClaim to read the output of earlier tasks.

Every task fetches its own secrets so that the secrets stay off the shared volume. The following sequence occurs in each task:

  1. The first step of the task fetches the secrets that the task requires from OpenBao.
  2. The step writes the secrets into a memory-backed volume on the Pod, which never reaches the disk.
  3. Symbolic links make the secrets available at the paths on the PersistentVolumeClaim that the task steps already use.

As a result, a secret is present only while the task that needs it runs, and only in the memory of that Pod.