Skip to content

docs: add Networks site-to-site use-case guide#773

Merged
SunsetDrifter merged 3 commits into
mainfrom
docs/networks-site-to-site
Jun 1, 2026
Merged

docs: add Networks site-to-site use-case guide#773
SunsetDrifter merged 3 commits into
mainfrom
docs/networks-site-to-site

Conversation

@SunsetDrifter
Copy link
Copy Markdown
Contributor

@SunsetDrifter SunsetDrifter commented May 29, 2026

Summary

Adds a canonical Site-to-Site use-case guide built on the Networks / Resources / Policies system, and repositions the legacy Network Routes guide as a narrow fallback.

NetBird's docs previously implied Networks couldn't do site-to-site (the legacy doc even stated "Network Routes is required when you need Site-to-Site"). That's incorrect — Networks fully supports two-routing-peer site-to-site, verified end-to-end in a lab. This guide documents the recommended pattern so customers migrating off legacy routes don't have to rediscover it.

Changes

  • New page src/pages/manage/networks/use-cases/site-to-site.mdx — full guide: architecture, prerequisites, example topology, setup keys, install, one Network per site (Resource + Routing Peer with Masquerade), policies, static routes (with persistence + bidirectional/return-route notes), verify, cloud routing peers, next steps.
  • Edit src/pages/manage/network-routes/use-cases/site-to-site.mdx — replaced the top <Note> to make Networks the default recommendation; Network Routes is now scoped to the wide-open, no-policy case only (empty Access Control Groups). Source-IP/Masquerade is no longer cited as a differentiator since Masquerade toggles per Routing Peer in both systems.
  • Edit src/components/NavigationDocs.jsx — added the new page to the sidebar under Networks → Use Cases.

Notes

  • Positioning is deliberate: Networks is the recommended, actively developed system; Network Routes remains only for wide-open site-to-site with no policy gating.
  • NavigationAPI.jsx needs no change (page isn't under ipa/); no next.config.mjs redirect needed.

Summary by CodeRabbit

  • Documentation
    • Added a comprehensive Site-to-Site connectivity setup guide covering architecture, prerequisites, and step-by-step configuration using NetBird's Networks system with policy-based access control.
    • Updated guidance clarifying when to use Networks versus Network Routes for site-to-site scenarios.

Add a canonical site-to-site guide built on Networks/Resources/Policies,
which is the recommended and actively developed approach. Reposition the
legacy Network Routes site-to-site Note to point at the new page and scope
Network Routes to the wide-open, no-policy case only. Add the new page to
the docs sidebar under Networks > Use Cases.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 29, 2026

Review Change Stack

Warning

Review limit reached

@SunsetDrifter, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 13 minutes and 34 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

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.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: fa13e7d4-4676-496a-85ef-07f10fef8334

📥 Commits

Reviewing files that changed from the base of the PR and between be1c981 and e2c8205.

📒 Files selected for processing (1)
  • src/pages/manage/networks/use-cases/site-to-site.mdx
📝 Walkthrough

Walkthrough

This PR introduces a new Site-to-Site Networks documentation page with end-to-end setup guidance, integrates it into the docs navigation system, and updates the legacy Network Routes page to clarify that the new Networks-based approach is the recommended solution for most site-to-site deployments.

Changes

Site-to-Site Documentation and Navigation

Layer / File(s) Summary
Site-to-Site Networks documentation page
src/pages/manage/networks/use-cases/site-to-site.mdx
Complete MDX page for Site-to-Site connectivity using routing peers and policy-gated Networks, including architecture, prerequisites, step-by-step two-site setup workflow, static route guidance for clientless devices, verification steps, and cloud routing peer forwarding requirements across AWS/GCP/Azure.
Navigation structure updates
src/components/NavigationDocs.jsx
Added Site-to-Site link under MANAGE NETBIRD → Networks → Use Cases, reformatted Kubernetes sub-navigation entries, and adjusted file-ending structure in the exported docsNavigation.
Network Routes clarification
src/pages/manage/network-routes/use-cases/site-to-site.mdx
Updated opening recommendation to position Networks Site-to-Site as preferred for most setups and narrowed Network Routes use case to scenarios requiring no policy gating (legacy wide-open mode).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Suggested reviewers

  • braginini
  • lixmal

Poem

A routing tale now finds its place,
Networks and peers in documentation space! 🐰
From cloud to site, the guide shines bright,
New pathways wired, navigation set right. ✨
Site-to-Site connects with care.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and accurately summarizes the main change: adding a new Networks site-to-site use-case guide documentation page.
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.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/networks-site-to-site

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 and usage tips.

…rks site-to-site

- Remove non-existent 'Type: Subnet' field; describe Resource Groups under
  Additional Options to match the actual UI
- Rename Step 4 to 'Create access control policies'
- Trim prerequisites (drop account line and device examples)
@SunsetDrifter SunsetDrifter marked this pull request as ready for review June 1, 2026 07:44
Copy link
Copy Markdown
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

🤖 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 `@src/components/NavigationDocs.jsx`:
- Around line 218-221: Run the mandated ESLint check (npm run lint -- src/) and
fix any reported next/core-web-vitals violations in the NavigationDocs
component: address issues around the menu item object with title 'Site-to-Site'
(ensure trailing commas, consistent quoting, and proper JSX/prop usage) and any
lint errors in the render/return JSX of the NavigationDocs component (e.g.,
unused vars, missing keys, or accessibility/Next.js rules) so the linter passes
for changes made in this file.
🪄 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: 75337b5d-7cdd-46b4-a6c3-f1bcd6b02932

📥 Commits

Reviewing files that changed from the base of the PR and between 109140a and be1c981.

📒 Files selected for processing (3)
  • src/components/NavigationDocs.jsx
  • src/pages/manage/network-routes/use-cases/site-to-site.mdx
  • src/pages/manage/networks/use-cases/site-to-site.mdx

Comment thread src/components/NavigationDocs.jsx
@SunsetDrifter SunsetDrifter merged commit e49d920 into main Jun 1, 2026
3 checks passed
@SunsetDrifter SunsetDrifter deleted the docs/networks-site-to-site branch June 1, 2026 09:23
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