Skip to main content

CreateApiSecretClient

Adds new API secret for a client.

Examples​

Basic usage:

octo-cli -c CreateApiSecretClient `
-cid "my-client" `
-e "2025-12-31" `
-d "Production secret"

Options​

ShortLongRequiredDescription
-cid--clientIdyesID of client
-e--expirationDatenoExpiration date of secret
-d--descriptionnoDescription of API secret

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.