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

Disabling HSTS - doesn't work #881

Closed
Adiqq opened this issue Feb 15, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@Adiqq
Copy link

commented Feb 15, 2018

Hi,

I'm testing Voyager 6.0.0-rc.0, here's my ingress:

apiVersion: voyager.appscode.com/v1beta1
kind: Ingress
metadata:
  name: test-https-ingress
  namespace: default
  annotations:
    ingress.appscode.com/type: NodePort
    ingress.kubernetes.io/hsts: "false"
spec:
  tls:
  - secretName: tls-secret
    hosts:
    - "*.a"
  rules:
  - host: "*.a"
    http:
      port: '32100'
      nodePort: '32100'
      paths:
      - backend:
          serviceName: httpbin
          servicePort: '8000'
  - host: "*.a"
    http:
      port: '32101'
      nodePort: '32101'
      paths:
      - backend:
          serviceName: httpbin2
          servicePort: '8000'

Despite ingress.kubernetes.io/hsts: "false" annotation, server sends response header Strict-Transport-Security:max-age=15768000

@Adiqq Adiqq changed the title Disable HSTS Disabling HSTS - doesn't work Feb 15, 2018

@Adiqq

This comment has been minimized.

Copy link
Author

commented Feb 15, 2018

I also checked ingress.kubernetes.io/hsts-max-age: 0 , but it doesn't work either.
It worked with 5.0.0-rc.11

@Adiqq

This comment has been minimized.

Copy link
Author

commented Feb 15, 2018

ingress.appscode.com/hsts: "false" works, so it's only necessary to update documentation.

@diptadas

This comment has been minimized.

Copy link
Contributor

commented Feb 15, 2018

Hi, all our annotations are now under key ingress.appscode.com
Can you try with ingress.appscode.com/hsts: "false"

@diptadas diptadas closed this Feb 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.