Deploy system #7

Open
opened 2022-09-10 18:15:56 +05:30 by realaravinth · 1 comment
Owner
No description provided.
realaravinth added the
story
label 2022-09-10 18:15:56 +05:30
realaravinth added this to the MVP project 2022-09-10 18:16:19 +05:30
Author
Owner

Summary

  • Initialized repo: https://git.batsense.net/LibrePages/Infrastructure-as-Code
  • Deploy Debian box using terraform and install firewall, nginx, docker and some other packages and test conifguration with testinfra: b46e41da0b
  • use dev-sec.io's linux baseline hardening collection: 057f49c0ad
  • Failed to verify baseline hardening with dev-sec.io's chef inspec (alt libre distribution: https://cinc.sh/start/auditor/). Not supported on my GNU/Linux distro. Tried installing with gem install cinc-auditor-bin --clear-sources -s https://packagecloud.io/cinc-project/stable -s https://rubygemsgem install cinc-auditor-bin --clear-sources -s https://packagecloud.io/cinc-project/stable -s https://rubygems.org but failed with some Ruby errors:
04:04 (venv) atm@lab inspec ±|master|→ cinc-auditor exec https://github.com/dev-sec/linux-baseline -t ssh://atm@192.168.122.214 --key-files=~/.ssh/ara
aravinth      aravinth.pub
04:04 (venv) atm@lab inspec ±|master|→ cinc-auditor exec https://github.com/dev-sec/linux-baseline -t ssh://atm@192.168.122.214 --key-files=~/.ssh/aravinth
/src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb:67:in `set_pqg': dh#set_pqg= is incompatible with OpenSSL 3.0 (OpenSSL::PKey::PKeyError)
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb:67:in `generate_key'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/kex/abstract.rb:32:in `initialize'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/algorithms.rb:437:in `new'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/algorithms.rb:437:in `exchange_keys'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/algorithms.rb:245:in `proceed!'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/algorithms.rb:184:in `accept_kexinit'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:210:in `block in poll_message'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:190:in `loop'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:190:in `poll_message'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:225:in `block in wait'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:223:in `loop'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:223:in `wait'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:90:in `initialize'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh.rb:251:in `new'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh.rb:251:in `start'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh_connection.rb:213:in `establish_connection'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh_connection.rb:292:in `session'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh_connection.rb:250:in `run_command_via_connection'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/plugins/base_connection.rb:149:in `run_command'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/helpers/os_windows.rb:9:in `check_cmd'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/helpers/os_windows.rb:4:in `detect_windows'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/specifications/os.rb:20:in `block in load_windows'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/scanner.rb:44:in `instance_eval'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/scanner.rb:44:in `block in scan_children'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/scanner.rb:43:in `each'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/scanner.rb:43:in `scan_children'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/scanner.rb:31:in `block in scan'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/scanner.rb:25:in `each'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/scanner.rb:25:in `scan'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect.rb:7:in `scan'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/plugins/base_connection.rb:123:in `platform'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/extras/command_wrapper.rb:190:in `load'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh_connection.rb:60:in `initialize'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:291:in `new'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:291:in `create_new_connection'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:86:in `connection'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/backend.rb:38:in `creat
e'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/runner.rb:87:in `configure_transport'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/runner.rb:79:in `initialize'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/cli.rb:363:in `new'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/cli.rb:363:in `exec'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/base_cli.rb:35:in `start'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/cinc-auditor-bin-5.18.14/bin/cinc-auditor:12:in `<top (required)>'
        from /src/atm/.local/share/gem/ruby/3.0.0/bin/cinc-auditor:25:in `load'
        from /src/atm/.local/share/gem/ruby/3.0.0/bin/cinc-auditor:25:in `<main>'
04:05 (venv) atm@lab inspec ±|master|→ cinc-auditor exec https://github.com/dev-sec/linux-baseline -t ssh://atm@192.168.122.214
/src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb:316:in `set_key': rsa#set_key= is incompatible with OpenSSL 3.0 (OpenSSL::PKey::PKeyError)
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb:316:in `read_keyblob'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb:248:in `read_key'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/agent.rb:128:in `block in identities'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/agent.rb:124:in `times'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/agent.rb:124:in `identities'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/key_manager.rb:114:in `each_identity'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:184:in `ssh_known_identities'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:152:in `validate_options'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:80:in `connection'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/backend.rb:38:in `create'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/runner.rb:87:in `configure_transport'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/runner.rb:79:in `initialize'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/cli.rb:363:in `new'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/cli.rb:363:in `exec'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/base_cli.rb:35:in `start'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/cinc-auditor-bin-5.18.14/bin/cinc-auditor:12:in `<top (required)>'
        from /src/atm/.local/share/gem/ruby/3.0.0/bin/cinc-auditor:25:in `load'
        from /src/atm/.local/share/gem/ruby/3.0.0/bin/cinc-auditor:25:in `<main>'
