Actions
Task #3676
closedStory #3637: As a user, I can run pulp in a FIPS-enabled environment
Get pulp-admin login working in FIPS mode
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
2.16.2
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 37
Quarter:
Description
When I run pulp-admin login, I get the following error:
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: Unhandled Exception
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) substring not found
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) Traceback (most recent call last):
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) response = wrapped_callback(request, *callback_args, **callback_kwargs)
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) return self.dispatch(request, *args, **kwargs)
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 88, in dispatch
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) return handler(request, *args, **kwargs)
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) File "/home/vagrant/devel/pulp/server/pulp/server/webservices/views/decorators.py", line 241, in _auth_decorator
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) return _verify_auth(self, operation, super_user_only, method, *args, **kwargs)
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) File "/home/vagrant/devel/pulp/server/pulp/server/webservices/views/decorators.py", line 195, in _verify_auth
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) value = method(self, *args, **kwargs)
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) File "/home/vagrant/devel/pulp/server/pulp/server/webservices/views/root_actions.py", line 25, in post
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) key, certificate = factory.cert_generation_manager().make_admin_user_cert(user)
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) File "/home/vagrant/devel/pulp/server/pulp/server/managers/auth/cert/cert_generator.py", line 31, in make_admin_user_cert
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) return self.make_cert(self.encode_admin_user(user), expiration)
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) File "/home/vagrant/devel/pulp/server/pulp/server/managers/auth/cert/cert_generator.py", line 61, in make_cert
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) private_key_pem = _make_priv_key()
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) File "/home/vagrant/devel/pulp/server/pulp/server/managers/auth/cert/cert_generator.py", line 189, in _make_priv_key
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) pem_str = output[output.index("-----BEGIN RSA PRIVATE KEY-----"):]
May 16 17:52:59 pulp2.dev pulp[17074]: pulp.server.webservices.middleware.exception:ERROR: (17074-48416) ValueError: substring not found
Updated by dkliban@redhat.com over 6 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dkliban@redhat.com
Updated by daviddavis over 6 years ago
- Sprint set to Sprint 37
Adding to current sprint since this is being worked on.
Added by dkliban@redhat.com over 6 years ago
Updated by dkliban@redhat.com over 6 years ago
- Status changed from ASSIGNED to POST
Updated by dkliban@redhat.com over 6 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp|2930cd9fd61176ea6b005df9897b5aef0113aca8.
Added by dkliban@redhat.com over 6 years ago
Revision a9b8b425 | View on GitHub
Fixes login API on FIPS enabled machines
closes #3676 https://pulp.plan.io/issues/3676
(cherry picked from commit 2930cd9fd61176ea6b005df9897b5aef0113aca8)
Updated by ragbalak over 6 years ago
Tested in Pulp 2.16 beta environment. I am able to access the pulp-admin.
Updated by ipanova@redhat.com over 6 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Fixes login API on FIPS enabled machines
closes #3676 https://pulp.plan.io/issues/3676