Replies: 5 comments 1 reply
-
@isoos Close, but not quite.
|
Beta Was this translation helpful? Give feedback.
-
@johnmaguire:
with the following
config testing and after that running works:
|
Beta Was this translation helpful? Give feedback.
-
@isoos Only the first host certificate is used. Others are ignored: Lines 185 to 204 in 3e6c755 This line ignores the I would suggest that we file a ticket to make this a warning, however the next release of Nebula will introduce a v2 format of the certificate, at which point it will be valid to have multiple host certs here for backwards compatibility (a v1 cert and a v2 cert): https://github.com/slackhq/nebula/blob/cert-v2/pki.go#L277-L291 Because of this, it's unlikely that the warning would actually make it into a release. That said, the steps provided in #1292 (comment) are the correct way to perform a CA rotation. |
Beta Was this translation helpful? Give feedback.
-
@johnmaguire: Thanks for the further details! I think nebula shouldn't hide the fact that it ignores parts of its input files. It is better to fail to start when input is not valid or the input parameters are in conflict, but at minimum it should warn about it. Especially since it has a specific subcommand for verifying the config, at least that should fail. |
Beta Was this translation helpful? Give feedback.
-
Canonical source on rotation here: https://nebula.defined.net/docs/guides/rotating-certificate-authority/ |
Beta Was this translation helpful? Give feedback.
-
Is the following process a valid key rotation? E.g. once a month or every quarter:
ca.crt
file.host.crt
file.ca.crt
andhost.crt
to the host and update/restart the process.I assume this will work even if I would update certain hosts only much later (as they are not automated), but everything could use up to ~12 CA certificate and should figure out how to communicate with each other, am I right? (Of course frequencies and expiry dates could be customized, but that's not the scope of this question).
Beta Was this translation helpful? Give feedback.
All reactions