Skip to content

feat(portal): Sanitize sensitive data in Spec Renderer#5704

Open
cloudjumpercat wants to merge 1 commit into
mainfrom
feat/sanitize-spec-renderer-info
Open

feat(portal): Sanitize sensitive data in Spec Renderer#5704
cloudjumpercat wants to merge 1 commit into
mainfrom
feat/sanitize-spec-renderer-info

Conversation

@cloudjumpercat

Copy link
Copy Markdown
Contributor

Description

Fixes #5088

Preview Links

/catalog/apis/#protect-sensitive-data-in-your-api-docs

Checklist

  • Tested how-to docs. If not, note why here.
  • All pages contain metadata.
  • Any new docs link to existing docs.
  • All autogenerated instructions render correctly (API, decK, Konnect, Kong Manager).
  • Style guide (capitalized gateway entities, placeholder URLs) implemented correctly.
  • Every page has a description entry in frontmatter.
  • Add new pages to the product documentation index (if applicable).

Signed-off-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 24, 2026 20:42
@cloudjumpercat cloudjumpercat requested a review from a team as a code owner June 24, 2026 20:42
@cloudjumpercat cloudjumpercat added do not merge Issues/ PRs whose changes should not be merged at this time release-docs Docs for release labels Jun 24, 2026
@netlify

netlify Bot commented Jun 24, 2026

Copy link
Copy Markdown

Deploy Preview for kongdeveloper ready!

Name Link
🔨 Latest commit 4b4ebdb
🔍 Latest deploy log https://app.netlify.com/projects/kongdeveloper/deploys/6a3c4131c8acf9000845cad4
😎 Deploy Preview https://deploy-preview-5704--kongdeveloper.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI 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.

Pull request overview

Adds documentation to the Dev Portal “APIs” page describing how the Spec Renderer masks sensitive data in generated examples and in the Try It UI, aligning with issue #5088.

Changes:

  • Adds “Sensitive data masking” to the Spec renderer feature support list.
  • Introduces a new “Protect sensitive data in your API docs” section covering x-sensitive-data mask strategies, usage example, and the “Mask sensitive data” toggle behavior.

Comment thread app/catalog/apis.md
```

{:.info}
> Masking is display-only. Try It always sends the real credential values so API calls work correctly.
Comment thread app/catalog/apis.md
If your spec includes example values for fields like passwords, API keys, or email addresses, you can prevent those values from appearing in generated code samples, spec examples, and Try It responses.

* **Automatic masking:** Authentication credentials from `securitySchemes` are masked automatically in code samples and Try It response headers. No annotation is needed.
* **Opt-in masking with `x-sensitive-data`:** For request and response body properties that contain sensitive values, add `x-sensitive-data` to the schema property. This controls how the value is displayed in code sample examples and Try It response bodies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Issues/ PRs whose changes should not be merged at this time release-docs Docs for release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dev Portal: Sanitize sensitive data in Spec Renderer

2 participants