Secrets

Set an Allow, Ask, or Block rule for a secret

Changed on

Sets Allow, Ask, or Block on a secret for Everyone, a team, a member, or an agent. Precedence at runtime is Block > Ask > Allow.

put/v1/org/secrets/{secretId}/rules

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

secretId, string required

Request body

SetOrganizationSecretRuleRequest required
subjectKind, 'organization' | 'team' | 'member' | 'agent' required
subjectId, string required
rule, 'allow' | 'ask' | 'block' required

Response

Updated secret detail.

OrganizationSecretDetailResponse required
secret, OrganizationSecretSummary required
blindUse, object required
rules, OrganizationSecretRule[] required

Changes

    • breaking

      removed the required property secret/sshFingerprint from the response with the status

    • breaking

      removed the required property secret/sshPublicKey from the response with the status

    • breaking

      removed the required property secret/targetConnectionId from the response with the status

    1 more change in this revision