Skip to content

Schema Registry contexts: SerDes client support via URL prefix (DOC-2397, DOC-2304) - #1850

Open
Feediver1 wants to merge 2 commits into
mainfrom
DOC-2397-serdes-contexts
Open

Schema Registry contexts: SerDes client support via URL prefix (DOC-2397, DOC-2304)#1850
Feediver1 wants to merge 2 commits into
mainfrom
DOC-2397-serdes-contexts

Conversation

@Feediver1

@Feediver1 Feediver1 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Documents the v26.2 SerDes support for Schema Registry contexts: any SerDes client, in any language, can target a context by pointing schema.registry.url at a /contexts/{context} URL prefix — no client-side context support needed.

Covers both tickets in one PR since both affected pages are single-sourced into cloud-docs:

  • DOC-2397 — Self-Managed SerDes contexts support
  • DOC-2304 — Cloud twin (same epic ENG-1036)

Changes

schema-reg-contexts.adoc (single-sourced)

  • New [#serdes-clients] section: URL-prefix pattern with client config example, endpoint families covered, automatic schema-ID-lookup scoping, prefix/qualified-subject equivalence example, context-name normalization rules, ACL behavior, and an IMPORTANT callout for the silent-failure mode (qualified parsing inactive → /contexts/ requests silently store literal subjects)
  • Client integration table: "Non-Java SerDes: Not supported (workaround)" → Supported via URL prefix; Java SerDes no longer requires ContextNameStrategy
  • Removed the stale "Non-Java SerDe clients: Not supported" limitation bullet
  • Cloud path (per Kat's note on DOC-2304): BYOC/Dedicated "contact support to enable" → enabled by default, with opt-out instructions; added a cloud resolution branch in troubleshooting
  • Troubleshooting: expanded the "treated as literal names" entry with the URL-prefix symptom and a GET /contexts quick check
  • Fixed the subject audit command: grep '^\.'grep '^:\.' (both occurrences). Only names starting with :. are affected by the breaking change; .foo stays literal. The old pattern missed affected subjects and false-positived unaffected ones.

schema-reg-api.adoc (single-sourced)

  • Version-conditioned the "first set the property" instruction (26.2 default is true); cloud variant updated to enabled-by-default
  • Added a pointer to the URL-prefix mechanism and the new section

release-notes/redpanda.adoc

  • New 26.2 entry: SerDes client support for contexts

Companion cloud-docs PR (What's New entry): redpanda-data/cloud-docs#654 — merge this PR first (the What's New entry links the #serdes-clients anchor, which reaches cloud-docs through the single-source include).

Verification

🤖 Generated with Claude Code

Preview pages

…ix (DOC-2397, DOC-2304)

- Add "Use contexts with SerDes clients" section: URL-prefix pattern,
  endpoint coverage, automatic ID-lookup scoping, name normalization,
  ACL behavior, and the silent-failure gotcha when qualified parsing
  is inactive
- Update client integration table: Non-Java SerDes now supported via
  URL prefix (was "Not supported / workaround"); Java no longer
  requires ContextNameStrategy
- Cloud (DOC-2304): BYOC/Dedicated text updated from
  "contact support to enable" to enabled-by-default with opt-out
- Fix subject audit grep: affected names start with ':.' not '.'
- Version-condition the "set the property first" instruction on the
  API page (26.2 default is true)
- Add 26.2 release-notes entry

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@netlify

netlify Bot commented Jul 29, 2026

Copy link
Copy Markdown

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit 1de0987
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-docs-preview/deploys/6a6a65db70efea00079d62b5
😎 Deploy Preview https://deploy-preview-1850--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.

@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The documentation now describes Schema Registry contexts as enabled by default in Redpanda v26.2 and env-cloud deployments, with version-specific configuration guidance for earlier or opted-out deployments. It documents context-scoped URL prefixes for Schema Registry and SerDes clients, updates Java and non-Java integration status, clarifies schema ID lookup behavior, and adds URL validation, troubleshooting, upgrade-audit, and cloud configuration guidance.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • redpanda-data/docs#1806: Updates documentation metadata for the schema_registry_enable_qualified_subjects property.

Suggested reviewers: kbatuigas, jakescahill

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly names the main change: Schema Registry context support for SerDes clients via URL prefix.
Description check ✅ Passed The description is mostly complete, with summary, changes, verification, page previews, and ticket links, though it doesn't follow the template exactly.
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
  • Commit unit tests in branch DOC-2397-serdes-contexts

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

Comment thread modules/manage/pages/schema-reg/schema-reg-api.adoc Outdated
Comment thread modules/manage/pages/schema-reg/schema-reg-contexts.adoc Outdated
Co-authored-by: Joyce Fee <102751339+Feediver1@users.noreply.github.com>
@Feediver1
Feediver1 marked this pull request as ready for review July 29, 2026 20:43
@Feediver1
Feediver1 requested a review from a team as a code owner July 29, 2026 20:43

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 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 `@modules/manage/pages/schema-reg/schema-reg-contexts.adoc`:
- Around line 745-752: Revise the diagnostic guidance around the /contexts curl
check so a response of ["." ] is not presented as proof that qualified subject
parsing is disabled. In the schema-registry troubleshooting section, instruct
readers to verify the relevant configuration and restart state directly, or
register a probe schema in a non-default context before interpreting the result.
🪄 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: 2597342c-fed0-4b89-9525-526d65504e84

📥 Commits

Reviewing files that changed from the base of the PR and between 4e47021 and 1de0987.

📒 Files selected for processing (3)
  • modules/get-started/pages/release-notes/redpanda.adoc
  • modules/manage/pages/schema-reg/schema-reg-api.adoc
  • modules/manage/pages/schema-reg/schema-reg-contexts.adoc

Comment on lines +745 to +752
To confirm, check whether the registry lists only the default context while clients are using qualified subjects or context URLs:

[source,bash]
----
curl -s http://localhost:8081/contexts
----

If the response is `["."]`, qualified subject parsing is not active.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Do not treat ["."] as proof that parsing is disabled.

Because contexts are listed only after a schema is registered, an enabled cluster with no non-default schemas also returns ["."]. Check the configuration and restart state directly, or register a probe schema in a non-default context before using this result diagnostically.

🤖 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 `@modules/manage/pages/schema-reg/schema-reg-contexts.adoc` around lines 745 -
752, Revise the diagnostic guidance around the /contexts curl check so a
response of ["." ] is not presented as proof that qualified subject parsing is
disabled. In the schema-registry troubleshooting section, instruct readers to
verify the relevant configuration and restart state directly, or register a
probe schema in a non-default context before interpreting the result.


ifndef::env-cloud[]
To use contexts, first set the `schema_registry_enable_qualified_subjects` cluster configuration property to `true`, then restart the brokers. See xref:manage:schema-reg/schema-reg-contexts.adoc[] for setup instructions.
In Redpanda v26.2 and later, contexts are enabled by default. In earlier versions, first set the `schema_registry_enable_qualified_subjects` cluster configuration property to `true`, then restart the brokers. See xref:manage:schema-reg/schema-reg-contexts.adoc[] for setup instructions.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@pgellert what is the behavior though on upgrade from 26.2. Does it flip to on, or in 26.2 it is only enabled by default in NEW cluster?


ifdef::env-cloud[]
NOTE: On BYOC and Dedicated clusters, contact Redpanda support or use the cluster configuration API to enable `schema_registry_enable_qualified_subjects`. This property requires a broker restart.
NOTE: On BYOC and Dedicated clusters, Schema Registry contexts are enabled by default. To opt out, use the cluster configuration API or contact Redpanda support to set `schema_registry_enable_qualified_subjects` to `false`. This property requires a broker restart.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same question here @pgellert . cc @Feediver1

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