mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-21 09:25:29 -04:00
Patch introduces ACME EAB support. Configuring EAB requires two parts: Key ID and MAC Key. Key ID is an ASCII string that specifies the name of the record CA should look up. MAC Key is a base64url encoded key that is used for the sake of JWS signing, using HS256 or other algorithms. They are the credentials so must be stored securely. A thing about EAB is that it is required only during account creation so it is unexpectedly complex to think about. Some CAs provide EAB credential pair that is reused between multiple account order requests, for example ZeroSSL, but others like Google Trusted Services require an unique EAB credential for each new account creation request. There are a lot of ways config could be implemented, I decided to make so that Key ID and MAC Key are stored in separate files on disk, that decision was made because of the security concerns. File based approach in particular works well with systemd credentials, works well with systems that have config world readable, or immutable, and is compatible with existing setups that specify credentials in a file. EAB is configured through options like this in an acme section: eab-mac-alg HS512 eab-mac-key pebble.eab.mac-key eab-key-id pebble.eab.key-id I decided to not error out on empty files, but issue a log msg instead, so that credentials can be removed without changing the haproxy config. Used read_line_to_trash function from tools.c for reading files, that is something that could be replaced by a dedicated function too. No backport needed |
||
|---|---|---|
| .. | ||
| design-thoughts | ||
| internals | ||
| lua-api | ||
| 51Degrees-device-detection.txt | ||
| acl.fig | ||
| coding-style.txt | ||
| configuration.txt | ||
| cookie-options.txt | ||
| DeviceAtlas-device-detection.txt | ||
| gpl.txt | ||
| haproxy.1 | ||
| HAProxyCommunityEdition_60px.png | ||
| haterm.txt | ||
| intro.txt | ||
| lgpl.txt | ||
| linux-syn-cookies.txt | ||
| lua.txt | ||
| management.txt | ||
| netscaler-client-ip-insertion-protocol.txt | ||
| network-namespaces.txt | ||
| peers-v2.0.txt | ||
| peers.txt | ||
| proxy-protocol.txt | ||
| queuing.fig | ||
| regression-testing.txt | ||
| seamless_reload.txt | ||
| SOCKS4.protocol.txt | ||
| SPOE.txt | ||
| WURFL-device-detection.txt | ||