Skip to content

Commit

Permalink
sign: Support ~/ path expansion for allowed-signers
Browse files Browse the repository at this point in the history
Fixes #5625
  • Loading branch information
JacobHayes committed Feb 9, 2025
1 parent 07c63ed commit c5f3b97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/ssh_signing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ impl SshBackend {
let program = settings.get_string("signing.backends.ssh.program")?;
let allowed_signers = settings
.get_string("signing.backends.ssh.allowed-signers")
.optional()?;
.optional()?
.map(|v| crate::file_util::expand_home_path(v.as_str()));
Ok(Self::new(program.into(), allowed_signers.map(|v| v.into())))
}

Expand Down

0 comments on commit c5f3b97

Please sign in to comment.