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

Add ingress.kubernetes.io/ssl-redirect-return-code annotation #7128

Open
2 tasks
shaun-nx opened this issue Jan 14, 2025 · 1 comment
Open
2 tasks

Add ingress.kubernetes.io/ssl-redirect-return-code annotation #7128

shaun-nx opened this issue Jan 14, 2025 · 1 comment
Labels
area/ingress Issues related to changes in `kind: Ingress` proposal An issue that proposes a feature request ready for refinement An issue that was triaged and it is ready to be refined

Comments

@shaun-nx
Copy link
Contributor

shaun-nx commented Jan 14, 2025

Overview

Configuring the ingress.kubernetes.io/ssl-redirect annotation in Ingress sets and unconditional 301 redirect rule for all incoming HTTP traffic to force incoming traffic over HTTPS.

In scenarios where users want to prevent the request method from changing, code 308 would be required
For context on return code 308
The goal of this story is to allow users to set the return code when ingress.kubernetes.io/ssl-redirect annotation is used

Acceptance Criteria

  • Requires ingress.kubernetes.io/ssl-redirect to be set first.
  • Allow annotation to be set to either 301, 302, 307 or 308

Additional details

This aligns with functionality currently available through VirtualServer with TLS.Redirect

@shaun-nx shaun-nx added area/ingress Issues related to changes in `kind: Ingress` proposal An issue that proposes a feature request ready for refinement An issue that was triaged and it is ready to be refined labels Jan 14, 2025
Copy link

Hi @shaun-nx thanks for reporting!

Be sure to check out the docs and the Contributing Guidelines while you wait for a human to take a look at this 🙂

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ingress Issues related to changes in `kind: Ingress` proposal An issue that proposes a feature request ready for refinement An issue that was triaged and it is ready to be refined
Projects
Status: Todo ☑
Development

No branches or pull requests

1 participant