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

Inspec Compliance Login Failures on "Opsworks Automate" #2375

Closed
dcijj opened this issue Dec 5, 2017 · 0 comments
Closed

Inspec Compliance Login Failures on "Opsworks Automate" #2375

dcijj opened this issue Dec 5, 2017 · 0 comments
Assignees

Comments

@dcijj
Copy link

dcijj commented Dec 5, 2017

Description

When attempting to login to the Inspec Compliance server at AWS (it's a fresh Opsworks + Chef Automate build) I receive the following error which has no information on google (yet).

/Users/josiah/.rvm/gems/ruby-2.4.0/gems/inspec-1.47.0/lib/bundles/inspec-compliance/api/login.rb:24:in `login': Unable to determine if https://chef-opsworks-<redacted>.us-west-2.opsworks-cm.io is a Chef Automate or Chef Compliance server (Compliance::API::Login::CannotDetermineServerType)

InSpec and Platform Version

Mac OS Sierra 10.12.1
Inspec 1.47.0

Replication Case

  • Install gem "inspec", this happens on both v1.43.8 and when I updated to the latest Inspec v1.47.0
  • Let Opsworks on AWS provision you an Opsworks + Chef Automate server
  • Note: I have added "Chef Manage" web interface to the server via CLI
  • Attempt to login via CLI:
    inspec compliance login https://chef-opsworks-<redacted>.us-west-2.opsworks-cm.io --insecure --user='admin' --token='<redacted>' --ent='default'

Possible Solutions

The inspec compliance login command attempts to hit up to two endpoints to figure out if what you’re asking us to login to is an older-generation Chef Compliance server, or a newer Chef Automate server. Given that you are referring to an Opsworks instance, I believe, it’s possible that those endpoints are filtered or returning data we don’t expect.

Stacktrace

https://gist.github.com/dcijj/9a25994f05999ed744894259276a5760

@jerryaldrichiii jerryaldrichiii self-assigned this Dec 5, 2017
@jerryaldrichiii jerryaldrichiii added this to Triage/Repro in InSpec Dec 6, 2017
@jerryaldrichiii jerryaldrichiii moved this from Triage/Repro to In Progress in InSpec Dec 12, 2017
@adamleff adamleff removed this from In Progress in InSpec Dec 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants