Skip to content

API schemas: K

Type: object

Safe applicable prospective policy for scoped consoles. Contains no host lifecycle override and grants no mutation authority.

Type: object

  • id (string, required)
  • version (integer (int64), required, min 0)
  • created_at (string (date-time), required)
  • expires_at (string (date-time))
  • retire_at (string (date-time))
  • revoked_at (string (date-time))
  • replaces_id (string)
  • request_id (string) — Request ID of the credential generation; omitted for initial legacy credentials.
  • status (string, required, one of "active", "retiring", "retired", "expired", "key_revoked")

Type: object

  • key_id (string, required)
  • version (integer (int64), required, min 0)
  • items (array of KeyCredential, required)
  • has_more (boolean, required)
  • next_before_version (integer (int64), min 0)

Type: object

Coarse administrative presentation capability only; actual selected-key/team action, current flag, plan and license remain authoritative.

  • write (boolean, required)

Type: object

  • id (string, required)
  • alias (string, required)
  • kind (string, required, one of "virtual", "service_account")
  • principal (string, required)
  • team (string, required)
  • allowed_models (array of string, required)
  • scopes (array of string, required)
  • allowed_source_cidrs (SourceCIDRList, required)
  • source_cidr_version (integer (int64), required, min 0) — Independent source-policy optimistic version.
  • tags (StaticKeyTags)
  • tags_version (integer (int64), min 0)
  • source ("console", required)
  • created_at (string (date-time), required)
  • expires_at (string (date-time))
  • revoked_at (string (date-time))
  • deleted_at (string (date-time))
  • status (string, required, one of "active", "revoked", "disabled", "expired", "deleted")

Type: object

  • key ("security.key_lifecycle", required)
  • group ("security", required)
  • kind ("key_lifecycle", required)
  • interval ({"default":"30s","minimum":"1s","maximum":"1h"}, required)
  • state_timeout ({"default":"5s","minimum":"100ms","maximum":"1m"}, required)
  • batch_size ({"default":100,"minimum":1,"maximum":1000}, required)
  • warning_before ({"default":["168h","24h","0s"],"maximum_items":8,"maximum_seconds":31536000,"zero_means":"expired_notice"}, required)
  • one_shot (true, required)
  • confirmation_bytes (32, required)
  • secret_retrieval (false, required)
  • expiry_anchor ("actual_activation", required)
  • sources (["default","yaml","console"], required)
  • restart_required (false, required)
  • yaml_requires_restart (true, required)

Type: object

Bounded database-clock lifecycle worker. One-shot prepared rotations require explicit confirmation, current flag/plan/license and live named-actor/team/policy authorization at actual activation. Shared administrator intent is durable; token rotation or disabling shared login does not cancel an armed schedule.

  • interval (string, required, default "30s") — Whole-millisecond Go duration,1s..1h. Empty raw string chooses default.
  • state_timeout (string, required, default "5s") — Whole-millisecond Go duration,100ms..1m. Full operation budget; empty raw string chooses default.
  • batch_size (integer, required, default 100, min 1, max 1000)
  • warning_before (array of string, required, default ["168h","24h","0s"], max items 8) — Unique equivalent durations,0..8760h. Empty disables notices;0s enables expired notice. No secret delivery. Warnings require key_expiry_warnings and its current license.

Type: object

Attribution owner of a key. Ownership is responsibility and reporting metadata; it never grants access.

  • kind (string, required, one of "user", "workload")
  • id (string, required) — Console user ID (usr_…) or workload ID (wl_… or declared YAML ID)

Type: object

  • secret (string, required, write-only) — Shown once in this creation response. Never cached.
  • rotation (object, required)
    • key_id (string, required)
    • version (integer (int64), required, min 0)
    • credential (KeyCredential, required)
    • previous_credential_id (string, required)
    • previous_retire_at (string (date-time), required)

Type: object

Metadata only, no secret/hash/confirmation nonce. Before activation, relative expires_in with expires_at:null means validity after ACTUAL activation, not Never. Never has empty expires_in and expires_at:null. Schedule state is distinct from the legacy inactive credential-history projection. Blocked activation preserves the working credential. Parent active credential version changes only after actual activation.

  • key_id (string, required)
  • version (integer (int64), required, min 0)
  • credential_id (string, required)
  • credential_version (integer (int64), required, min 0)
  • parent_credential_version (integer (int64), required, min 0)
  • status (string, required, one of "prepared", "armed", "activated", "cancelled", "blocked")
  • activate_at (string (date-time), required)
  • overlap_seconds (integer, required, min 0, max 86400)
  • expires_at (string or null (date-time), required)
  • expires_in ("" or ManagedKeyDuration, required) — Original relative validity choice. Remains populated after activation alongside the resolved expires_at; input expiry forms are still mutually exclusive.
  • created_at (string (date-time), required)
  • confirmed_at (string or null (date-time), required)
  • activated_at (string or null (date-time), required)
  • cancelled_at (string or null (date-time), required)
  • last_error (string, required, max length 256) — Finite safe activation refusal classification; empty when none.
  • request_id (string, required)
  • trace_id (string, required)

Type: object