04:06 (venv) atm@lab inspec ±|master|→ vim /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb

[2]+  Stopped                 /bin/nvim /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb
04:07 (venv) atm@lab inspec ±|master|→ fg
/bin/nvim /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb

[2]+  Stopped                 /bin/nvim /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb
04:07 (venv) atm@lab inspec ±|master|→ ^C
04:09 (venv) atm@lab inspec ±|master|→ oc^C
04:09 (venv) atm@lab inspec ±|master|→ inspec shell -t  ssh://atm@192.168.122.214
-bash: inspec: command not found
04:09 (venv) atm@lab inspec ±|master|→ cinc-auditor shell -t  ssh://atm@192.168.122.214
/src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb:316:in `set_key': rsa#set_key= is incompatible with OpenSSL 3.0 (OpenSSL::PKey::PKeyError)
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb:316:in `read_keyblob'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb:248:in `read_key'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/agent.rb:128:in `block in identities'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/agent.rb:124:in `times'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/agent.rb:124:in `identities'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/key_manager.rb:114:in `each_identity'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:184:in `ssh_known_identities'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:152:in `validate_options'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:80:in `connection'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/backend.rb:38:in `create'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/runner.rb:87:in `configure_transport'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/runner.rb:79:in `initialize'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/cli.rb:431:in `new'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/cli.rb:431:in `shell_func'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/base_cli.rb:35:in `start'
        from /src/atm/.local/share/gem/ruby/3.0.0/gems/cinc-auditor-bin-5.18.14/bin/cinc-auditor:12:in `<top (required)>'
        from /src/atm/.local/share/gem/ruby/3.0.0/bin/cinc-auditor:25:in `load'
        from /src/atm/.local/share/gem/ruby/3.0.0/bin/cinc-auditor:25:in `<main>'

related: https://github.com/inspec/inspec/issues/4976, https://github.com/inspec/train/issues/735, https://github.com/net-ssh/net-ssh/issues/843

