use prior and current worker auth keys (#2495)
* use prior and current worker auth keys
This commit is contained in:
1 parent
902ca3cccb
commit
4493dfd527
12 files changed
+392
-71
No files matched your search
@@ -143,6 +143,11 @@ func rotateWorkerAuth(ctx context.Context, w *Worker, currentNodeCreds *types.No
|
||||
return berrors.Wrap(ctx, err, op)
|
||||
}
|
||||
|
||||
err = newNodeCreds.SetPreviousEncryptionKey(currentNodeCreds)
|
||||
if err != nil {
|
||||
return berrors.Wrap(ctx, err, op)
|
||||
}
|
||||
|
||||
// Get a signed request from the new credentials
|
||||
fetchReq, err := newNodeCreds.CreateFetchNodeCredentialsRequest(ctx, randReaderOpt)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user