SecretBinding documents¶
A SecretBinding document declares one workspace binding: its name, its
integration, one source and its version policy. It is applied with
xratu secret apply binding, and each change creates a new immutable
revision. For what a binding is and why, see
Secret bindings and revisions.
Examples¶
A manager reference:
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]
An opaque handle that the gateway maps:
apiVersion: xratu.io/v1
kind: SecretBinding
metadata:
name: payments-primary-model
spec:
integration: enterprise-secret-broker
adapterProfile: vault_openbao
source:
externalBinding: payments-primary-model
versionPolicy:
mode: exact
externalVersionHandle: version-7
allowedProfiles: [material]
allowedPurposes: [runtime_auth]
Fields¶
| Field | Type | Constraint |
|---|---|---|
apiVersion |
string | xratu.io/v1 |
kind |
string | SecretBinding |
metadata.name |
string | The binding name, unique in the workspace |
spec.integration |
string | The name of an Active integration that admits the workspace |
spec.adapterProfile |
string | One exact adapter admitted by the integration |
spec.source.remoteRef |
object | The manager reference; exactly one of remoteRef and externalBinding |
spec.source.externalBinding |
string | An opaque handle the integration's gateway maps |
spec.versionPolicy.mode |
string | exact, currentAtFirstResolution or renewableCurrent |
spec.versionPolicy.externalVersionHandle |
string | Required only for an exact opaque externalBinding |
spec.allowedProfiles |
string list | Non-empty XSRP profiles supported by both the adapter and integration |
spec.allowedPurposes |
string list | Non-empty exact purpose identifiers the binding permits |
remoteRef by manager profile¶
The reference identifies one secret in the integration's manager. The adapter canonicalises it into these parts:
| Manager profile | Reference parts |
|---|---|
vault_openbao |
Mount, path, property and version |
aws_secrets_manager |
Secret ARN or name, with version id or version stage |
azure_key_vault |
Vault, secret name and version |
gcp_secret_manager |
Project, location, secret and version |
Operation adapters use separate exact shapes:
| Adapter profile | Operation reference parts |
|---|---|
vault_openbao |
Exactly one transit_key_path or dynamic_lease_path |
aws_kms |
key_arn |
azure_key_vault_keys |
Versioned key_id under the integration vault |
azure_managed_hsm |
Versioned key_id under an admitted Managed HSM authority |
gcp_cloud_kms |
Exact crypto-key key_id resource path |
Operation references require versionPolicy.mode: exact and exact membership
in the integration operation envelope. Transit and cloud KMS targets support
sign; a Vault/OpenBao dynamic-lease target supports only material,
authorize_request or connect.
A reference is refused when it holds a wildcard, a relative segment, URI user information, query parameters, interpolated environment or project values, a location outside the integration's scope for the workspace, or a value.
Version policy¶
exact requires the adapter-specific version selector in remoteRef, or
externalVersionHandle for an opaque handle.
currentAtFirstResolution and renewableCurrent select the current version
at resolution. A field that belongs to another mode is refused. See
Secret bindings and revisions.
renewableCurrent carries only the mode in the binding. The compiled project
policy supplies the bounded renewal lifetime, uses and bytes. Lease budgets,
policy digests and provider version selectors are refused in the authored
binding for this mode.
An opaque externalBinding can name any adapter admitted by the integration
without exposing the customer-side locator.