Secret bindings and revisions¶
A secret binding gives one credential a name in your workspace. It says which integration the credential comes through and where it lives in that manager, for example a path in Vault. It never holds the credential itself. Projects use the binding's name, so when your platform team moves a credential, you change the binding and the projects stay as they are. This page covers writing a binding, the two ways to point at a credential, revisions, and what happens when a credential rotates.
A binding¶
apiVersion: xratu.io/v1
kind: SecretBinding
metadata:
name: customer-facing-model
spec:
integration: corp-vault-production
adapterProfile: vault_openbao
source:
remoteRef:
mount: kv
path: payments/openai
property: api_key
versionPolicy:
mode: currentAtFirstResolution
allowedProfiles: [material]
allowedPurposes: [runtime_auth]
xratu secret apply binding ./customer-facing-model.yaml
xratu secret activate binding customer-facing-model 1
Two ways to point at a credential¶
remoteRefis the location in your manager: a Vault path and property, an AWS secret ARN, an Azure vault and secret name, or a GCP project and secret. Xratu stores the location, never the value.-
externalBindingis a handle only your manager-side enterprise broker understands. Use it when your organization keeps Vault paths and ARNs inside its own systems:
A location must point at one exact credential. Wildcards, relative paths and values filled in from the project or the environment are refused.
Revisions¶
Each time you apply a changed binding, Xratu keeps the old version and adds a new revision. You activate the revision you want new deployments to use. A project that is already running keeps the revision it was deployed with until you apply the project again. That way, changing a binding never changes a running project underneath you.
Deleting a binding and creating one with the same name later creates a different binding; projects that used the old one keep refusing it until you map them to the new one.
When a credential rotates¶
Your team rotates credentials in the manager, with its own tools. The
binding's versionPolicy.mode decides what running projects do:
| Mode | Behaviour |
|---|---|
exact |
Always the version named in the binding; change the binding to move to a new version |
currentAtFirstResolution |
Each assignment uses the version that was current when it first fetched the credential, and keeps it through retries |
renewableCurrent |
Each bounded renewal may select the manager's current version; the compiled project policy controls the renewal lifetime, uses and bytes |
Who can create bindings¶
Anyone with the owner, admin or developer role in the workspace. The
integration decides which workspaces and which locations are allowed; a
binding outside that is refused when you apply it.