Skip to content

fix(docs): correct sandbox-hardening link and security layer count - #5099

Merged
cv merged 2 commits into
mainfrom
fix/5088-best-practices-link-and-layers
Jun 11, 2026
Merged

cv merged 2 commits into
mainfrom
fix/5088-best-practices-link-and-layers

Conversation

@Dongni-Yang

@Dongni-Yang Dongni-Yang commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

docs/security/best-practices.mdx had two QA-found issues (#5088):

  • The Sandbox Hardening links (in-body and Related Topics) pointed at
    ../manage-sandboxes/sandbox-hardening, but the page lives at
    docs/deployment/sandbox-hardening.mdx. Corrected to ../deployment/sandbox-hardening.
  • The intro, the Mermaid diagram, and the "Protection Layers at a Glance" table
    described four layers (network, filesystem, process, inference) while the
    body documents five layer sections — it adds Gateway Authentication.
    Reconciled to five layers in the intro, diagram, and table. The Gateway
    Authentication section heading is outside the AgentOnly blocks, so both the
    OpenClaw and Hermes variants render it — five layers is correct for both.

Related Issue

Closes #5088

Changes

  • docs/security/best-practices.mdx:
    • Sandbox Hardening link path fix (×2 — in-body + Related Topics).
    • Intro and at-a-glance sentence now say "five layers".
    • Mermaid diagram gains a Gateway Authentication node (create-time / locked).
    • At-a-glance table gains a Gateway Authentication row.
  • test/repro-5088-best-practices-layers.test.ts: regression test asserting the
    canonical link and that the intro/at-a-glance agree with the five body layer
    sections (fails before this change, passes after).

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Verification

  • npx prek run --all-files passes
  • Tests added or updated for new or changed behavior
  • No secrets, API keys, or credentials committed
  • Docs updated for user-facing behavior changes

Signed-off-by: Dongni Yang dongniy@nvidia.com

Summary by CodeRabbit

  • Documentation
    • Introduced Gateway Authentication as the fifth security layer in the security best practices documentation.
    • Expanded protection layers documentation and diagram to reflect the complete five-layer security model.
    • Corrected documentation references for Sandbox Hardening to the canonical location.

Security Best Practices (docs/security/best-practices.mdx) had two QA-found
issues (#5088):

- The in-body and Related Topics links to Sandbox Hardening used
  ../manage-sandboxes/sandbox-hardening; the page lives at
  docs/deployment/sandbox-hardening.mdx, so use ../deployment/sandbox-hardening.
- The intro, Mermaid diagram, and at-a-glance table described "four layers"
  (network, filesystem, process, inference) but the body documents five layer
  sections — it adds Gateway Authentication. Reconcile to five layers
  everywhere (both agent variants render the Gateway Authentication section).

Add a regression test asserting the canonical link and that the intro and
at-a-glance overview agree with the five body layer sections.

Closes #5088
Signed-off-by: Dongni Yang <dongniy@nvidia.com>
@coderabbitai

coderabbitai Bot commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: e70d3055-9307-42e5-8a20-f772b120ca5b

📥 Commits

Reviewing files that changed from the base of the PR and between 8827570 and c9d0918.

📒 Files selected for processing (2)
  • docs/security/best-practices.mdx
  • test/repro-5088-best-practices-layers.test.ts

📝 Walkthrough

Walkthrough

This PR resolves documentation and consistency issues in the security best practices page. The intro and diagram are updated to describe five security layers (adding Gateway Authentication), the layers table is expanded to include the new layer, broken sandbox-hardening links are corrected to the canonical path, and a regression test validates all changes.

Changes

Security Best Practices Five-Layer Documentation

Layer / File(s) Summary
Gateway Authentication layer introduction
docs/security/best-practices.mdx
Intro paragraph and "Protection Layers at a Glance" section updated from four to five layers. New Gateway Authentication row added to the layers table, marked as not changeable at runtime.
Sandbox-hardening documentation link fixes
docs/security/best-practices.mdx
Two broken internal links to sandbox hardening documentation corrected from ../manage-sandboxes/sandbox-hardening to ../deployment/sandbox-hardening in both the in-body note and Related Topics section.
Regression test for layer consistency and link validation
test/repro-5088-best-practices-layers.test.ts
New Vitest test validates that the documentation consistently describes five named security layers, uses the correct sandbox-hardening path, and does not reference the broken path. Test also confirms intro/diagram text references five layers instead of four.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 Five layers strong, now the docs agree,
Gateway guards the path from sea to server tree,
Broken links restored to their rightful place,
A test keeps consistency in the security space! 🔐

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the two main fixes: correcting the sandbox-hardening link and updating the security layer count from four to five.
Linked Issues check ✅ Passed The PR successfully addresses both primary objectives from #5088: corrects the sandbox-hardening link from manage-sandboxes to deployment path, and reconciles the layer-count inconsistency by updating intro/diagram to reflect five layers including Gateway Authentication.
Out of Scope Changes check ✅ Passed All changes are directly scoped to requirements in #5088: documentation fixes to the best-practices file and a regression test validating the fixes. No out-of-scope modifications detected.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/5088-best-practices-link-and-layers

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

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

E2E Advisor Recommendation

Required E2E: None
Optional E2E: None

Workflow run

Full advisor summary

E2E Recommendation Advisor

Base: origin/main
Head: HEAD
Confidence: high

Required E2E

  • None. No E2E is recommended because this PR only changes documentation and adds a documentation-content regression test. Although the page discusses security boundaries, there are no changes to installer/onboarding, sandbox lifecycle, credentials, network policy enforcement, inference routing, deployment behavior, or real assistant user flows.

Optional E2E

  • None.

New E2E recommendations

  • None.

@github-actions

github-actions Bot commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

E2E Scenario Advisor Recommendation

Required scenario E2E: None
Optional scenario E2E: None

Workflow run

Full scenario advisor summary

E2E Scenario Advisor

Base: origin/main
Head: HEAD
Confidence: high

Required scenario E2E

  • None. Only documentation and a non-scenario regression test changed; no files under test/e2e-scenario/, scenario workflows, or directly scenario-relevant paths were modified.

Optional scenario E2E

  • None.

Relevant changed files

  • None.

@github-actions

github-actions Bot commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

PR Review Advisor

Findings: 0 needs attention, 0 worth checking, 0 nice ideas
Since last review: 0 prior items resolved, 0 still apply, 0 new items found

Workflow run details

This is an automated advisory review. A human maintainer must make the final merge decision.

@wscurran wscurran added area: docs Documentation, examples, guides, or docs build area: security Security controls, permissions, secrets, or hardening bug-fix PR fixes a bug or regression labels Jun 10, 2026
@wscurran

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 5e6e9b8 into main Jun 11, 2026
39 checks passed
@cv
cv deleted the fix/5088-best-practices-link-and-layers branch June 11, 2026 09:39
@wscurran wscurran added the NV QA Bugs found by the NVIDIA QA Team label Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Documentation, examples, guides, or docs build area: security Security controls, permissions, secrets, or hardening bug-fix PR fixes a bug or regression NV QA Bugs found by the NVIDIA QA Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[All Platforms][Docs] Security Best Practices: broken sandbox-hardening link and four-vs-five layer inconsistency

5 participants