Allow setting ACME account key (type)
Welcome!
- Yes, I've searched similar issues on GitHub and didn't find any.
- Yes, I've searched similar issues on the Traefik community forum and didn't find any.
What did you expect to see?
The current ACME account setup logic currently generates a RSA4096 key by default; see https://github.com/traefik/traefik/blob/9eb2b0e8e29dc011c9587311b1bf098ad77c8d3c/pkg/provider/acme/account.go#L31 For people with specific (security) concerns, it would potentially be useful to allow picking a custom algorithm here.
Potential approaches:
- re-use the same
keyTypevalue for both certificates and accounts, to be on par - add a dedicated configuration flag
Note that 'renewing' the key for an existing account on key type change would require some additional care/thought.
An alternative/additional approach would be to allow people to even 'bring their own key' to migrate existing accounts from a different setup into Traefik. Generally I'd argue that this should be some configuration flag that would be provided only on first startup, as afterwards the key should be persisted and not remain in user configuration. As such I think this option should be made to always warn if non-empty, and err if a corresponding account with different key exists.
Source: traefik/traefik