Skip to content

Conversation

@JakeSCahill
Copy link
Contributor

Description

Resolves https://redpandadata.atlassian.net/browse/DOC-1304
Review deadline: June 12

This pull request updates the Redpanda Console documentation to provide detailed examples and guidance for configuring authentication with various methods, including user impersonation, static credentials, and OIDC. The changes enhance clarity, add new configuration options, and improve usability for administrators setting up secure access to Redpanda services.

Authentication Configuration Enhancements:

  • OIDC with Static Credentials:
    • Added guidance for configuring OIDC with static credentials, including runtime token acquisition, pre-acquired tokens, and tokens from files. Each method includes detailed YAML examples and explanations for configuration parameters. [1] [2]
    • Introduced notes on securely storing sensitive information, such as client secrets and tokens, using environment variables.

General Improvements:

  • Example Configuration Updates:
    • Updated the shared example configuration file to include the tokenFilepath option for Kubernetes environments.

Page previews

Checks

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

@JakeSCahill JakeSCahill requested a review from a team as a code owner June 10, 2025 12:32
@netlify
Copy link

netlify bot commented Jun 10, 2025

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit 23d9df3
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-docs-preview/deploys/6852e8634b984c0008a45f2f
😎 Deploy Preview https://deploy-preview-1157--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 project configuration.

@JakeSCahill JakeSCahill requested a review from weeco June 16, 2025 16:46

[NOTE]
====
When using OIDC with static credentials, Redpanda Console authenticates to Redpanda as the OIDC client itself (usually a service principal). In this case, Redpanda evaluates access based on the `sub` claim in the token. Be sure to set `oidc_principal_mapping: "$.sub"` in your Redpanda configuration and grant ACLs for that value. For detailed steps to create ACLs, see xref:manage:security/authorization/acl.adoc[]
Copy link
Contributor

Choose a reason for hiding this comment

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

Be sure to set oidc_principal_mapping: "$.sub" in your Redpanda configuration

Isn't this the default in Redpanda already?

clientId: "<oidc-client-id>" # <1>
clientSecret: "<oidc-client-secret>" # <2>
tokenEndpoint: "https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token" # <3>
scope: "api://<oidc-client-id>/.default" # <4>
Copy link
Contributor

Choose a reason for hiding this comment

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

For completeness: The principalMapping option should be added either in this or the other PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 17, 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 documentation for Redpanda Console authentication was reorganized and clarified. The distinction between "runtime acquisition mode" and "static token mode" for OIDC authentication was removed in favor of a unified explanation. Example configurations for various authentication methods—including user impersonation, SCRAM, and multiple static OIDC token provisioning scenarios—were expanded and reorganized with detailed comments. Notes on secret management and access control were updated. A new commented example line for specifying a token file path was added to the shared configuration YAML. No changes were made to code or exported entities.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Console
    participant IdP
    participant Kafka

    User->>Console: Initiate authentication
    Console->>IdP: Request JWT (if runtime acquisition)
    IdP-->>Console: Return JWT
    Console->>Kafka: Connect using JWT (or static token)
    Kafka-->>Console: Authentication result
    Console-->>User: Grant or deny access
Loading

Assessment against linked issues

Objective Addressed Explanation
Add new Console config for OAuth connection to reference docs (DOC-1304)
Clarify and update documentation for static OIDC token usage (DOC-1304)
Add example for token file path in config (DOC-1304)
Improve clarity, fix typos, and update copy in authentication docs (DOC-1304)

Possibly related PRs

Suggested reviewers

  • michael-redpanda
  • Feediver1
  • david-yu

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

@JakeSCahill JakeSCahill requested a review from weeco June 17, 2025 16:52
JakeSCahill and others added 2 commits June 17, 2025 19:19
Co-authored-by: Martin Schneppenheim <23424570+weeco@users.noreply.github.com>
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!

JakeSCahill and others added 2 commits June 18, 2025 17:24
Co-authored-by: Michele Cyran <michele@redpanda.com>
@JakeSCahill JakeSCahill merged commit 92727db into main Jun 18, 2025
2 checks passed
@JakeSCahill JakeSCahill deleted the DOC-1304 branch June 18, 2025 16:25
JakeSCahill added a commit that referenced this pull request Jul 15, 2025
Co-authored-by: Martin Schneppenheim <23424570+weeco@users.noreply.github.com>
Co-authored-by: Michele Cyran <michele@redpanda.com>
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