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

Replace "disable-ssl-redirect" annotation with "ssl-redirect" #102

Open
nilathedragon opened this issue Aug 24, 2022 · 1 comment
Open

Comments

@nilathedragon
Copy link
Contributor

nilathedragon commented Aug 24, 2022

In NGINX ssl-redirect is controlled by the "ssl-redirect" annotation.
I saw you implemented this functionality by it being enabled by default and the annotation "disable-ssl-redirect" to turn it off.

I think it would make more sense to have naming parity with the nginx annotation. It makes more sense to explicitly turn "ssl-redirect" off than turning on a disable switch which then turns off ssl-redirect.

The default for the "ssl-redirect" annotation would be "true" to match the current behaviour.

Example NGINX:

nginx.ingress.kubernetes.io/ssl-redirect: "false"

Example Caddy (Current)

caddy.ingress.kubernetes.io/disable-ssl-redirect: "true"

Example Caddy (Proposed)

caddy.ingress.kubernetes.io/ssl-redirect: "false"

Priority wise it would make sense to have ssl-redirect > disable-ssl-redirect so there is still support for the old annotation?

If that is something you'd be OK with, I'd happily make the PR necessary

@Embraser01
Copy link
Member

Yep, I'd be ok with that. I agree having an annotation starting with disable- is quite confusing, having a default value to true is better (it's not documented though, but that should change as soon as I finished the documentation)

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

No branches or pull requests

2 participants