Skip to content

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

@shaun-nx

Description

@shaun-nx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ingressIssues related to changes in `kind: Ingress`proposalAn issue that proposes a feature requestsize/small

    Projects

    Status

    Todo ☑

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions