Bug 678051
| Summary: | Authentication cannot handle consumer certificates | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Jay Dobies <jason.dobies> |
| Component: | z_other | Assignee: | Jason Connor <jconnor> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | jortel, mmccune, skarmark |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | Sprint 21 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-08-16 12:07:16 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 647488 | ||
|
Description
Jay Dobies
2011-02-16 16:03:17 UTC
Steps to reproduce:
1. install fresh pulp instance
2. log onto server and create consumer:
pulp-client -u admin -p admin consumer create --id <consumer name>
3. try to run a command as the consumer:
pulp-client repo list
You should see:
No repositories to list (or something similar, I forget the exact message)
If the fix has failed, you will see this traceback:
error: operation failed: Traceback (most recent call last):
File "/home/jconnor/Workspace/pulp/src/pulp/server/webservices/controllers/base.py", line 52, in report_error
return method(self, *args, **kwargs)
File "/home/jconnor/Workspace/pulp/src/pulp/server/compat.py", line 40, in _decorator
return decorator(*args,**kwargs)
File "/home/jconnor/Workspace/pulp/src/pulp/server/webservices/controllers/base.py", line 98, in _auth_decorator
user = check_ssl_cert(cert_pem)
File "/home/jconnor/Workspace/pulp/src/pulp/server/auth/authentication.py", line 145, in check_ssl_cert
username, id = cert_generator.decode_admin_user(encoded_user)
File "/home/jconnor/Workspace/pulp/src/pulp/server/auth/cert_generator.py", line 211, in decode_admin_user
raise PulpException('Invalid encoded admin user information [%s]' % encoded_string)
PulpException: 'Invalid encoded admin user information []'
NOTE: DO NOT USE THE AUTH LOGIN COMMAND pulp-admin auth login This can circumvent the server-side bug. QE Build: 0.139 [root@preethi ~]# rpm -q pulp pulp-0.0.139-1.fc14.noarch [root@preethi ~]# pulp-client -u admin -p admin consumer create --id=preethi Successfully created consumer [ preethi ] [root@preethi ~]# [root@preethi ~]# [root@preethi ~]# [root@preethi ~]# pulp-client repo list No repositories available to list verified [root@dell-pe1855-01 ~]# pulp-client -u admin -p admin consumer create --id=test warning: this client is not registered; please register to continue Successfully created consumer [ test ] [root@dell-pe1855-01 ~]# pulp-client repo list No repositories available to list [root@dell-pe1855-01 ~]# rpm -q pulp pulp-0.0.139-1.fc14.noarch Closing with Community Release 15 pulp-0.0.223-4. Closing with Community Release 15 pulp-0.0.223-4. |