Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support use of SSH agent with kitchen-lxd_cli #201

Open
juju4 opened this issue Sep 5, 2018 · 3 comments
Open

Support use of SSH agent with kitchen-lxd_cli #201

juju4 opened this issue Sep 5, 2018 · 3 comments
Labels
Status: Help Wanted An issue that needs help from a contributor. Triage: Support Indicates an issue that is a support question and will be redirected to other mediums. Type: Enhancement Adds new functionality.

Comments

@juju4
Copy link

juju4 commented Sep 5, 2018

Currently, when using inspec verifier with kitchen-lxd_cli, verifier fails

>>>>>>     Failed to complete #verify action: [Transport error, can't connect to 'ssh' backend: SSH session could not be established] on xxx

like #142

it seems needed to pass private key as argument to provider
https://github.com/bradenwright/kitchen-lxd_cli/blob/4b0abe49c3c5ef20f3b6e8c5ff0b9730b87b0e9d/lib/kitchen/driver/lxd_cli.rb#L32

@chris-rock
Copy link
Collaborator

@juju4 do you think you could help us with a PR similar to #192

@juju4
Copy link
Author

juju4 commented Sep 9, 2018

I can try but from a quick look at code, inspec seems only to have key_files/keys variable

opts["key_files"] = kitchen[:keys] unless kitchen[:keys].nil?

not sure how to map ssh public key

kitchen-lxd_cli asks for public_key_path as config option
https://github.com/bradenwright/kitchen-lxd_cli/blob/4b0abe49c3c5ef20f3b6e8c5ff0b9730b87b0e9d/lib/kitchen/driver/lxd_cli.rb#L32

ideally, just want to recover public_key_path from lxd_cli driver to inspec code.
Any pointer?

example execution with puppet
https://travis-ci.org/juju4/puppet-meta-harden-linux/jobs/423403593
or ansible
https://travis-ci.org/juju4/ansible-harden/jobs/423424189

@juju4
Copy link
Author

juju4 commented Sep 23, 2018

Any help here? Thanks

@tas50 tas50 added Type: Enhancement Adds new functionality. and removed enhancement labels Jan 14, 2019
@zenspider zenspider added Help: Help Wanted Triage: Support Indicates an issue that is a support question and will be redirected to other mediums. labels Oct 14, 2019
@tas50 tas50 added Status: Help Wanted An issue that needs help from a contributor. and removed Help: Help Wanted labels Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Help Wanted An issue that needs help from a contributor. Triage: Support Indicates an issue that is a support question and will be redirected to other mediums. Type: Enhancement Adds new functionality.
Projects
None yet
Development

No branches or pull requests

4 participants