Skip to content

Conversation

@kbatuigas
Copy link
Contributor

@kbatuigas kbatuigas commented May 6, 2025

Description

This pull request introduces changes to support secret management in Redpanda Cloud, updates a branch reference in the Antora playbook, and removes an unused attribute from the Iceberg documentation. Below is a summary of the most important changes:

Secret Management Enhancements:

  • Added documentation for managing secrets in Redpanda Cloud, including creating, updating, and deleting secrets. This includes API examples and details on referencing secrets in cluster properties using the Data Plane API or rpk. (modules/get-started/pages/whats-new-cloud.adoc, modules/manage/pages/api/cloud-dataplane-api.adoc) [1] [2]

Configuration Updates:

  • Updated the Antora playbook to use the DOC-1216-single-source branch for the documentation repository, replacing the previous main branch. (local-antora-playbook.yml)

Documentation Cleanup:

  • Removed the :env-cloud: attribute from the Iceberg documentation, as it is no longer in use. (modules/manage/pages/iceberg/use-iceberg-catalogs.adoc)

Resolves https://github.com/redpanda-data/documentation-private/issues/
Review deadline: 9 May

Page previews

Use Iceberg Catalogs > Store a secret for REST catalog authentication
Use the Data Plane APIs > Manage secrets
What's New in Cloud

Checks

  • New feature
  • Content gap
  • Support Follow-up
  • Small fix (typos, links, copyedits, etc)

@kbatuigas kbatuigas requested a review from a team as a code owner May 6, 2025 23:39
@coderabbitai
Copy link
Contributor

coderabbitai bot commented May 6, 2025

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

📝 Walkthrough

Walkthrough

The changes update documentation to cover new secret management capabilities in Redpanda Cloud, specifically for cluster configuration scenarios such as Iceberg integration. A new section on managing secrets via the Data Plane API is added, detailing create, update, and delete operations with example requests. The get-started documentation now includes a subsection on managing secrets for cluster configuration, referencing both CLI and API workflows. Additionally, the Antora playbook is updated to source documentation from a different branch, and a metadata attribute is removed from the Iceberg catalog usage guide.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant rpk CLI / API Client
    participant Redpanda Cloud Control Plane
    participant Secret Store

    User->>rpk CLI / API Client: Request to create/update/delete secret
    rpk CLI / API Client->>Redpanda Cloud Control Plane: API call to manage secret
    Redpanda Cloud Control Plane->>Secret Store: Store/retrieve/delete secret
    Secret Store-->>Redpanda Cloud Control Plane: Confirmation/secret reference
    Redpanda Cloud Control Plane-->>rpk CLI / API Client: Operation result
    rpk CLI / API Client-->>User: Success/failure response
Loading

Assessment against linked issues

Objective Addressed Explanation
Document how to pass in secrets when configuring Iceberg (DOC-1216)
Specify use of secret store and SCOPE_REDPANDA_CLUSTER for Iceberg secret config (DOC-1216)
Show referencing secrets in cluster properties for Iceberg (DOC-1216)

Possibly related PRs

Suggested reviewers

  • mattschumpert
  • asimms41

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@netlify
Copy link

netlify bot commented May 6, 2025

Deploy Preview for rp-cloud ready!

Name Link
🔨 Latest commit 978ac1d
🔍 Latest deploy log https://app.netlify.com/sites/rp-cloud/deploys/681ea914237f460008dfcac6
😎 Deploy Preview https://deploy-preview-283--rp-cloud.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (7)
local-antora-playbook.yml (1)

