Skip to content

Conversation

@kbatuigas
Copy link
Contributor

@kbatuigas kbatuigas commented May 6, 2025

Description

This pull request introduces updates to the documentation for configuring Iceberg catalog integrations in Redpanda, with a focus on adding instructions for passing secrets in cloud environments. Key changes include updating branch references in the Antora playbook, adding detailed steps for secret management, and refining content visibility based on the environment.

Documentation Updates for Iceberg Catalog Integration:

  • Secret Management for Cloud Environments:

    • Added a new section on storing and using secrets for REST authentication in cloud environments. This includes instructions for using rpk and the Data Plane API to create secrets and update cluster configurations.
  • Environment-Specific Visibility:

    • Introduced conditional visibility for certain sections of the documentation, such as hiding tips for Snowflake integration in cloud environments.

Antora Playbook Configuration:

  • Branch Update for cloud-docs Repository:
    • Changed the branch reference for the cloud-docs repository to DOC-1216-Document-how-to-pass-in-secrets-when-configuring-iceberg.

Resolves https://redpandadata.atlassian.net/browse/
Review deadline: 9 May

Page previews

Self-managed > Use Iceberg Catalogs
Cloud > Use Iceberg Catalogs > Store a secret for REST catalog authentication

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 the Antora playbook configuration to source documentation from a specific feature branch in the cloud-docs repository instead of the main branch. Additionally, the Iceberg REST catalog documentation is extended with a new section for cloud environments, detailing how to securely store and reference secrets (such as iceberg_rest_catalog_client_secret and iceberg_rest_catalog_token) using either the rpk CLI or the Data Plane API. The instructions include required scopes, encoding, example commands, and integration into cluster configuration. No changes to code or exported entities were made; all modifications are documentation-focused.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant rpk CLI / Data Plane API
    participant Secret Store
    participant Cluster Configuration

    User->>rpk CLI / Data Plane API: Create secret (Base64-encoded, scope: SCOPE_REDPANDA_CLUSTER)
    rpk CLI / Data Plane API->>Secret Store: Store secret value
    User->>rpk CLI / Control Plane API: Add secret reference to cluster config
    rpk CLI / Control Plane API->>Cluster Configuration: Update with secret reference
Loading

Assessment against linked issues

Objective Addressed Explanation
Document how to pass in secrets when configuring Iceberg (DOC-1216)
Use secret store for config values marked as secret (DOC-1216)
Document use of SCOPE_REDPANDA_CLUSTER for secret scope (DOC-1216)
Provide instructions similar to the connect documentation (DOC-1216)

Possibly related PRs

Suggested reviewers

  • 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 redpanda-docs-preview ready!

Name Link
🔨 Latest commit e7f6813
🔍 Latest deploy log https://app.netlify.com/sites/redpanda-docs-preview/deploys/681ea48603e57900089654fd
😎 Deploy Preview https://deploy-preview-1113--redpanda-docs-preview.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: 4

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between a320e86 and e1782ea.

📒 Files selected for processing (2)
  • local-antora-playbook.yml (1 hunks)
  • modules/manage/partials/iceberg/use-iceberg-catalogs.adoc (2 hunks)
🔇 Additional comments (3)
local-antora-playbook.yml (1)

20-20: Ensure the feature branch exists
You’ve updated the branches value to

branches: 'DOC-1216-Document-how-to-pass-in-secrets-when-configuring-iceberg'

Please verify that this branch is present in the redpanda-data/cloud-docs repository and includes the intended cloud secret-management content before merging.

modules/manage/partials/iceberg/use-iceberg-catalogs.adoc (2)

41-43: Add cloud-only “Store a secret” section
The new ifdef::env-cloud[] ... endif::[] wrapper and “Store a secret for REST authentication” heading correctly scope these instructions to cloud deployments. This aligns with the existing pattern for environment-specific content.


176-179: Verify the Snowflake-hide conditional
You’ve wrapped the Snowflake tip in an ifndef::env-cloud[] … endif::[] to hide it in cloud builds. This correctly prevents the tip from appearing in cloud docs—please confirm in a local preview that the section is suppressed when env-cloud is set.

@kbatuigas kbatuigas changed the title Update catalog doc for Cloud (single source) Update Iceberg catalog doc for Cloud (single source) May 7, 2025
ifdef::env-cloud[]
=== Store a secret for REST authentication

To store a secret that you can reference in your catalog authentication cluster properties, you must create the secret using `rpk` or the Data Plane API. Secrets are stored in the secret management solution of your cloud provider. Redpanda retrieves the secrets at runtime.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need SME to confirm this description and behavior

@kbatuigas kbatuigas requested a review from alenkacz May 7, 2025 01:38
Copy link

@alenkacz alenkacz left a comment

Choose a reason for hiding this comment

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

Left some comments, looks great though 👏

@kbatuigas kbatuigas requested a review from alenkacz May 7, 2025 17:44

To store a secret that you can reference in your catalog authentication cluster properties, you must create the secret using `rpk` or the Cloud API. Secrets are stored in the secret management solution of your cloud provider. Redpanda retrieves the secrets at runtime.

To learn more about `rpk` and the Cloud API, see xref:manage:rpk/intro-to-rpk.adoc[] and xref:manage:api/cloud-api-overview.adoc[].
Copy link

Choose a reason for hiding this comment

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

again this should probably talk about dataplane api, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To get the data plane API url, users have to authenticate and then call the Control Plane API first. I'll change it to specifically say "you must create the secret using... the Data Plane API," but I think directing them to the overview doc to learn more about the API in general is still appropriate.

- This scope: `"SCOPE_REDPANDA_CLUSTER"`.
+
The response returns the name of the secret and the scope `"SCOPE_REDPANDA_CLUSTER"`.
Copy link

Choose a reason for hiding this comment

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

I find this line redundant.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@kbatuigas kbatuigas requested a review from alenkacz May 8, 2025 18:46
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

@kbatuigas kbatuigas force-pushed the DOC-1216-single-source branch from c9b4c30 to e7f6813 Compare May 10, 2025 00:57
@kbatuigas kbatuigas merged commit d84a4d8 into main May 10, 2025
8 checks passed
@kbatuigas kbatuigas deleted the DOC-1216-single-source branch May 10, 2025 01:05
@coderabbitai coderabbitai bot mentioned this pull request Jun 6, 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