chef / effortless

Automated best practices for Chef Infra and Chef InSpec
https://chef.io
Apache License 2.0
33 stars 38 forks source link

dd support for --insecure flag on compliance login for profile retrieval #222

Closed GregSloan closed 4 years ago

GregSloan commented 4 years ago

If an Automate server is using self signed SSL cert, inspec compliance login fails with SSL error during build effortless audit package. Does not seem to support standard SSL cert file override locations during build time.

This change adds an optional "scaffold_compliance_insecure" environment variable that, when set to non-false value, will add the "--insecure" option to the inspec compliance login command during build phase.

The primary change is in scaffold.ps1 and scaffold.sh for Inspec.

chef-expeditor[bot] commented 4 years ago

Hello gsloan-chef! Thanks for the pull request!

Here is what will happen next:

  1. Your PR will be reviewed by the maintainers.
  2. If everything looks good, one of them will approve it, and your PR will be merged.

Thank you for contributing!