From 1e9057d8a3e039c077e8978c6139991df707fba7 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Mon, 6 Feb 2023 18:23:54 -0500 Subject: [PATCH] Update KMS references --- internal/daemon/worker/auth_rotation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/daemon/worker/auth_rotation.go b/internal/daemon/worker/auth_rotation.go index 6ee978893..aab225aa7 100644 --- a/internal/daemon/worker/auth_rotation.go +++ b/internal/daemon/worker/auth_rotation.go @@ -139,7 +139,7 @@ func rotateWorkerAuth(ctx context.Context, w *Worker, currentNodeCreds *types.No ctx, w.WorkerAuthStorage, randReaderOpt, - nodeenrollment.WithWrapper(w.conf.WorkerAuthKms), + nodeenrollment.WithWrapper(w.conf.WorkerAuthStorageKms), nodeenrollment.WithSkipStorage(true), ) if err != nil { @@ -189,7 +189,7 @@ func rotateWorkerAuth(ctx context.Context, w *Worker, currentNodeCreds *types.No ctx, w.WorkerAuthStorage, fetchResp, - nodeenrollment.WithWrapper(w.conf.WorkerAuthKms), + nodeenrollment.WithWrapper(w.conf.WorkerAuthStorageKms), ) if err != nil { return berrors.Wrap(ctx, err, op)