Skip to content

secret

xratu secret manages organization secret integrations, workspace secret bindings and a project's auth.xratu mappings. Commands take the form xratu secret <action> <resource> [arguments]. Organization and workspace come from the current CLI context; arguments are names, revisions, reasons and file or folder paths. Set the context with xratu config set organization and xratu config set workspace.

Integrations

Integration commands use the organization context and need an organization owner or admin, except reads.

Command Arguments Does
xratu secret configure integration NAME Integration name Interactively generates a signed SecretIntegration plan and reviewable integration plan files; applies nothing
xratu secret apply integration SOURCE The generated output directory or its secret-integration-apply.json plan Verifies the signed manifest and XSRP gateway contribution, then creates a revision in Draft; applying the same content again returns the same revision
xratu secret activate integration NAME REVISION Name, revision Draft to Active; new deployments use it
xratu secret disable integration NAME REVISION REASON Name, revision, audit reason Active to Disabled; stops new use, running work finishes
xratu secret revoke integration NAME REVISION REASON Name, revision, audit reason To Revoked, final; all use stops at once
xratu secret get integrations None Lists the organization's integrations
xratu secret get integration NAME [REVISION] Name, optional revision Reads the active or the named revision
xratu secret describe integration NAME [REVISION] Name, optional revision Presents the same read with readiness and refusal reasons

Bindings

Binding commands use the organization and workspace context and need effective flow.create in the workspace, except reads.

Command Arguments Does
xratu secret apply binding SOURCE File, folder or multi-document source holding binding documents only Creates new revisions in Draft
xratu secret activate binding NAME REVISION Name, revision Draft to Active
xratu secret disable binding NAME REVISION REASON Name, revision, audit reason Active to Disabled; stops new use, running work finishes
xratu secret revoke binding NAME REVISION REASON Name, revision, audit reason To Revoked, final; all use stops at once
xratu secret get bindings None Lists the workspace's bindings
xratu secret get binding NAME [REVISION] Name, optional revision Reads the active or the named revision
xratu secret describe binding NAME [REVISION] Name, optional revision Presents the same read with state and refusal reasons

Project auth

Command Arguments Does
xratu secret configure project FOLDER Project folder Interactively maps every consumer to a binding and writes auth.xratu atomically
xratu secret check project FOLDER Project folder Read-only, non-interactive admission check; exits non-zero on any problem

Behaviour common to the family

  • get and describe share one read; describe changes the presentation. Ordinary output shows names, revisions, integration, source kind, readiness, allowed profiles and typed refusal reasons, and redacts locators, handles, resolver subjects and audit correlations.
  • apply integration and apply binding refuse a source that contains any other kind before writing anything.
  • Every state-changing command on an existing resource names its revision.
  • xratu auth stays the identity and session command. xratu apply -f applies projects and loads auth.xratu from the project folder. The generic create, get and describe commands refuse secret resources and print the xratu secret command to use.