-
Notifications
You must be signed in to change notification settings - Fork 4
DOC-1401 RPCN Secrets navigation change in UI #386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
micheleRP
merged 4 commits into
main
from
DOC-1401-RPCN-Secrets-navigation-change-in-UI
Aug 11, 2025
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,56 +3,31 @@ | |
|
||
Learn how to manage secrets in Redpanda Connect, and how to add them to your data pipelines without exposing them. | ||
|
||
Secrets are stored in the secret management solution of your Cloud provider and are retrieved when you run a pipeline configuration that references them. | ||
|
||
== Prerequisites | ||
|
||
* A running Serverless, Dedicated, or BYOC (not BYOVPC/BYOVNet) cluster | ||
* On BYOC clusters only, check that secrets management is enabled: | ||
|
||
.. Log in to https://cloud.redpanda.com[Redpanda Cloud^]. | ||
.. Go to the **Connect** page. | ||
.. Select the **Redpanda Connect** tab and make sure you can see a **Secrets** tab. | ||
|
||
+ | ||
If you cannot see a **Secrets** tab, contact https://support.redpanda.com/hc/en-us/requests/new[Redpanda Support^] | ||
Secrets are stored in the secret management solution of your cloud provider and are retrieved when you run a pipeline configuration that references them. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we try to tell them where? Or we're being purposefuly vague here because this is documenting a 3rd party product (style guide + high risk of going out-of-date)? |
||
|
||
== Manage secrets | ||
|
||
You can manage secrets from the Cloud UI or Data Plane API. | ||
You can manage secrets from the Cloud UI or the Data Plane API. | ||
|
||
=== Create a secret | ||
|
||
You can create a secret and reference it in multiple data pipelines on the same cluster. | ||
|
||
[tabs] | ||
===== | ||
Cloud UI (BYOC and Dedicated):: | ||
Cloud UI:: | ||
+ | ||
-- | ||
. Log in to https://cloud.redpanda.com[Redpanda Cloud^]. | ||
. Go to the **Connect** page. | ||
. Select the **Redpanda Connect** tab and then the **Secrets** tab. | ||
. Click **Create secret**. | ||
. In **Secret name**, enter a name for the secret. You cannot rename the secret once it is created. | ||
. In **Secret value**, enter the secret you need to add. | ||
. Go to the **Secrets Store** page. | ||
. Click **Create secret**. | ||
+ | ||
The secret details are listed in the **Secrets** tab ready to <<add-a-secret-to-a-data-pipeline,add to your data pipelines>>. | ||
|
||
-- | ||
. For **ID**, enter a name for the secret. You cannot rename the secret once it is created. | ||
. For **Value**, enter the secret you need to add. | ||
. For **Scopes**, select Redpanda Connect. | ||
. Optionally, add labels to help organize your secrets. | ||
. Click **Create**. | ||
|
||
Cloud UI (Serverless):: | ||
+ | ||
-- | ||
. Log in to https://cloud.redpanda.com[Redpanda Cloud^]. | ||
. Go to the **Connect** page. | ||
. Select the **Secrets** tab and click **Create secret**. | ||
. In **Secret name**, enter a name for the secret. You cannot rename the secret once it is created. | ||
. In **Secret value**, enter the secret you need to add. | ||
. Click **Create secret**. | ||
+ | ||
The secret details are listed in the **Secrets** tab ready to <<add-a-secret-to-a-data-pipeline,add to your data pipelines>>. | ||
You can now <<add-a-secret-to-a-data-pipeline,add the secret to your data pipeline>>. | ||
|
||
-- | ||
|
||
|
@@ -63,7 +38,7 @@ You must use a Base64-encoded secret. | |
|
||
. xref:manage:api/cloud-api-quickstart.adoc#try-the-cloud-api[Authenticate and get the base URL] for the Data Plane API. | ||
. Make a request to xref:api:ROOT:cloud-dataplane-api.adoc#post-/v1/secrets[`POST /v1/secrets`]. | ||
+ | ||
|
||
[,bash] | ||
---- | ||
curl -X POST "https://<dataplane-api-url>/v1/secrets" \ | ||
|
@@ -72,15 +47,14 @@ curl -X POST "https://<dataplane-api-url>/v1/secrets" \ | |
-H 'content-type: application/json' \ | ||
-d '{"id":"<secret-name>","scopes":["SCOPE_REDPANDA_CONNECT"],"secret_data":"<secret-value>"}' | ||
---- | ||
+ | ||
|
||
You must include the following values: | ||
|
||
- `<dataplane-api-url>`: The base URL for the Data Plane API. | ||
- `<token>`: The API key you generated during authentication. | ||
- `<secret-name>`: The ID or name of the secret you want to add. Use only the following characters: `^[A-Z][A-Z0-9_]*$`. | ||
- `<secret-value>`: The Base64-encoded secret. | ||
- This scope: `"SCOPE_REDPANDA_CONNECT"`. | ||
|
||
+ | ||
The response returns the name of the secret and the scope `"SCOPE_REDPANDA_CONNECT"`. | ||
|
||
|
@@ -97,26 +71,13 @@ NOTE: Changes to secret values do not take effect until a pipeline is restarted. | |
|
||
[tabs] | ||
===== | ||
Cloud UI (BYOC and Dedicated):: | ||
Cloud UI:: | ||
+ | ||
-- | ||
. Log in to https://cloud.redpanda.com[Redpanda Cloud^]. | ||
. Go to the **Connect** page. | ||
. Select the **Redpanda Connect** tab and then the **Secrets** tab. | ||
. Find the secret you want to update and click the edit icon. | ||
. Enter the new secret value and click **Update Secret**. | ||
. Start and stop any pipelines that reference the secret. | ||
|
||
-- | ||
|
||
Cloud UI (Serverless):: | ||
+ | ||
-- | ||
. Log in to https://cloud.redpanda.com[Redpanda Cloud^]. | ||
. Go to the **Connect** page. | ||
. Select the **Secrets** tab. | ||
. Find the secret you want to update and click the edit icon. | ||
. Enter the new secret value and click **Update Secret**. | ||
. Go to the **Secrets Store** page. | ||
. Find the secret you want to update, and click the edit icon. | ||
. Enter the new secret value or labels, and click **Update**. | ||
. Start and stop any pipelines that reference the secret. | ||
|
||
-- | ||
|
@@ -161,24 +122,12 @@ NOTE: Changes do not affect pipelines that are already running. | |
|
||
[tabs] | ||
===== | ||
Cloud UI (BYOC and Dedicated):: | ||
+ | ||
-- | ||
. Log in to https://cloud.redpanda.com[Redpanda Cloud^]. | ||
. Go to the **Connect** page. | ||
. Select the **Redpanda Connect** tab and then the **Secrets** tab. | ||
. Find the secret you want to remove and click the delete icon. | ||
. Confirm your deletion. | ||
|
||
-- | ||
|
||
Cloud UI (Serverless):: | ||
Cloud UI:: | ||
+ | ||
-- | ||
. Log in to https://cloud.redpanda.com[Redpanda Cloud^]. | ||
. Go to the **Connect** page. | ||
. Select the **Secrets** tab. | ||
. Find the secret you want to remove and click the delete icon. | ||
. Go to the **Secrets Store** page. | ||
. Find the secret you want to remove, and click the delete icon. | ||
. Confirm your deletion. | ||
|
||
-- | ||
|
@@ -207,13 +156,28 @@ You must include the following values: | |
|
||
== Add a secret to a data pipeline | ||
|
||
You can add a secret to any pipeline in your cluster using the notation `${secrets.SECRET_NAME}`. In the Cloud UI, you can copy the notation from the **Secrets** tab. | ||
[tabs] | ||
===== | ||
Cloud UI:: | ||
+ | ||
-- | ||
. Go to the **Connect** page, and create a pipeline (or open an existing pipeline to edit). | ||
. Click the quick-add **Secret** button to add a new or existing secret to the pipeline. | ||
micheleRP marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
-- | ||
|
||
Data Plane API:: | ||
+ | ||
-- | ||
You can add a secret to any pipeline in your cluster using the notation `${secrets.SECRET_NAME}`. | ||
For example: | ||
|
||
```yml | ||
sasl: | ||
- mechanism: SCRAM-SHA-256 | ||
username: "user" | ||
password: "${secrets.PASSWORD}" | ||
``` | ||
[,yml] | ||
---- | ||
sasl: | ||
- mechanism: SCRAM-SHA-256 | ||
username: "user" | ||
password: "${secrets.PASSWORD}" | ||
---- | ||
-- | ||
===== | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.