Skip to content

Commit

Permalink
add warning to 1password as username at top of entry
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Jul 8, 2024
1 parent a0154e0 commit 17a2306
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/configuration/1password_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand Down

0 comments on commit 17a2306

Please sign in to comment.