Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

add the ability to use various user, pass, login_user, login_pass,ssh_keys, sudo and sudo_password and sudo_options elements #14

Open
aaronlippold opened this issue Dec 14, 2019 · 0 comments

Comments

@aaronlippold
Copy link
Member

If we were going to try to run a few of the more complex profiles, such as the https://github.com/CrunchyData/pgstigcheck-inspec profile, we would have to be able to pass the following meta-data to the runner:

inspec exec pgstigcheck-inspec --input_files inputs.yml -i <your ssh private key> --sudo --sudo-options="-u postgres" -t ssh://<user>@<db host>:<port>

Given that we are connecting to the host as either root or the login_user but then scanning the RDMS via using sudo to switch to the postgres user.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant