Project

Profile

Help

Task #3676

Story #3637: As a user, I can run pulp in a FIPS-enabled environment

Get pulp-admin login working in FIPS mode

Added by daviddavis over 3 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
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

Associated revisions

Revision 2930cd9f View on GitHub
Added by dkliban@redhat.com over 3 years ago

Fixes login API on FIPS enabled machines

closes #3676 https://pulp.plan.io/issues/3676

Revision a9b8b425 View on GitHub
Added by dkliban@redhat.com over 3 years ago

Fixes login API on FIPS enabled machines

closes #3676 https://pulp.plan.io/issues/3676

(cherry picked from commit 2930cd9fd61176ea6b005df9897b5aef0113aca8)

History

#1 Updated by dkliban@redhat.com over 3 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com

#2 Updated by daviddavis over 3 years ago

  • Sprint set to Sprint 37

Adding to current sprint since this is being worked on.

#3 Updated by dkliban@redhat.com over 3 years ago

  • Status changed from ASSIGNED to POST

#4 Updated by dkliban@redhat.com over 3 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#5 Updated by dkliban@redhat.com over 3 years ago

  • Platform Release set to 2.16.2

#6 Updated by ragbalak over 3 years ago

Tested in Pulp 2.16 beta environment. I am able to access the pulp-admin.

#7 Updated by ipanova@redhat.com over 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

#8 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF