vaultix icon indicating copy to clipboard operation
vaultix copied to clipboard

Vaultix fails with password-protected age identity files

Open radimih opened this issue 11 months ago • 0 comments

Vaultix does not work with an identity file that contains a password-protected age private key.

Steps to reproduce:

  1. Generate a password-protected age identity file:
    age-keygen | age -p > identity.age
    
  2. Configure vaultix to use this identity file:
{
  inputs,
  ...
}:
{
  imports = [ inputs.vaultix.flakeModules.default ];

  flake.vaultix = {
    identity = inputs.self + "/identity.age";
  };
}
  1. Run the edit command:
    nix run .#vaultix.app.x86_64-linux.edit -- secret.age
    

Expected behavior:

vaultix should prompt for the passphrase and decrypt the secret using the protected identity.

Actual behavior:

The command fails with the error:

INFO: [vaultix::cmd] editing secrets
Error: handle ssh key fail

Location:
   src/parser/identity.rs:280:17

Environment:

  • NixOS: 25.05

This issue blocks the use of password-protected age identities with vaultix.

radimih avatar Dec 24 '25 10:12 radimih