1. StreamNative Cloud
  2. Managed access

Work with Secrets

StreamNative Cloud Secrets allow you to store and manage sensitive data such as passwords, tokens, and private keys. A Secret may contain numerous keys. You can create Secrets and refer to them for computing purposes (Pulsar connectors, Pulsar Functions, Flink SQL, and general Flink jobs).

Create Secrets

The per-secret size is up to 1 Mebibyte (MiB).

To create a Secret using the StreamNative Cloud Console, follow these steps.

  1. On the left navigation pane, in the Admin area, click Secrets.

  2. Click Create Secret.

  3. Configure the Secret.

    • Name: enter the Secret name. The Secret name is unique across an organization. A secret name can contain any combination of lowercase letters (a-z), numbers (0-9), and hyphens (-).|
    • Location: select a Pulsar cluster location for the Secret.
    • Key: enter the key for the Secret. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the Secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here.
    • Value: enter the value for the Secret. Each value must consist of alphanumeric characters, '-', '_' or '.'.
  4. Click Confirm.

Use Secrets

After a Secret is created, the Pulsar Functions or Pulsar connectors can refer to it for computing purposes. For details about how to configure a Secret when creating a connector using StreamNative Cloud Console, see Work with sink connectors.

Delete Secrets

To delete a Secret, follow these steps.

  1. On the left navigation pane, in the Admin area, click Secrets.

  2. Click Delete Secret. A dialog box displays, asking Are you sure you want to delete?

  3. Enter the Secret name and then click Delete Secret.

Previous
Authorization and ACL