17-19: Ensure YAML string formatting for branch patterns
The item v/* is unquoted in the array literal, which could break YAML parsing or be misinterpreted. For consistency and safety, quote all branch names, e.g.:

-    branches: ['DOC-1216-single-source', v/*, api, shared, site-search]
+    branches: ['DOC-1216-single-source', 'v/*', 'api', 'shared', 'site-search']
modules/get-started/pages/whats-new-cloud.adoc (1)

26-26: Clarify version requirement formatting
Consider formatting the version number as an Asciidoc literal or link (for example, v25.1) to improve readability and consistency with other version references.

modules/manage/pages/api/cloud-dataplane-api.adoc (5)

103-109: Refine description of secret retrieval
The line "Secrets are stored in the secret management solution of your Cloud provider and are retrieved when you set a cluster property to reference the secret." could be clearer. Consider rephrasing to:

Secrets are stored externally by your cloud provider’s secret management service and are fetched by Redpanda when you reference them in a cluster property.

111-119: Standardize curl example formatting
The curl example mixes single quotes and has no space before line-continuation backslashes. For consistency with other examples, use double quotes and ensure a space before each \:

-,bash
----
-curl -X POST "https://<dataplane-api-url>/v1/secrets" \
- -H 'accept: application/json'\
- -H 'authorization: Bearer <token>'\
- -H 'content-type: application/json' \
- -d '{"id":"<secret-name>","scopes":["SCOPE_REDPANDA_CLUSTER"],"secret_data":"<secret-value>"}' 
+[,bash]
+----
+curl -X POST "https://<dataplane-api-url>/v1/secrets" \
+  -H "accept: application/json" \
+  -H "authorization: Bearer <token>" \
+  -H "content-type: application/json" \
+  -d '{"id":"<secret-name>","scopes":["SCOPE_REDPANDA_CLUSTER"],"secret_data":"<secret-value>"}'
----  

120-127: Clarify <secret-value> placeholder
For consistency, rename <secret-value> to <secret-data> (or vice versa) throughout this section so that readers clearly understand it must be the Base64-encoded secret.


155-162: Add sample response for Delete secret
The delete operation’s behavior isn’t fully documented. Consider adding a sample response and expected status code, for example:

[.no-copy]
----
Status: 204 No Content

{}
----

This will help users confirm success and handle the response appropriately.


232-239: Enhance syntax highlighting for JSON and Bash snippets
The new Kafka Connect secret example would benefit from explicit block types for syntax highlighting:

[source,json]
----
{"secret.access.key": "<secret-access-key-value>"}
----

[source,bash]
----
echo '{"secret.access.key": "<secret-access-key-value>"}' | base64
----

This will improve readability in the rendered docs.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6ff48e0 and 0064d1e.

📒 Files selected for processing (4)
  • local-antora-playbook.yml (1 hunks)
  • modules/get-started/pages/whats-new-cloud.adoc (1 hunks)
  • modules/manage/pages/api/cloud-dataplane-api.adoc (1 hunks)
  • modules/manage/pages/iceberg/use-iceberg-catalogs.adoc (0 hunks)
💤 Files with no reviewable changes (1)
  • modules/manage/pages/iceberg/use-iceberg-catalogs.adoc
🔇 Additional comments (2)
modules/get-started/pages/whats-new-cloud.adoc (1)

28-37: Approve addition of Manage secrets subsection
The new "Manage secrets for cluster configuration" section clearly explains the feature and links to both CLI and API workflows. Please verify that the xref anchors (#manage-secrets, #rpk-security-secret, and #rpk-cluster-config-set) resolve correctly in the generated documentation.

modules/manage/pages/api/cloud-dataplane-api.adoc (1)

133-142: Approve Update secret endpoint example
The PUT /v1/secrets/{id} snippet correctly shows how to update the secret data. The scope remains unchanged, which matches the API contract.

* Manage secrets using the xref:manage:api/cloud-dataplane-api.adoc#manage-secrets[Data Plane API]
* Reference a secret in a cluster property using xref:reference:rpk/rpk-cluster/rpk-cluster-config-set.adoc[`rpk cluster config set`]
* Reference a secret in a cluster property using the xref:manage:cluster-maintenance/config-cluster.adoc[Control Plane API]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rpk references above will work once #258 and redpanda-data/docs#1106 are merged

@kbatuigas kbatuigas requested a review from alenkacz May 7, 2025 01:38
@kbatuigas kbatuigas force-pushed the DOC-1216-Document-how-to-pass-in-secrets-when-configuring-iceberg branch from 5380bc7 to 4a06fec Compare May 8, 2025 19:15
Copy link
Contributor

@micheleRP micheleRP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@micheleRP
Copy link
Contributor

@kbatuigas just a reminder to check coderabbit's suggestions: #283 (review)

@kbatuigas kbatuigas force-pushed the DOC-1216-Document-how-to-pass-in-secrets-when-configuring-iceberg branch from 7c330e6 to 3bbc643 Compare May 10, 2025 00:57
@kbatuigas kbatuigas changed the title How to pass in secrets when configuring Iceberg How to pass in secrets to cluster config May 10, 2025
@kbatuigas kbatuigas merged commit cb3312e into main May 10, 2025
6 checks passed
@kbatuigas kbatuigas deleted the DOC-1216-Document-how-to-pass-in-secrets-when-configuring-iceberg branch May 10, 2025 01:26
@coderabbitai coderabbitai bot mentioned this pull request May 21, 2025
4 tasks
@coderabbitai coderabbitai bot mentioned this pull request Jul 24, 2025
4 tasks
@coderabbitai coderabbitai bot mentioned this pull request Aug 25, 2025
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants