We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 294f42a commit 917c29aCopy full SHA for 917c29a
1 file changed
pkg/secrets/migration.go
@@ -38,8 +38,8 @@ var SystemKeyPrefixMappings = []struct {
38
// Write-before-delete ordering ensures that a crash between the two operations
39
// leaves the secret reachable under the new key. Keys that do not exist in
40
// provider are silently skipped, making the function safe to retry.
41
-func MigrateSystemKeys(ctx context.Context, provider Provider, migrations []KeyMigration) error {
42
- for _, m := range migrations {
+func MigrateSystemKeys(ctx context.Context, provider Provider, keyMigrations []KeyMigration) error {
+ for _, m := range keyMigrations {
43
// If the scoped key already exists (e.g. from a partial prior run),
44
// skip the write and just clean up the bare key.
45
_, err := provider.GetSecret(ctx, m.NewKey)
0 commit comments