Private no-store creation response. Preparation alone NEVER arms or retires a working credential. Lost response requires cancellation and restaging; never automatically confirm or send the secret to alert channels.

  • schedule (KeyRotationSchedule, required)
  • secret (string, required, min length 67, max length 67, pattern ^gw_[a-f0-9]{64}$) — Secret returned exactly once on successful preparation. Store securely before confirmation; gateway persists only its SHA-256 hash.
  • confirmation_nonce (string, required, min length 64, max length 64, pattern ^[a-f0-9]{64}$) — Independent random one-time confirmation material; only its hash is persisted. Volatile handoff, never recoverable by GET/history.

Type: object

One-shot future activation. Current active credential must remain valid beyond desired activation. Fixed new expiry must exceed desired and actual activation; a late worker never extends it. Relative new expiry starts at actual activation. Requires scheduled_key_rotation, key_rotation, live keys:rotate and current tenant/license rights.

  • version (integer (int64), required, min 0)
  • credential_version (integer (int64), required, min 0)
  • activate_at (ManagedKeyExpiryDate, required)
  • overlap_seconds (integer, required, min 0, max 86400)
  • expires_at (ManagedKeyExpiryDate or null) — Optional absolute RFC3339 date with explicit timezone. Missing or sole null means Never. Future and optional prospective maximum checked under the database clock. Cannot coexist with expires_in, even when null.
  • expires_in (ManagedKeyDuration or null) — Optional positive integer followed by s, m, h, d or w, at most 9223372036 seconds. Missing or sole null means Never. Database-clock issuance anchor; scheduled rotations instead anchor at actual activation. Cannot coexist with expires_at, even when null.

Type: object

Selected-key schedule CAS is independent of active credential_version;version0/schedule:null before any schedule. Historical read and pending cancellation remain available with live legacy key rights even when scheduling flag/license/plan is off. Capabilities are advisory snapshots; all mutations revalidate current authority.

  • key_id (string, required)
  • version (integer (int64), required, min 0)
  • credential_version (integer (int64), required, min 0)
  • schedule (KeyRotationSchedule or null, required)
  • access (object, required)
    • prepare (boolean, required)
    • confirm (boolean, required)
    • cancel (boolean, required)

Type: object

Read-only startup key policy. Configured or eligible is not a health verdict. Secret references, key material and key-derived identifiers are excluded. Operators change YAML/Secret inputs and roll out; this API does not execute offline maintenance.

  • provider (object, required)
    • enabled (boolean, required) — Boot operator flag provider_key_rotation; default false.
    • current_configured (boolean, required)
    • previous_configured (boolean, required)
    • previous_read_enabled (boolean, required) — Whether the captured provider ring permits previous-key reads. New writes use only current.
    • source (string, required, one of "default", "yaml") — Origin of the declared key policy as a whole.
    • restart_required (true, required)
  • session (object, required)
    • enabled (boolean, required) — Boot operator flag session_key_rotation; default false.
    • current_configured (boolean, required)
    • previous_configured (boolean, required)
    • previous_valid_until (string or null (date-time), required) — Absolute previous-key cutoff; null when none configured. It does not extend an artifact’s original expiry or authorization.
    • previous_verification_active (boolean, required) — Captured previous verification is eligible strictly before its cutoff; this never authorizes a user by itself.
    • source (string, required, one of "default", "yaml") — Origin of the declared key policy as a whole.
    • restart_required (true, required)
  • reencrypt (object, required) — Effective controls for the next deliberate maintenance command, not an automatic serving-process job. Source describes the declared command policy as a whole.
    • page_size (integer, required, min 1, max 1000) — Maximum primary-key/length rows per page; default 256. Payloads are fetched one at a time.
    • timeout (string, required) — Whole-millisecond Go duration 1s..30m; default 2m0s.
    • max_ciphertext_mib (integer, required, min 1, max 1024) — Per-ciphertext prefetch cap; default 128 MiB. Not a process RSS guarantee.
    • source (string, required, one of "default", "yaml")
    • restart_required (false, required)
    • requires_offline (true, required)

Type: object

Type: object

Global policy snapshot. Version is global control CAS; fingerprint is semantic YAML base, not secret-derived. PUT or revert must review both. Read-only/staged policy never forces expiry on existing or Never credentials.

  • version (integer (int64), required, min 0)
  • base_fingerprint (string, required, pattern ^[a-f0-9]{64}$)
  • stored_base_fingerprint (string, required, pattern ^([a-f0-9]{64})?$)
  • base_mismatch (boolean, required)
  • source (string, required, one of "default", "yaml", "console")
  • override (KeySecurityPolicy or null, required)
  • effective (KeySecurityPolicy, required)
  • defaults (KeySecurityPolicy, required)
  • enabled (object, required)
    • key_policies (boolean, required)
    • key_expiry_warnings (boolean, required)
  • access (KeyFeatureAccess, required)
  • restart_required (false, required)
  • applies_to ("new_managed_issuance_rotation_and_metadata_changes", required)

Type: object

  • id (string, required)
  • source (string, required, one of "console", "yaml")
  • allowed_source_cidrs (SourceCIDRList, required)
  • version (integer (int64), required, min 0) — Independent source-policy version; YAML read-only policy uses zero.
  • enabled (boolean, required) — Operational source_ip_controls boot flag; a staged policy does not enforce while false.

Type: object

Independent tags_version CAS and selected-key action capability. Reads retain metadata when feature/grant is off; all explicit tag writes/clears require enabled key_metadata_tags, live keys:rotate delegation, team/organization plan and license.

m7gtwcontact@m7gtw.com