-
Notifications
You must be signed in to change notification settings - Fork 47
Reorganize HTTP Proxy doc #1376
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
base: main
Are you sure you want to change the base?
Conversation
Move authentication content closer to beginning of doc Add conditionals so that code examples for Self-managed correctly display port 8082, and examples for Cloud display 30082
✅ Deploy Preview for redpanda-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 📝 WalkthroughWalkthroughThe HTTP Proxy documentation was restructured to differentiate Cloud vs non-Cloud flows using env-cloud conditionals. A new top-level note links to the API reference and a cloud-only note. Default ports were updated (cloud 30082; private connectivity 30282), and examples now use a base_uri variable. Authentication coverage was expanded to include SCRAM and OIDC with cURL, NodeJS, and Python examples across environments. Consumer and topic workflows were unified and updated to environment-specific paths. Legacy sections were consolidated, and Swagger URLs are now conditional. Numerous ifdef/ifndef blocks separate cloud vs non-cloud content. Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Client (Dev/Script)
participant UI as Cloud UI
participant HP as HTTP Proxy
participant RP as Redpanda
note over Dev,HP: Environment selection and base_uri resolution
Dev->>UI: Retrieve proxy endpoint (cloud)
UI-->>Dev: Return base_uri (e.g., https://...:30082)
note over Dev: Non-cloud: base_uri uses host:8082<br/>Private connectivity: host:30282
Dev->>HP: Request (e.g., GET {base_uri}/v1/topics)
HP->>RP: Forward request
RP-->>HP: Response
HP-->>Dev: Response
note right of HP: All examples standardize on base_uri
sequenceDiagram
autonumber
actor Dev as Client
participant HP as HTTP Proxy
participant IDP as OIDC Provider
participant RP as Redpanda
rect rgba(200,230,255,0.3)
note over Dev,IDP: OIDC authentication flow (cloud and non-cloud)
Dev->>IDP: Obtain access token (OIDC)
IDP-->>Dev: Access token (JWT)
Dev->>HP: HTTP request with Authorization: Bearer <token>
HP->>RP: Authenticated request (OIDC context)
RP-->>HP: Response
HP-->>Dev: Response
end
sequenceDiagram
autonumber
actor Dev as Client
participant HP as HTTP Proxy
participant RP as Redpanda
rect rgba(220,255,220,0.4)
note over Dev,HP: SCRAM authentication flow (cloud and non-cloud)
Dev->>HP: HTTP request with SCRAM credentials
HP->>RP: Authenticate via configured mechanism
RP-->>HP: Auth result
alt Auth success
HP->>RP: Forward API request
RP-->>HP: Response
HP-->>Dev: Response
else Auth failure
HP-->>Dev: 401/403 error
end
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one comment
Co-authored-by: Mike Boquard <[email protected]>
|
||
== Create a topic | ||
|
||
Use xref:{install-rpk-doc}[`rpk`] to create a topic to use for this guide. Configure `rpk` for your Redpanda deployment, using xref:{rpk-profile-doc}[profiles], flags, or xref:reference:rpk/rpk-x-options.adoc#environment-variables[environment variables]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use xref:{install-rpk-doc}[rpk
] to create a topic to use for this guide.
Kind of confused by the "to use for this guide"--is that the only context in which a created topic is to be used?
Description
8082
for the port, and the Cloud page displays30082
rpk topic create
Resolves https://redpandadata.atlassian.net/browse/DOC-743
Review deadline:
Page previews
Self-managed: https://deploy-preview-1376--redpanda-docs-preview.netlify.app/current/develop/http-proxy/
Cloud: https://deploy-preview-1376--redpanda-docs-preview.netlify.app/redpanda-cloud/develop/http-proxy/
Checks