Skip to main content
Manage secrets For a detailed overview, please visit the secret’s reference page.

secret access-report

Show the access report for the referenced secret Usage
Common Options Reference

secret audit

Retrieve audit trail events for the referenced secret Usage
Common Options Reference

secret clone

Create a clone of the referenced secret Usage
Common Options Reference

secret create-aws

Create a new AWS secret Usage
Common Options Reference

secret create-azure-connector

Create a new Azure Connector secret Usage
Common Options Reference

secret create-azure-sdk

Create a new Azure SDK secret Usage
Common Options Reference

secret create-dictionary

Create a new dictionary secret Usage
Common Options Reference

secret create-docker

Create a new Docker secret Usage
Common Options Reference

secret create-ecr

Create a new ECR secret Usage
Common Options Reference

secret create-gcp

Create a new GCP secret Usage
Common Options Reference

secret create-keypair

Create a new KeyPair secret Usage
Common Options Reference

secret create-nats

Create a new nats account secret Usage
Common Options Reference

secret create-opaque

Create a new opaque secret Usage
Common Options Reference

secret create-tls

Create a new TLS secret Usage
Common Options Reference

secret create-userpass

Create a new Username/Password secret Usage
Common Options Reference

secret delete

Delete one or more referenced secrets Usage
Common Options Reference

secret edit

Edit the referenced secret, as YAML, within an editor Usage
The default editor can be set by using the EDITOR environment variable.
Common Options Reference

secret eventlog

Show the event log of the referenced secret Usage
Common Options Reference

secret get

Retrieve one or more referenced secrets Usage
An empty reference will return all references
Common Options Reference
  • Get all secrets
  • Get one secret
  • Get multiple secrets

secret patch

Update the referenced secret’s metadata using an input file Usage
Running this command with the option --file - sets the input to stdin. The input is required to be a valid JSON or YAML string (e.g., {"description": "My new description"} or description: My new description). To complete the update, press Control-D (or Control-Z if you are using Windows).
Common Options Reference

secret permissions

Show the grantable permissions for a secret object type Usage
Common Options Reference

secret query

Find all the secrets based on the given query Usage
Common Options Reference
Use the --match option to display all, none, or any of the results based on a given property or tag
  • Search for a secret based on the name property
  • Search for a secret based on the description property
  • Search for a secret based on a tag
  • Search for a secret based on a property and tag

secret reveal

Show the secret in plaintext Usage
Common Options Reference
  • Reveal the secret of a UserPass secret

secret tag

Manage the tags belonging to one or more referenced secrets Usage
Built-in tags, which begin with cpln/*, can’t be modified.
Common Options Reference
  • Add a tag to a secret
  • Update same tag (after running the example above)
  • Remove tag (after running the example above)
  • Add same tag to multiple secrets
  • Update same tag on multiple secrets (after running the example above)
  • Remove same tag from multiple secrets (after running the example above)

secret update

Update properties of the referenced secret Usage
Common Options Reference
  • The --set option allows the modification of the following secret properties:
    • description
      • Description of the secret
      • Type: string
    • tags
      • Tags (key=value) associated with the secret
      • Type: string
    • targetLinks
      • Array of target links belonging to the secret
      • Type: string
    • target
      • The target of the secret
      • Type: string
      • Allowed values: ‘all’
  • For the examples below, the initial secret is configured as:
  • Update a secret’s description
  • Update a secret’s tag