Skip to content

Add new network policy for ingress controller webhook#5500

Merged
brandond merged 1 commit intorancher:masterfrom
brandond:allow-ingress-webhook
Feb 21, 2024
Merged

Add new network policy for ingress controller webhook#5500
brandond merged 1 commit intorancher:masterfrom
brandond:allow-ingress-webhook

Conversation

@brandond
Copy link
Copy Markdown
Member

@brandond brandond commented Feb 21, 2024

Proposed Changes

Add new network policy for ingress controller webhook.

The ingress-nginx chart added a validating webhook a while back, but we did not have a policy that allowed access to it. Access was being allowed by the overly broad network policy that we removed in #5318.

Unfortunately we can't just add this to the existing netpol, as we document that it is not updated once the namespace annotation has been set.

Types of Changes

bugfix

Verification

See linked issue

Testing

Linked Issues

User-Facing Change


Further Comments

@brandond brandond requested a review from a team as a code owner February 21, 2024 21:13
Protocol: &tcp,
Port: &intstr.IntOrString{
IntVal: int32(80),
StrVal: "http",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Protocol: &tcp,
Port: &intstr.IntOrString{
IntVal: int32(443),
StrVal: "https",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

{
Protocol: &tcp,
Port: &intstr.IntOrString{
StrVal: "webhook",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Unfortunately we can't just add this to the existing netpol, as we document that it is not updated once the namespace annotation has been set.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond brandond force-pushed the allow-ingress-webhook branch from 3e046fb to 78178ee Compare February 21, 2024 21:58
@brandond brandond merged commit 03437e4 into rancher:master Feb 21, 2024
@brandond brandond deleted the allow-ingress-webhook branch June 6, 2024 23:11
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.

3 participants