Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip setting node IP annotation if CALICO_NETWORKING_BACKEND=none #7550

Merged
merged 1 commit into from May 8, 2023

Conversation

skmatti
Copy link
Contributor

@skmatti skmatti commented Apr 12, 2023

Description

projectcalico.org/IPv4Address and projectcalico.org/IPv4IPIPTunnelAddr annotations are used for BGP so disabling these in policy only mode

If we remove this dependency, calico-node in policy only mode does not need k8s node update/ patch permissions which addresses a vulnerability associated with node agent's over provisioned permissions.

Release Note

When running Calico in policy-only mode, do not write the IP annotations to the node.

Reminder for the reviewer

Make sure that this PR has the correct labels and milestone set.

Every PR needs one docs-* label.

  • docs-pr-required: This change requires a change to the documentation that has not been completed yet.
  • docs-completed: This change has all necessary documentation completed.
  • docs-not-required: This change has no user-facing impact and requires no docs.

Every PR needs one release-note-* label.

  • release-note-required: This PR has user-facing changes. Most PRs should have this label.
  • release-note-not-required: This PR has no user-facing changes.

Other optional labels:

  • cherry-pick-candidate: This PR should be cherry-picked to an earlier release. For bug fixes only.
  • needs-operator-pr: This PR is related to install and requires a corresponding change to the operator.

@skmatti skmatti requested a review from a team as a code owner April 12, 2023 23:01
@marvin-tigera marvin-tigera added this to the Calico v3.26.0 milestone Apr 12, 2023
@marvin-tigera marvin-tigera added release-note-required Change has user-facing impact (no matter how small) docs-pr-required Change is not yet documented labels Apr 12, 2023
@mgleung
Copy link
Contributor

mgleung commented Apr 24, 2023

/sem-approve

@mgleung mgleung added the docs-not-required Docs not required for this change label Apr 24, 2023
@marvin-tigera marvin-tigera removed the docs-pr-required Change is not yet documented label Apr 24, 2023
@mgleung
Copy link
Contributor

mgleung commented Apr 24, 2023

@skmatti it appears that a formatting check didn't pass on our end. Could I get you to run make check-fmt and fix up the errors returned there?

`projectcalico.org/IPv4Address` and `projectcalico.org/IPv4IPIPTunnelAddr` annotations are used for BGP so disabling these in `policy` only mode
@skmatti
Copy link
Contributor Author

skmatti commented May 1, 2023

@mgleung Thanks for review. I have updated the PR with formatting fixed.

@mgleung
Copy link
Contributor

mgleung commented May 8, 2023

/sem-approve

Copy link
Contributor

@mgleung mgleung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mgleung mgleung merged commit e1e4ba8 into projectcalico:master May 8, 2023
2 checks passed
@mgleung
Copy link
Contributor

mgleung commented May 8, 2023

Sorry for the delay @skmatti and thanks for the contribution!

@skmatti skmatti deleted the patch-1 branch May 10, 2023 17:41
skmatti added a commit to skmatti/calico that referenced this pull request May 29, 2023
`projectcalico.org/IPv4Address` and `projectcalico.org/IPv4IPIPTunnelAddr` annotations are used for BGP so disabling these in `policy` only mode

Cherrypicks projectcalico#7550

Change-Id: I4afc43f5c2306a2bd93ecb45876cdb5854aedb50
skmatti added a commit to skmatti/calico that referenced this pull request May 29, 2023
Followup to projectcalico#7550

Bug: 237698160

Change-Id: I185a179df725d4f113abe966c4dfc5f27fd521d8
skmatti added a commit to skmatti/calico that referenced this pull request May 29, 2023
Followup to projectcalico#7550

Change-Id: Icb738cf2d2f84c175812ac12b31c95f63139fe31
skmatti added a commit to skmatti/calico that referenced this pull request May 30, 2023
Followup to projectcalico#7550

Change-Id: I01c8018c9d47401383f05861865ff0c9b44c506e
skmatti added a commit to skmatti/calico that referenced this pull request May 30, 2023
Followup to projectcalico#7550

Change-Id: I01c8018c9d47401383f05861865ff0c9b44c506e
tobiasgiese pushed a commit to mercedes-benz/calico that referenced this pull request Jun 29, 2023
Followup to projectcalico#7550

Change-Id: I01c8018c9d47401383f05861865ff0c9b44c506e
marvin-tigera added a commit that referenced this pull request Jul 25, 2023
…olicyonly-fixes

[release-v3.26] Auto pick #7550 #7821: remove node update calls in calico-node startup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-not-required Docs not required for this change release-note-required Change has user-facing impact (no matter how small)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants