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

Đang mở
#4,436 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
helm, kubernetes
Lĩnh vực
devops

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
85
Fork
142
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
255

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của wso2/api-platform

Tất cả issue của wso2/api-platform

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.