feat: retain encrypted instance credentials and reissue v2 certificates
Some checks failed
Check / delivery-static (push) Has been cancelled
Check / api (push) Has been cancelled
Check / web (push) Has been cancelled

Co-Authored-By: Craft Agent <agents-noreply@craft.do>
This commit is contained in:
2026-10-12 11:41:02 +08:00
parent fad1fba710
commit 9ba8053b5b
21 changed files with 449 additions and 39 deletions

View File

@@ -48,7 +48,7 @@ func run() error {
if err != nil {
return err
}
httpapi.RegisterBusinessWithKeyring(router, db, cfg.SigningPrivateKeyPEM, ring)
httpapi.RegisterBusinessWithKeyring(router, db, cfg.SigningPrivateKeyPEM, ring, cfg.CredentialEncryptionKey)
}
// Readiness is registered only on the loopback operations listener.
if err := router.SetTrustedProxies(cfg.TrustedProxies); err != nil {