Skip to content

Add Documentation for WebSocket Proxy Profiles - #11583

Merged
hisanhunais merged 7 commits into
wso2:masterfrom
hisanhunais:websocket-proxy-support
Jul 17, 2026
Merged

Add Documentation for WebSocket Proxy Profiles#11583
hisanhunais merged 7 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: 4 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: 2388c1b2-37a8-4fea-b10e-9daa59590b6c

📥 Commits

Reviewing files that changed from the base of the PR and between 4726544 and c5667d3.

📒 Files selected for processing (4)
  • en/docs/reference/config-catalog.md
  • en/tools/config-catalog-generator/data/_ws-proxy-profile.toml
  • en/tools/config-catalog-generator/data/_wss-proxy-profile.toml
  • en/tools/config-catalog-generator/data/configs.json
📝 Walkthrough

Walkthrough

Adds documentation for routing outbound ws and wss backend connections through HTTP CONNECT proxies, including matching, bypass rules, authentication, WSS TLS behavior, examples, and limitations. Adds configuration catalog entries, a WebSocket guide cross-reference, MkDocs navigation, and wording and tab-wiring corrections.

Suggested reviewers: chamilaadhi, tharikagithub

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is missing most required template sections, including goals, approach, release note, documentation, tests, and security checks. Add the missing template sections and fill in at least goals, approach, user stories, release note, documentation links, tests, and security checks.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding 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

Comment thread en/tools/config-catalog-generator/data/configs.json Outdated
senthuran16
senthuran16 previously approved these changes Jul 16, 2026

@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: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
en/docs/reference/config-catalog.md (1)

18272-18281: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Fix the duplicate heading and tab identifier.

This block repeats API-M AWS Lambda Configurations and reuses name="125" / id="_tab_125", which is already used by the Vector DB section. Rename the heading and assign the next unused tab identifier, such as 127.

🤖 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/docs/reference/config-catalog.md` around lines 18272 - 18281, Update the
duplicated API-M AWS Lambda Configurations section heading to its correct unique
heading, and change its tab name and id from 125/_tab_125 to the next unused
identifier, such as 127/_tab_127. Ensure the corresponding label references the
updated tab id.

Source: Linters/SAST tools

🤖 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/docs/reference/config-catalog.md`:
- Around line 11993-11999: Update the credential-bearing TOML examples in the
proxy_profile sections, including the additional occurrence, with an explicit
“Example deployment.toml entry” label. Replace concrete-looking proxy_username
and proxy_password values with clearly fake placeholders, while preserving the
surrounding configuration structure.
- Around line 12029-12030: Replace the unset-value marker `-` with an empty
`<code></code>` value in the `param-default` entries for all listed
proxy-profile parameters, including both proxy-profile sections. Preserve the
existing `Default:` label and formatting while applying the catalog convention
consistently.
- Around line 12063-12072: Update both rendered proxy_port parameter entries in
the configuration catalog to use the integer type label instead of string,
including the additional occurrence noted in the review. Keep the required
badge, default value, and surrounding documentation unchanged.

---

Outside diff comments:
In `@en/docs/reference/config-catalog.md`:
- Around line 18272-18281: Update the duplicated API-M AWS Lambda Configurations
section heading to its correct unique heading, and change its tab name and id
from 125/_tab_125 to the next unused identifier, such as 127/_tab_127. Ensure
the corresponding label references the updated tab id.
🪄 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: 0b1ede00-59c0-4076-a1d1-0200652829a0

📥 Commits

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

📒 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 (4)
  • en/mkdocs.yml
  • 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/tools/config-catalog-generator/data/configs.json

Comment thread en/docs/reference/config-catalog.md Outdated
Comment thread en/docs/reference/config-catalog.md Outdated
Comment thread en/docs/reference/config-catalog.md Outdated
@hisanhunais
hisanhunais merged commit 7f5f73a into wso2:master Jul 17, 2026
2 checks passed
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.

3 participants