Skip to content

Ingress is not attaching to load balancer if the ingress file is having configuration snippet #13156

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

Closed
PRYeswanthReddy opened this issue Apr 3, 2025 · 3 comments
Labels
needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@PRYeswanthReddy
Copy link

Ingress is not attaching to load balancer if the ingress file is having configuration snippet

For example:

if ingress is having the below annotation, the ingress is not getting a load balancer.

nginx.ingress.kubernetes.io/configuration-snippet: >
  more_set_headers "Strict-Transport-Security : max-age=31536000;
  includeSubDomains;";

This happened after upgrading from 4.11.0 to 4.12.1 , if we remove that annotation the loadbalancer is getting attached.

i was going through some documentations and could see that setting this annotation-risk-level to critical will solve this issue, is this okay to bypass using this annotation? if we use this annotation at controller level will there be any security issues?

@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Apr 3, 2025
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority labels Apr 3, 2025
@PRYeswanthReddy
Copy link
Author

if we have configuration-snippet in annotations of specific ingress, do we need to set the annotations-risk-level: Critical?

Will this annotation will be removed in future?

@Gacko
Copy link
Member

Gacko commented Apr 12, 2025

Please read the release notes of v1.12.0. You will need to set annotations-risk-level: Critical to re-enable snippet annotations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
Development

No branches or pull requests

3 participants