Add allowedSourcePrefixes annotation documentation#2613
Open
tomastigera wants to merge 2 commits into
Open
Conversation
✅ Deploy Preview succeeded!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for calico-docs-preview-next ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds new documentation pages across Calico OSS, Calico Enterprise, and Calico Cloud describing the cni.projectcalico.org/allowedSourcePrefixes pod annotation and links them into each product’s “Configure networking” sidebar.
Changes:
- Added
allowed-source-prefixes.mdxundernetworking/configuring/for Calico, Enterprise, and Cloud. - Documented the required FelixConfiguration setting (
workloadSourceSpoofing: Any) and included a security caution about admission control. - Added sidebar entries in all three products so the new page is discoverable.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| sidebars-calico.js | Adds the new “allowed-source-prefixes” page to the Calico OSS networking/configuring sidebar. |
| sidebars-calico-enterprise.js | Adds the new page to the Calico Enterprise networking/configuring sidebar. |
| sidebars-calico-cloud.js | Adds the new page to the Calico Cloud networking/configuring sidebar. |
| calico/networking/configuring/allowed-source-prefixes.mdx | New OSS doc page for the allowedSourcePrefixes annotation and Felix prerequisite. |
| calico-enterprise/networking/configuring/allowed-source-prefixes.mdx | New Enterprise doc page for the allowedSourcePrefixes annotation and Felix prerequisite. |
| calico-cloud/networking/configuring/allowed-source-prefixes.mdx | New Cloud doc page for the allowedSourcePrefixes annotation and Felix prerequisite. |
tomastigera
marked this pull request as ready for review
July 22, 2026 16:13
Document the cni.projectcalico.org/allowedSourcePrefixes pod annotation across all three products (Calico, Calico Enterprise, Calico Cloud). This annotation allows pods to send egress traffic with source IPs outside their own address, requiring workloadSourceSpoofing: Any in FelixConfiguration. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add Calico CNI prerequisite with product-correct link (OSS uses configure-cni-plugins.mdx; Enterprise/Cloud use component-resources/configuration.mdx). The three pages are no longer byte-identical for this reason. - Fix FelixConfiguration apiVersion from crd.projectcalico.org/v1 to projectcalico.org/v3, matching the rest of the docs. - Note the annotation is enforced in both iptables/nftables and eBPF dataplanes. - Clarify that Felix drops (does not program) a pod requesting source prefixes until workloadSourceSpoofing: Any is set, per felix/calc/validation_filter.go. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
tomastigera
force-pushed
the
worktree-allowed-source-prefixes
branch
from
July 22, 2026 16:40
05e76dc to
332bd33
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
allowed-source-prefixes.mdxpage undernetworking/configuring/for all three products (Calico, Calico Enterprise, Calico Cloud)cni.projectcalico.org/allowedSourcePrefixespod annotation, which allows pods to send egress traffic with source IPs outside their own addressworkloadSourceSpoofing: AnyFelixConfiguration setting and security caution about admission controlTest plan
🤖 Generated with Claude Code