Skip to main content

DeleteApiSecretClient

Deletes a secret of a client.

Examples​

Basic usage:

octo-cli -c DeleteApiSecretClient -cid "my-client" -s "sha256-encoded-value"

Options​

ShortLongRequiredDescription
-cid--clientIdyesID of client
-s--secretValueyesValue (sha256) of secret
-y--yesnoSkip confirmation prompt

Notes​

Writing API secrets needs the tenant role SecretManagement. TenantManagement or UserManagement still pass while the identity cluster runs with SecretManagementRoleEnforcement=Warn or RoleEnforcement=Warn; they are refused only when SecretManagementRoleEnforcement=Enforce and RoleEnforcement is not Warn. A refused call (HTTP 403) prints the message of the identity service, which names the missing role; without a message the generic access-denied text is shown.

-s is the stored hash as GetApiSecretsClient lists it. It is sent in the request body, never in the request URL. Requires an identity service of the later 3.5.x update or newer (an older one answers 405).