fix (kms): Add kms.ReconcileKeys(...) to fix missing audit DEK scenario (#1711)
This fix addresses the situation where an existing boundary database doesn't have the audit DEKs in the global scope.
This commit is contained in:
6 files changed
+192
-18
No files matched your search
@@ -168,6 +168,10 @@ func New(ctx context.Context, conf *Config) (*Controller, error) {
|
||||
); err != nil {
|
||||
return nil, fmt.Errorf("error adding config keys to kms: %w", err)
|
||||
}
|
||||
if err := c.kms.ReconcileKeys(ctx, c.conf.SecureRandomReader); err != nil {
|
||||
return nil, fmt.Errorf("error reconciling kms keys: %w", err)
|
||||
}
|
||||
|
||||
// now that the kms is configured, we can get the audit wrapper and rotate
|
||||
// the eventer audit wrapper, so the emitted events can include encrypt and
|
||||
// hmac-sha256 data
|
||||
|
||||
Reference in new issue
Block a user