dalmura / network

The Dalmura Network
0 stars 0 forks source link

Persist certificates across device deployments #16

Closed michael-robbins closed 5 months ago

michael-robbins commented 1 year ago

Currently device certificates (CA & Server certificate) are lost when deploying a new config to a device (as we do a full reset + run the device config).

We should try to update our deploy.sh to do even more and:

Mikrotik devices will only export the secret key material when a passphrase is specified, so we need to ensure that's set in the site secrets file.

michael-robbins commented 5 months ago

This is now set and configured via the DEVICE_UPGRADE env var, it defaults to true and renders the certificate import commands, if set to false then it will render the certificate generation commands.