A service 'api' is configured with mTLS. You want to rotate the CA root certificate without interrupting existing connections. What is the recommended strategy?
Trap 1: Disable mTLS globally, update, and re-enable.
Disabling mTLS is a security risk and unnecessary.
Trap 2: Delete the existing CA and restart all agents.
This would cause immediate mTLS failures.
Trap 3: Use the 'consul tls ca create' command with the --rotate flag.
This command does not exist in the CLI.
- A
Disable mTLS globally, update, and re-enable.
Why it fails: Disabling mTLS is a security risk and unnecessary.
- B
Delete the existing CA and restart all agents.
Why it fails: This would cause immediate mTLS failures.
- C
Update the CA configuration to include the new root in the 'additional_roots' field.
Adding the new root to additional_roots distributes it to all sidecars while the old root still signs, so existing mTLS connections remain valid. Once every proxy trusts both roots, you promote the new root and retire the old one without interruption.
- D
Use the 'consul tls ca create' command with the --rotate flag.
Why it fails: This command does not exist in the CLI.