Skip to content

DOC-1943 single source schema id validation#1565

Merged
micheleRP merged 13 commits intomainfrom
DOC-1943-single-source-schema-id-validation
Feb 4, 2026
Merged

DOC-1943 single source schema id validation#1565
micheleRP merged 13 commits intomainfrom
DOC-1943-single-source-schema-id-validation

Conversation

@micheleRP
Copy link
Contributor

@micheleRP micheleRP commented Feb 3, 2026

Description

NOTE: Single sourcing for this in cloud-docs in redpanda-data/cloud-docs#495

This pull request updates doc for schema ID validation to support both cloud and SM environments.

  • Added start and end tags (// tag::redpanda-cloud[] and // end::redpanda-cloud[]) around the cloud-specific documentation for the enable_schema_id_validation property in cluster-properties.adoc. [1] [2]
  • Added a caution note to the enable_schema_id_validation property documentation, warning that enabling this property may cause decompression across topics and increase CPU load.
    • Updated references to redpanda.* and confluent.* topic properties in schema-id-validation.adoc to use conditional AsciiDoc macros (ifndef::env-cloud[] and ifdef::env-cloud[]), ensuring correct property linking for cloud and non-cloud environments. [1] [2]

Resolves https://redpandadata.atlassian.net/browse/DOC-1943
Review deadline:

Page previews

What's New in Redpanda Cloud
Schema ID Validation (in Cloud)
enable_schema_id_validation (in Cloud)
enable_schema_id_validation (in SM)

Checks

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

@netlify
Copy link

netlify bot commented Feb 3, 2026

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit de4c9d6
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-docs-preview/deploys/698394f84ca02900080ff7f3
😎 Deploy Preview https://deploy-preview-1565--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
Copy link
Contributor

coderabbitai bot commented Feb 3, 2026

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.

  • 🔍 Trigger a full review
📝 Walkthrough

Walkthrough

This pull request updates documentation to introduce the enable_schema_id_validation cluster property for Redpanda Cloud. Changes include: updating the local Antora playbook to reference a feature branch for cloud-docs, adding conditional documentation blocks to hide on-premises-specific notes from cloud builds, and documenting the new configuration property with its accepted values, defaults, and licensing requirements. The property accepts none, redpanda, or compat modes with Enterprise license requirements for certain modes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested reviewers

  • mattschumpert
  • Feediver1
  • paulohtb6
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: updating documentation to support schema ID validation as a single source for both cloud and non-cloud environments.
Linked Issues check ✅ Passed The PR addresses DOC-1943's objective to support a single-source approach for schema ID validation documentation across cloud and non-cloud environments through conditional rendering and proper documentation tagging.
Out of Scope Changes check ✅ Passed All changes are directly related to DOC-1943: conditional topic property references, cloud-specific documentation tagging, caution notes for enable_schema_id_validation property, and playbook updates for preview—no unrelated modifications detected.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed The PR description is comprehensive and includes all required template sections with detailed explanations of changes, JIRA references, multiple page previews, and appropriate checkboxes.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch DOC-1943-single-source-schema-id-validation

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

@micheleRP micheleRP marked this pull request as ready for review February 3, 2026 18:26
@micheleRP micheleRP requested a review from a team as a code owner February 3, 2026 18:26
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

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

⚠️ Outside diff range comments (1)
modules/manage/pages/schema-reg/schema-id-validation.adoc (1)

93-112: ⚠️ Potential issue | 🔴 Critical

These xref anchors don't exist in topic-properties.adoc—the links will break.

The schema properties are defined as level 3 headings in the properties partial file (e.g., === redpanda.key.schema.id.validation), which auto-generates anchors with hyphens (e.g., redpanda-key-schema-id-validation). However, all 8 xrefs reference anchor names without hyphens or separators (e.g., #redpandakeyschemavalidation).

The mismatch means the published documentation will contain broken links. Either add explicit anchors [[redpandakeyschemavalidation]] etc. to the properties or update the xrefs to use hyphenated anchor names matching the auto-generated ones.

🤖 Fix all issues with AI agents
In `@local-antora-playbook.yml`:
- Around line 22-23: The playbook currently pins the Antora remote repository
branch via the branches entry set to the feature branch name; change the
branches value to a stable branch (e.g., "main") and remove any committed
feature-branch override so local previews don’t break when the feature branch is
deleted; update the branches field in local-antora-playbook.yml (the entry with
url: https://github.com/redpanda-data/cloud-docs and branches:) to "main" and
ensure any feature-branch usage remains in your local configuration only.
🧹 Nitpick comments (2)
modules/reference/partials/properties/cluster-properties.adoc (2)

5071-5072: Use empty-bracket xref to avoid hard‑coded link text.

Prefer xref:manage:schema-reg/schema-id-validation.adoc[] so the title is sourced from the target page.

As per coding guidelines: “prefer using xref links with empty brackets (e.g., xref:section/target.adoc[]) because the title is pulled from the referenced document automatically.”


5019-5021: Consider a CAUTION block for consistent rendering.

Inline CAUTION: works, but a formal block renders more consistently with other notes.

Proposed tweak
-CAUTION: This property could cause decompression across topics and increase CPU load.
+CAUTION: This property could cause decompression across topics and increase CPU load.


Controls whether Redpanda validates schema IDs in records and which topic properties are enforced.

CAUTION: This property could cause decompression across topics and increase CPU load.

Choose a reason for hiding this comment

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

@micheleRP "NOTE: enabling this property will trigger decompression of message batches for topics on which validation is configured, leading to a modest increase in CPU load. We recommend monitoring CPU utilization after topics are configured"

@micheleRP note the TOPIC configurations are probably elsewhere in the ID validation docs(confluent.<key/value>.schema.validation)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mattschumpert I conditionalized out these topic properties for Cloud, since we don't document them in Cloud docs (see here). Please confirm that this is correct!

Copy link
Contributor

@Feediver1 Feediver1 left a comment

Choose a reason for hiding this comment

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

lgtm - thanks!

@micheleRP micheleRP merged commit c70983b into main Feb 4, 2026
7 checks passed
@micheleRP micheleRP deleted the DOC-1943-single-source-schema-id-validation branch February 4, 2026 18:55
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