From 17a23064bf58f7e4bcdd394882c890b91f6da6f6 Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Thu, 4 Jul 2024 16:00:30 +1000 Subject: [PATCH] add warning to 1password as username at top of entry --- common/configuration/1password_provider.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/configuration/1password_provider.go b/common/configuration/1password_provider.go index 9f27d784f0..d3857ba911 100644 --- a/common/configuration/1password_provider.go +++ b/common/configuration/1password_provider.go @@ -192,6 +192,7 @@ func (o OnePasswordProvider) storeSecret(ctx context.Context, vault string, ref args := []string{ "item", "edit", o.itemName(), "--vault", vault, + fmt.Sprintf("username[text]=%s", defaultSecretModificationWarning), fmt.Sprintf("%s\\.%s[password]=%s", module, ref.Name, string(secret)), } _, err := exec.Capture(ctx, ".", "op", args...)