Skip to content

[Bug] keys show does not read SAIL_PASSPHRASE from .sail/.env.local, but the daemon does #226

Description

@walkonwayvs

Summary

sailor keys show prompts for a passphrase even when SAIL_PASSPHRASE is set
correctly in .sail/.env.local. The daemon reads the same value from the same
file without prompting, so the two commands disagree about where the passphrase
comes from.

OS

Pop!_OS (Linux 6.18.7-76061807-generic)

Node.js version

v20.20.0

Install method

npm (@sail.money/sailor)

Sailor version

2.2.1

Chain

chain-independent

Command run / code executed

sailor keys show

Expected behavior

keys show reads SAIL_PASSPHRASE from .sail/.env.local, the same way the runner
does, and displays the keys without prompting.

Actual behavior

It prompts for a passphrase:

$ sailor keys show
Keys in .sail/keys/:
Password for agent wallet key:

Meanwhile sailor run and the installed systemd service both decrypt and sign
without prompting, using that same value from that same file.

Additional context

The failure reads as a wrong passphrase rather than as a command that doesn't
look in that file, so the natural response is to go re-verify a value that was
already correct.

Suggested fix: have keys show load .sail/.env.local the same way the runner
does, or state in the prompt that it reads only from the process environment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions