-
Notifications
You must be signed in to change notification settings - Fork 59
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
Handle '@' in username when grabbing compliance profiles #280
Conversation
@chris-rock ^^ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense @kevinreedy
@kevinreedy another approach would be to use a method like https://github.com/chef/inspec/blob/master/lib/bundles/inspec-compliance/api.rb#L203-L211 |
Signed-off-by: Kevin Reedy <kreedy@chef.io>
5390e46
to
cbd1b55
Compare
Fixed DCO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @kevinreedy !!
As contributed #280 Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
As contributed #280 Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
Signed-off-by: Kevin Reedykreedy@chef.io
Description
When an Automate user has an
@
in their username (like in LDAP or SAML), the profile URL to fetch is incorrect. It is currently resolving tohttps://chefserver.example.com/compliance/organizations/acme/owners/example.com/compliance/cis-windows2012r2-level1-memberserver/tar
instead ofhttps://chefserver.example.com/compliance/organizations/acme/owners/First.Last@example.com/compliance/cis-windows2012r2-level1-memberserver/tar
for example.I went to add new tests, but am confused by the current ones in https://github.com/chef-cookbooks/audit/blob/master/spec/unit/report/fetcher_spec.rb#L33-L37. I'd love to pair with someone Wednesday or early next week on the tests.
Issues Resolved
https://getchef.zendesk.com/agent/tickets/16346
https://chefio.atlassian.net/browse/TRI-549
https://chefio.atlassian.net/browse/BUG-439
Check List