Skip to content

Add Documentation for WebSocket Proxy Profiles#11583

Open
hisanhunais wants to merge 5 commits into
wso2:masterfrom
hisanhunais:websocket-proxy-support
Open

Add Documentation for WebSocket Proxy Profiles#11583
hisanhunais wants to merge 5 commits into
wso2:masterfrom
hisanhunais:websocket-proxy-support

Conversation

@hisanhunais

Copy link
Copy Markdown
Contributor

Purpose

Adds a new documentation page for the WebSocket Proxy Profiles feature introduced in WSO2 API Manager 4.7.0.

The WebSocket proxy profile feature allows the Classic Gateway to route outbound WebSocket connections (gateway → backend) through one or more HTTP CONNECT proxies. This is useful in network environments where backend WebSocket services are not directly reachable from the gateway and must be accessed through a corporate or department-level proxy.

The page covers:

  • Overview — what proxy profiles are and when to use them
  • How It Works — the profile matching logic: specific profiles evaluated first, catch-all as fallback, bypass_hosts precedence
  • Configuration — [[transport.ws.proxy_profile]] and [[transport.wss.proxy_profile]] parameters with a full reference table
  • Scenarios — step-by-step examples for:
    • Anonymous proxy
    • Authenticated proxy (Basic auth)
    • Bypassing the proxy for selected hosts
    • Catch-all profile with exclusions
    • Connecting to a wss:// backend through a proxy (including truststore setup)
  • Limitations — restart requirement, regex matching behavior, ordering rules, Basic auth only, ws/wss independence

@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@hisanhunais, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 54 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 9aa72606-8617-44b8-a02b-4a9ccfa64ecc

📥 Commits

Reviewing files that changed from the base of the PR and between a159090 and 58245e6.

📒 Files selected for processing (2)
  • en/docs/reference/config-catalog.md
  • en/tools/config-catalog-generator/data/configs.json
📝 Walkthrough

Walkthrough

Adds WebSocket Proxy Profiles documentation for routing outbound ws and wss backend connections through HTTP CONNECT proxies. It documents matching, bypass rules, authentication, WSS TLS behavior, configuration examples, limitations, and configuration catalog entries. The WebSocket creation guide now links to this documentation, and the new page is added to the MkDocs navigation. The configuration catalog also receives wording corrections and tab wiring updates.

Suggested reviewers: chamilaadhi, tharikagithub

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers purpose well, but most required template sections are missing or empty. Add the missing template sections: Goals, Approach, User stories, Release note, Documentation, and N/A or details for the remaining sections.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: new documentation for WebSocket Proxy Profiles.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Comment @coderabbitai help to get the list of available commands.

@hisanhunais hisanhunais force-pushed the websocket-proxy-support branch from f326d06 to 8d8b06c Compare July 16, 2026 10:03

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
en/tools/config-catalog-generator/data/configs.json (1)

4504-4550: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use empty strings/tags for parameters without a default value. Based on learnings, config catalog parameters with no default value should be displayed with an empty <code></code> tag.

  • en/tools/config-catalog-generator/data/configs.json#L4504-L4550: Replace the "-" values with "" for the default properties of the ws.proxy_profile parameters.
  • en/tools/config-catalog-generator/data/configs.json#L4565-L4611: Replace the "-" values with "" for the default properties of the wss.proxy_profile parameters.
  • en/docs/reference/config-catalog.md#L12030-L12135: Replace the <code>-</code> content with empty <code></code> tags for the rendered ws.proxy_profile default values.
  • en/docs/reference/config-catalog.md#L12205-L12310: Replace the <code>-</code> content with empty <code></code> tags for the rendered wss.proxy_profile default values.

Source: Learnings

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@en/tools/config-catalog-generator/data/configs.json`:
- Line 1586: Correct the application_sharing_impl description by adding the
missing period and space before “If it is saml” in
en/tools/config-catalog-generator/data/configs.json lines 1586-1586 and apply
the identical text correction in en/docs/reference/config-catalog.md lines
4243-4243.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: de1b19df-edf4-4753-b880-ee740200fdb3

📥 Commits

Reviewing files that changed from the base of the PR and between b789663 and a159090.

📒 Files selected for processing (5)
  • en/docs/api-design-manage/design/create-api/create-streaming-api/create-a-websocket-streaming-api.md
  • en/docs/api-gateway/websocket-proxy-profiles.md
  • en/docs/reference/config-catalog.md
  • en/mkdocs.yml
  • en/tools/config-catalog-generator/data/configs.json
🚧 Files skipped from review as they are similar to previous changes (2)
  • en/docs/api-design-manage/design/create-api/create-streaming-api/create-a-websocket-streaming-api.md
  • en/docs/api-gateway/websocket-proxy-profiles.md

"default": "If the config is not mentioned, then undefined.default",
"possible": "default, saml",
"description": "Use the application_sharing_impl as default implmentationIf it is saml, the group extractor extracts the claims to group the applications from the saml response."
"description": "Use the application_sharing_impl as default implementationIf it is saml, the group extractor extracts the claims to group the applications from the saml response."

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Fix typographical error in application_sharing_impl description. Both files contain a missing period and space before "If it is saml" in the text.

  • en/tools/config-catalog-generator/data/configs.json#L1586-L1586: Fix the missing period and space to read "implementation. If it is saml".
  • en/docs/reference/config-catalog.md#L4243-L4243: Apply the same typographical fix to the rendered HTML paragraph.
📍 Affects 2 files
  • en/tools/config-catalog-generator/data/configs.json#L1586-L1586 (this comment)
  • en/docs/reference/config-catalog.md#L4243-L4243
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@en/tools/config-catalog-generator/data/configs.json` at line 1586, Correct
the application_sharing_impl description by adding the missing period and space
before “If it is saml” in en/tools/config-catalog-generator/data/configs.json
lines 1586-1586 and apply the identical text correction in
en/docs/reference/config-catalog.md lines 4243-4243.

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.

2 participants