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

how enable only high secure ssl ciphers in haproxy ingress? #659

Closed
agonzalezm opened this issue Jul 1, 2024 · 3 comments
Closed

how enable only high secure ssl ciphers in haproxy ingress? #659

agonzalezm opened this issue Jul 1, 2024 · 3 comments
Labels

Comments

@agonzalezm
Copy link

agonzalezm commented Jul 1, 2024

default haproxy ingress install has many yellow insecure ciphers enabled, how can i enable only secure ciphers (green ones)

image

i tried this in ingress yaml but didnt work:

ingress.kubernetes.io/ssl-ciphers: "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384"

@agonzalezm
Copy link
Author

anyone can explain details how to remove these ciphers with haproxy ingress helm charts installed?

@fabianonunes
Copy link
Contributor

fabianonunes commented Jul 7, 2024

You can use the global-config-snippet option in ConfigMap to set the ciphers:

apiVersion: v1
kind: ConfigMap
metadata:
  name: haproxy-kubernetes-ingress
  namespace: default
data:
  global-config-snippet: |
    ssl-default-bind-ciphersuites TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256
    ssl-default-bind-options prefer-client-ciphers no-sslv3 no-tlsv10 no-tlsv11 no-tlsv12 no-tls-tickets

If you are using Helm, you can pass these options in controller.config from values.yaml:

# (...)
controller:
  config:
    global-config-snippet: |
      ssl-default-bind-ciphersuites ...
      ssl-default-bind-options ...

Copy link

stale bot commented Aug 7, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 7, 2024
@stale stale bot closed this as completed Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants