net/haproxy: per-certificate (SNI) client certificate verification (mTLS) in Public Service
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- php
- 領域
- networking
調査の方向性
Start by reading the HAProxy plugin's Public Service SSL Offloading configuration and how it generates certificate lists; the issue names no source files or tests. Compare the generated entries with the HAProxy 2.8 crt-list options described in the issue. Done means per-certificate settings can be configured and rendered so verification applies only to the selected SNI.
索引モデルが issue の本文から書いたものです。
説明
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
- I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
- I have searched the existing issues, open and closed, and I'm convinced that mine is new.
- When the request is meant for an existing plugin, I've added its name to the title.
Is your feature request related to a problem? Please describe.
I run a single HAProxy Public Service on WAN:443 that terminates TLS for many domains. One of them (e.g. monitoring.example.com) must require mutual TLS (client certificates issued by a private CA). The others must stay unchanged.
Currently, client certificate verification can only be set per Public Service, which applies it to every domain on that bind:
requiredbreaks all other domains.optionalsends a CertificateRequest for every domain. Users holding a matching client certificate get a certificate prompt on unrelated sites.
HAProxy itself supports this natively. A crt-list entry can carry its own SSL bind options, so verification can be enforced for one SNI only:
/path/monitoring.pem [verify required ca-file /path/client-ca.pem crl-file /path/client-ca.crl] monitoring.example.com
/path/other.pem other.example.com
The plugin GUI offers no way to set these per-certificate options. Manual edits to the generated files are overwritten on Apply, restart, or reboot.
Describe the solution you'd like
In Public Service → SSL Offloading, allow per-certificate (per-SNI) overrides that the plugin renders as crt-list entry options:
- Client certificate verification:
inherit(default) /none/optional/required - Certificate Authorities used for client verification (selection from System → Trust → Authorities) →
ca-file - CRLs (selection from System → Trust → Revocation) →
crl-file - Optionally, a free-text "SSL options pass-through" field per certificate for other supported crt-list options (
alpn,ssl-min-ver,ciphers, ...)
Example result for the config above: the client certificate is requested and required only when the SNI is monitoring.example.com. All other domains on the same Public Service behave as before.
Describe alternatives you've considered
- Separate Public Service for the mTLS domain. Works, but needs an extra public IP or a non-standard port.
verify optionalon the shared Public Service plus backend ACLs. Uses backend option pass-through, e.g.http-request deny unless { ssl_c_used } { ssl_c_verify 0 }. Works, but users with client certificates get certificate prompts on all other domains.- Chained frontends. A TCP-mode Public Service routes by
req.ssl_snito two internal SSL Public Services on 127.0.0.1 with PROXY protocol, one of them withverify required. Works entirely from the GUI, but is complex and adds an extra hop for all traffic. - Editing the generated crt-list in
/tmp/haproxy/ssl/by hand. Works as a proof of concept, but is overwritten on every Apply, service restart, reboot, or plugin update.
Additional context
- HAProxy documentation, crt-list (per-entry SSL bind options such as
verify,ca-file,crl-file): https://docs.haproxy.org/3.2/configuration.html#5.1-crt-list - Use case: protecting an internal web UI (monitoring) with client certificates from a private two-tier PKI. Other domains share the same public IP and port 443.
- In the backend, the request can additionally be checked with
ssl_c_i_dnto accept only a specific issuing CA. This already works through backend option pass-through.
- 主要言語
- PHP
- スター
- 1.2k
- フォーク
- 932
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 22
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
opnsense/plugins のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
www/squid: configctl proxy stop returns before Squid exits, so stop+start (e.g. Monit restart) failsオープンsupport
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
opnsense/plugins#5983 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
net/haproxy: IPv6 literal in real server "Source address" generates an invalid `source` directive対応中かも @fraenki が 6 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
opnsense/plugins#5973 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[dns/ddclient] Support hiding unused standard fields per service (optional_hiding)対応中かも @bringha1 が 9 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
opnsense/plugins の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Automattic/blocks-engine#7881 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
iruzen-dono/workless#117 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
magicsunday/webtrees-docker#285 ·
メンテナーはふだん 1 日以内に返信
-
area/tests type/bug when/soon
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
WP-CLI 3.0 fixes the cron lock and core download bugs described in the handbook対応中かも @mayankmajeji が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
WordPress/hosting-handbook#521 ·