-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
deactivated hsts by default #2591
Conversation
HSTS has been deactivated explicitly by default for the ingress controller in minikube, because it causes trouble for local development. Minikube is intended for local development, so this feature should not be turned on by default.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: lenalebt Assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Can one of the admins verify this patch? |
@minikube-bot ok to test |
This makes sense, but could you also add a note about this somewhere to the docs? Maybe in addons.md? |
Added note about where to find plugin configuration.
I added a note where to find the config, in addons.md and a link to the config map where all the options are described. Duplicating config options in the minikube docs will outdate soon, and this allows to find the real options that will be applied, even for the other addons where I did not change anything. |
So I just ran into this problem with minikube v0.25.0. I've tried writing Is there any way to disable HSTS now before this change makes it into an official minikube release? I can't use any of my local ingresses because my browsers have all suddenly become extremely strict. |
There is a workaround; you can add an annotation So:
Just make sure you don't connect to minikube with enabled ingress addon before the ingresses have been deployed. |
Thank you @lenalebt! I tried to implement your suggestion, but didn't have any success. After deleting and redeploying my ingress with the annotation you described, requests are still returning the If you have any other suggestions, I'll gladly try to follow them. If not, I'll just have to wait for the next release of minikube with your patch. |
HSTS has been deactivated explicitly by default for the ingress controller in minikube, because it causes trouble for local development. Minikube is intended for local development (where e.g. getting let's-encrypt-certificates is not an option), so this feature should not be turned on by default.