Secrets

Get secret through ownership authority

Changed on

Returns a secret's owner, kind, name, and current version; the secret value is never returned.

get/orgs/{orgID}/secrets/{secretID}

Request

  • Base URL
    https://api.omnara.com/v1
  • Auth
    • HTTP bearer
    • or API key in cookie __Host-omnara_session

Path parameters

orgID, string required

Organization ID (org_...).

secretID, string required

Secret ID (sec_...).

Response

Secret.

Secret required
id, string required

Identifies the secret; other resources reference it by this ID instead of storing the value.

org_id, string required

Organization the secret belongs to.

management_kind, 'tenant' | 'cluster' required

Whether the organization manages this secret or the Omnara installation provisions and manages it.

owner, union required

Who owns the secret; a project can use it without a grant only if the project owns it.

name, string required

Display name of the secret.

kind, 'generic' | 'oauth_token_set' | 'slack_app_credentials' | 'aws_credentials' | 'github_app_credentials' required

What type of credential the secret holds, which determines its payload fields.

metadata, Metadata required

Caller-supplied key-value labels on the secret.

current_version_number, integer required

Version of the value currently in use; each rotation increments it.

payload_keys, string[] required

Names of the fields stored in the current value, such as value or access_token; values are never returned.

created_at, string date-time required

When the secret was created.

updated_at, string date-time required

When the secret's name, metadata, or current version last changed.

Changes

    • warning

      added the new github_app_credentials enum value to the kind response property for the response status

    • info

      added the optional property current_digest to the response with the status

    • info

      added the optional property current_digest to the response with the status

    157 more changes in this revision