vars/sops: fix clan vars fix missing machine name in error message

This commit is contained in:
Michael Hoang
2025-03-02 08:17:50 +07:00
parent b71e16dd5d
commit 39761946a0

View File

@@ -260,7 +260,7 @@ class SecretStore(StoreBase):
f"One or more recipient keys were added to secret{' shared' if generator.share else ''} var '{var_id}', but it was never re-encrypted.\n"
f"This could have been a malicious actor trying to add their keys, please investigate.\n"
f"Added keys: {', '.join(f'{r.key_type.name}:{r.pubkey}' for r in recipients_to_add)}\n"
f"If this is intended, run 'clan vars fix' to re-encrypt the secret."
f"If this is intended, run 'clan vars fix {self.machine.name}' to re-encrypt the secret."
)
return needs_update, msg