[Improvement]: API Portal Helm chart can't set the HTTPS listener's TLS versions, ciphers or key-exchange groups

Aperta
#4,436 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
helm, kubernetes
Ambito
devops

Direzione di ricerca

Start with kubernetes/helm/api-portal-ui-helm-chart/templates/configmap.yaml, where the [api_portal.server.https] table is written, and with values.yaml next to it, which has no keys for the listener's TLS settings. Add optional values for minimum and maximum protocol version, ciphers and ecdh_curves, and render them into that table only when set so the defaults stay unchanged. Done when helm template shows the new keys in the rendered config only when they are set, and the existing defaults still render as before.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Area/DeveloperPortal Aspect/Configuration Type/Improvement
Please select the area the issue is related to

DeveloperPortal

Please select the aspect the issue is related to

Aspect/Configuration (Config files, settings, env vars, defaults)

Suggested Improvement

Current limitation

The API Portal UI chart writes [api_portal.server.https] itself (configmap.yaml#L33) with only enabled, cert_file and key_file. values.yaml has nothing for the listener's other TLS keys: minimum_protocol_version, maximum_protocol_version, ciphers and ecdh_curves.

There's no workaround:

  • configToml appends raw TOML. Redefining [api_portal.server.https] there makes config.toml fail to parse ("trying to redefine an already defined table"), and the portal doesn't start.
  • The portal has no environment-variable mapping for these keys.

So a portal deployed with the chart always uses the listener defaults: TLS 1.2–1.3, the built-in cipher set and the classical groups X25519,P-256. Operators can't turn on post-quantum key exchange (X25519MLKEM768) on the listener or require TLS 1.3. Outbound [api_portal.http_client.tls] does work through configToml, because the chart doesn't write that table.

Suggestion

Add chart values for the four listener keys and render them into [api_portal.server.https] when set, leaving the portal defaults in place when they aren't. First-class values for [api_portal.http_client.tls] would make the two sides consistent, but they aren't required.

Related Issues

wso2/docs-api-platform#855 documents the current limitation.

Lingua principale
Go
Stelle
85
Fork
142
Merge medio
1g 7h
PR unite (30g)
255

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wso2/api-platform

Tutte le issue di wso2/api-platform

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.