Skip to content

Commit

Permalink
test: switch to CERT auth for insights-client
Browse files Browse the repository at this point in the history
Switch the authentication method of insights-client to CERT-based, which
uses the consumer certificate & key of subscription-manager.

This means using mTLS for authentication, still without verifying them,
just like the previous fake credentials; this is still acceptable in the
testing environment of a transient guest.
  • Loading branch information
ptoscano committed Aug 5, 2024
1 parent 923f92d commit e682d42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions test/check-subscriptions
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ auto_config=False
auto_update=False
base_url={hostname}:8443/r/insights
cert_verify=/var/lib/insights/mock-certs/ca.crt
username=admin
password=foobar
authmethod=CERT
""",
)

Expand Down
3 changes: 1 addition & 2 deletions test/files/mock-insights
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
# auto_update=False
# base_url=127.0.0.1:8443/r/insights
# cert_verify=/var/lib/insights/mock-certs/ca.crt
# username=admin
# password=foobar
# authmethod=CERT

import email
from http.server import BaseHTTPRequestHandler, HTTPServer
Expand Down

0 comments on commit e682d42

Please sign in to comment.