Skip to content

Document per-caller refusal status codes for NetBird-Only services - #1144

Draft
jnfrati wants to merge 1 commit into
mainfrom
jnfrati/proxy-refusal-status-codes
Draft

jnfrati wants to merge 1 commit into
mainfrom
jnfrati/proxy-refusal-status-codes

Conversation

@jnfrati

@jnfrati jnfrati commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

What

netbirdio/netbird#8576 (merged 2026-11-23) changed how the reverse proxy refuses requests to private (NetBird-Only) services. Refusals no longer always return 403; the status depends on the caller. The text added in #1102 described the old "always 403" behavior.

Statuses were checked against the PR's code (privateDenyStatus, privatePreAuthStatus in proxy/internal/auth/middleware.go), not only its description:

Status Caller
404 Not a peer of the account (no NetBird, public address, another account's peer)
404 Account peer with no private access, or a blocked/pending owner
403 Account peer that can reach another private service
403 / 404 IP restriction or blocked path: 403 for an account peer, 404 otherwise
401 Peer outside every Agent Network policy (no WWW-Authenticate header)
503 Proxy can't reach management to validate the peer

Changes

  • manage/reverse-proxy/troubleshooting.mdx: Issue 5 rewritten as "NetBird-Only service refuses requests" with a status-by-caller table, and a note that a 404 can mean "no access" (it shows the same Service Not Found page as an unknown host), so check the access log before DNS. DoH / HTTP-proxy cases now say 404.
  • manage/reverse-proxy/authentication.mdx: removed the "rejected with 403" claim, updated the diagram, the Block access row and the link to the renamed section.
  • manage/reverse-proxy/access-logs.mdx: refused 404/503 responses are now logged with Authentication failed.

Other pages that stated the old 403:

  • agent-network/existing-self-hosted.mdx: 401 for a peer outside the source group, 404 for a non-peer.
  • agent-network/how-it-works.mdx: 401 at the first gate, 403 at later gates.
  • agent-network/integrations/agentgateway.mdx: 401 vs 403 meanings.

Notes

  • No minimum version is stated: #8576 is only in v0.84.0-rc.1. Add the version once v0.84.0 ships.
  • The troubleshooting anchor changed to #issue-5-net-bird-only-service-refuses-requests; in-repo links are updated.
  • npm run build and npm run lint:mdx pass.

netbird#8576 (merged 2026-11-23) stops answering every refused request
to a private service with 403. The status now depends on the caller:
404 outside the account (or with no private access, or a blocked/pending
owner), 403 for a peer that reaches another private service, 401 for a
peer outside every Agent Network policy, 503 when management cannot be
asked. Pre-validation refusals (IP restriction, blocked path) are 403
for a roster peer and 404 otherwise. Verified against the PR diff
(proxy/internal/auth/middleware.go privateDenyStatus and
privatePreAuthStatus), not only its description.

- troubleshooting: replace the 403-only Issue 5 with a status-by-caller
  table and a note that a 404 can mean "no access": the refusal serves
  the same Service Not Found page as an unknown host, so check the
  access log (reason "Authentication failed") before chasing DNS. The
  DoH / HTTP-proxy cases now produce 404, so those lines say 404.
- authentication: drop the "rejected with 403" claim, update the
  diagram and the Block access row, and point to the new anchor.
- access-logs: the reason is derived from AuthSuccess, and #8576 marks
  auth-originated 404/503 as failed auth, so list them.
- agent-network pages stated 403 for a peer outside the policy and for
  non-peers; those are now 401 and 404. no_authorised_provider stays 403.

No version is stated: #8576 is only in v0.84.0-rc.1, not in a stable
release yet. The page says older proxies return 403 for every refusal.
@vercel

vercel Bot commented Nov 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Nov 24, 2026 9:07am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

This branch was successfully deployed

1 active deployment
Preview — 776bb004 Deployed Nov 24, 2026 by vercel[bot]
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.

1 participant