## Summary - Initialized repo: https://git.batsense.net/LibrePages/Infrastructure-as-Code - Deploy Debian box using terraform and install firewall, nginx, docker and some other packages and test conifguration with testinfra: https://git.batsense.net/LibrePages/Infrastructure-as-Code/commit/b46e41da0bb412c29e4dab7587ee037256a01c87 - use dev-sec.io's linux baseline hardening collection: https://git.batsense.net/LibrePages/Infrastructure-as-Code/commit/057f49c0ade646a11bcb454e58e0ab55a248baf6 - Failed to verify baseline hardening with dev-sec.io's chef inspec (alt libre distribution: https://cinc.sh/start/auditor/). Not supported on my GNU/Linux distro. Tried installing with `gem install cinc-auditor-bin --clear-sources -s https://packagecloud.io/cinc-project/stable -s https://rubygemsgem install cinc-auditor-bin --clear-sources -s https://packagecloud.io/cinc-project/stable -s https://rubygems.org` but failed with some Ruby errors: <details> ```bash 04:04 (venv) atm@lab inspec ±|master|→ cinc-auditor exec https://github.com/dev-sec/linux-baseline -t ssh://atm@192.168.122.214 --key-files=~/.ssh/ara aravinth aravinth.pub 04:04 (venv) atm@lab inspec ±|master|→ cinc-auditor exec https://github.com/dev-sec/linux-baseline -t ssh://atm@192.168.122.214 --key-files=~/.ssh/aravinth /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb:67:in `set_pqg': dh#set_pqg= is incompatible with OpenSSL 3.0 (OpenSSL::PKey::PKeyError) from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb:67:in `generate_key' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/kex/abstract.rb:32:in `initialize' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/algorithms.rb:437:in `new' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/algorithms.rb:437:in `exchange_keys' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/algorithms.rb:245:in `proceed!' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/algorithms.rb:184:in `accept_kexinit' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:210:in `block in poll_message' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:190:in `loop' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:190:in `poll_message' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:225:in `block in wait' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:223:in `loop' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:223:in `wait' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:90:in `initialize' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh.rb:251:in `new' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh.rb:251:in `start' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh_connection.rb:213:in `establish_connection' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh_connection.rb:292:in `session' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh_connection.rb:250:in `run_command_via_connection' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/plugins/base_connection.rb:149:in `run_command' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/helpers/os_windows.rb:9:in `check_cmd' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/helpers/os_windows.rb:4:in `detect_windows' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/specifications/os.rb:20:in `block in load_windows' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/scanner.rb:44:in `instance_eval' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/scanner.rb:44:in `block in scan_children' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/scanner.rb:43:in `each' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/scanner.rb:43:in `scan_children' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/scanner.rb:31:in `block in scan' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/scanner.rb:25:in `each' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect/scanner.rb:25:in `scan' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/platforms/detect.rb:7:in `scan' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/plugins/base_connection.rb:123:in `platform' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/extras/command_wrapper.rb:190:in `load' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh_connection.rb:60:in `initialize' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:291:in `new' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:291:in `create_new_connection' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:86:in `connection' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/backend.rb:38:in `creat e' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/runner.rb:87:in `configure_transport' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/runner.rb:79:in `initialize' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/cli.rb:363:in `new' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/cli.rb:363:in `exec' from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run' from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command' from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch' from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/base_cli.rb:35:in `start' from /src/atm/.local/share/gem/ruby/3.0.0/gems/cinc-auditor-bin-5.18.14/bin/cinc-auditor:12:in `<top (required)>' from /src/atm/.local/share/gem/ruby/3.0.0/bin/cinc-auditor:25:in `load' from /src/atm/.local/share/gem/ruby/3.0.0/bin/cinc-auditor:25:in `<main>' 04:05 (venv) atm@lab inspec ±|master|→ cinc-auditor exec https://github.com/dev-sec/linux-baseline -t ssh://atm@192.168.122.214 /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb:316:in `set_key': rsa#set_key= is incompatible with OpenSSL 3.0 (OpenSSL::PKey::PKeyError) from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb:316:in `read_keyblob' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb:248:in `read_key' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/agent.rb:128:in `block in identities' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/agent.rb:124:in `times' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/agent.rb:124:in `identities' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/key_manager.rb:114:in `each_identity' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:184:in `ssh_known_identities' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:152:in `validate_options' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:80:in `connection' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/backend.rb:38:in `create' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/runner.rb:87:in `configure_transport' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/runner.rb:79:in `initialize' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/cli.rb:363:in `new' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/cli.rb:363:in `exec' from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run' from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command' from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch' from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/base_cli.rb:35:in `start' from /src/atm/.local/share/gem/ruby/3.0.0/gems/cinc-auditor-bin-5.18.14/bin/cinc-auditor:12:in `<top (required)>' from /src/atm/.local/share/gem/ruby/3.0.0/bin/cinc-auditor:25:in `load' from /src/atm/.local/share/gem/ruby/3.0.0/bin/cinc-auditor:25:in `<main>' 04:06 (venv) atm@lab inspec ±|master|→ vim /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb [2]+ Stopped /bin/nvim /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb 04:07 (venv) atm@lab inspec ±|master|→ fg /bin/nvim /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb [2]+ Stopped /bin/nvim /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb 04:07 (venv) atm@lab inspec ±|master|→ ^C 04:09 (venv) atm@lab inspec ±|master|→ oc^C 04:09 (venv) atm@lab inspec ±|master|→ inspec shell -t ssh://atm@192.168.122.214 -bash: inspec: command not found 04:09 (venv) atm@lab inspec ±|master|→ cinc-auditor shell -t ssh://atm@192.168.122.214 /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb:316:in `set_key': rsa#set_key= is incompatible with OpenSSL 3.0 (OpenSSL::PKey::PKeyError) from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb:316:in `read_keyblob' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/buffer.rb:248:in `read_key' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/agent.rb:128:in `block in identities' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/agent.rb:124:in `times' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/agent.rb:124:in `identities' from /src/atm/.local/share/gem/ruby/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/key_manager.rb:114:in `each_identity' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:184:in `ssh_known_identities' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:152:in `validate_options' from /src/atm/.local/share/gem/ruby/3.0.0/gems/train-core-3.10.7/lib/train/transports/ssh.rb:80:in `connection' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/backend.rb:38:in `create' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/runner.rb:87:in `configure_transport' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/runner.rb:79:in `initialize' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/cli.rb:431:in `new' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/cli.rb:431:in `shell_func' from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run' from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command' from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch' from /src/atm/.local/share/gem/ruby/3.0.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start' from /src/atm/.local/share/gem/ruby/3.0.0/gems/inspec-core-5.18.14/lib/inspec/base_cli.rb:35:in `start' from /src/atm/.local/share/gem/ruby/3.0.0/gems/cinc-auditor-bin-5.18.14/bin/cinc-auditor:12:in `<top (required)>' from /src/atm/.local/share/gem/ruby/3.0.0/bin/cinc-auditor:25:in `load' from /src/atm/.local/share/gem/ruby/3.0.0/bin/cinc-auditor:25:in `<main>' ``` </details> related: https://github.com/inspec/inspec/issues/4976, https://github.com/inspec/train/issues/735, https://github.com/net-ssh/net-ssh/issues/843
realaravinth added spent time 2022-12-19 05:54:46 +05:30
4 hours 30 minutes
Sign in to join this conversation.
No description provided.