Open Ask AI (⌘/Ctrl+I)

Secrets

Secrets are sensitive data, like passwords or tokens, stored securely for certain tasks. These secrets securely authenticate Cockpit network operations. For example, they can be used with Ingresses.

The secret types covered in this section are:

  • Opaque: store custom credentials (for example, API tokens).
  • Registry: provide credentials for container registries.
  • Basic Auth: set up HTTP Basic Authentication.

Select desired cluster

Select your desired cluster from the dropdown menu at the top of the Cockpit.

Select desired cluster in the Cockpit

Add secrets

  1. Go to your Cockpit and navigate to Networking > Secrets.
  2. Choose the Environment.
  3. Click Add.
  4. In the dialog, choose the Type of secret.

Opaque

Store custom credentials (for example, API tokens).

  1. Enter the Key.
  2. Enter the Value.

You may need to click the + icon to add more key/value pairs.

Add an Opaque secret

Registry

Provide credentials for container registries.

  1. Enter the Domain name (for example, registry.magnolia-platform.com).
  2. Enter the User.
  3. Enter the Password.

Add a Registry secret

Basic Auth

Set up HTTP Basic Authentication.

  1. Enter the User.
  2. Enter the Password.

Add a Basic Auth secret