mirror of
https://github.com/inspec/inspec
synced 2024-11-22 04:33:09 +00:00
Add ed25519 support to the habitat package
net-ssh only has ed25519 support if the gem is installed. Because it has native extensions we currently install it as part of the Omnibus package via the Gemfile, and do not include it in the gemspec. Without this using ssh keys with `inspec exec -t ssh://` errors with: ``` STDERR: /hab/pkgs/chef/inspec/4.23.16/20201102165953/lib/gems/net-ssh-6.1.0/lib/net/ssh/authentication/ed25519_loader.rb:21:in `raiseUnlessLoaded': OpenSSH keys only supported if ED25519 is available (NotImplementedError) ``` Signed-off-by: Bryan McLellan <btm@loftninjas.org>
This commit is contained in:
parent
f362b6e1a1
commit
104d669df6
1 changed files with 4 additions and 0 deletions
|
@ -55,6 +55,10 @@ do_install() {
|
|||
|
||||
wrap_inspec_bin
|
||||
|
||||
# ed25519 ssh key support done here as its a native gem we can't put in the gemspec
|
||||
# for omnibus we also install this as part of the package
|
||||
gem install ed25519 bcrypt_pbkdf --no-document
|
||||
|
||||
# Certain gems (timeliness) are getting installed with world writable files
|
||||
# This is removing write bits for group and other.
|
||||
find "$GEM_HOME" -xdev -perm -0002 -type f -print 2>/dev/null | xargs -I '{}' chmod go-w '{}'
|
||||
|
|
Loading…
Reference in a new issue