Secrets

ENTERPRISE

Using the Secrets page

You can manage secrets and certificates from the Secrets page.

Secrets Figure 1 - Secrets page

For complete details on creating and managing Secrets, see the Secrets documentation.

IMPORTANT: The maximum file size for a secret is approximately 1 MB, subtracting approximately 1 KB for the secret store metadata.

Creating key-value pair secrets

  1. Log in to the DC/OS™ UI as a user with the dcos:superuser permission.

  2. Open the Secrets tab.

  3. Click the + icon in the top right.

    New Secret

    Figure 2 - New Secret icon

    If you have no current secrets, a Create Secret screen will be displayed. Click on the Create Secret button.

    Create Secret

    Figure 3 - Create Secret button

  4. In the ID box of the Create New Secret screen, type the name of your secret and its path, if any.

  5. Select Key-Value Pair as Type.

  6. Type or paste the secret into the Value box.

    Secret ID/Value Fields

    Figure 4 - Creating a new Secret

  7. Click Create Secret.

Creating secrets from a file

This procedure describes how to use a file to create a secret using the DC/OS web interface.

  1. Log in to the DC/OS UI as a user with the dcos:superuser permission.

  2. Click the Secrets tab on the left hand navigation menu.

  3. Click the + icon in the top right.

    New Secret

    Figure 5 - Secrets screen

    If you have no current secrets, a Create Secret screen will be displayed. Click on the Create Secret button.

    Create Secret

    Figure 6 - Create Secret button

  4. In the ID box, provide the name of your secret and its path, if any.

    Create New Secret

    Figure 7 - Create New Secret dialog

  5. Select File as Type.

  6. Click Choose File.

  7. Find and select the file you wish to create a secret from.

  8. Click Create Secret.

View Created Secret

Returning to the Secrets screen, you can see that your secret has been deployed.

Secret deployed Figure 8 - Secret deployed