Project

Profile

Help

Story #2358

As a user, I can authenticate with username and password stored in Pulp

Added by ttereshc almost 3 years ago. Updated 6 months ago.

Status:
MODIFIED
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 11

Description

Configure Pulp so that:
  • Basic Auth (with credentials stored in Pulp) works against any protected API endpoint
  • only authenticated users have access to the API
    (use permissions available in DRF out-of-the-box we do not want permissions to be more granular for MVP)

Related issues

Related to Pulp - Task #2090: Create a plan for user/auth in 3.0 CLOSED - CURRENTRELEASE Actions
Blocked by Pulp - Task #2243: Create custom django User model MODIFIED Actions
Blocks Pulp - Story #2359: As a user, I can use JWT tokens for authenticaton MODIFIED Actions

Associated revisions

Revision 7ae3e451 View on GitHub
Added by dkliban@redhat.com almost 3 years ago

Adds authentication to the REST API

All API views now require authentication. The password for the 'admin' user can now be
set using the 'reset-admin-password' django management command. The new command takes
an optional '--random' argument.

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

Revision 7ae3e451 View on GitHub
Added by dkliban@redhat.com almost 3 years ago

Adds authentication to the REST API

All API views now require authentication. The password for the 'admin' user can now be
set using the 'reset-admin-password' django management command. The new command takes
an optional '--random' argument.

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

Revision 7ae3e451 View on GitHub
Added by dkliban@redhat.com almost 3 years ago

Adds authentication to the REST API

All API views now require authentication. The password for the 'admin' user can now be
set using the 'reset-admin-password' django management command. The new command takes
an optional '--random' argument.

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

History

#1 Updated by ttereshc almost 3 years ago

  • Blocked by Task #2243: Create custom django User model added

#2 Updated by ttereshc almost 3 years ago

  • Blocks Story #2359: As a user, I can use JWT tokens for authenticaton added

#3 Updated by ttereshc almost 3 years ago

  • Related to Task #2090: Create a plan for user/auth in 3.0 added

#4 Updated by mhrivnak almost 3 years ago

  • Description updated (diff)

#5 Updated by mhrivnak almost 3 years ago

  • Description updated (diff)
  • Groomed changed from No to Yes
  • Sprint Candidate changed from No to Yes

#6 Updated by mhrivnak almost 3 years ago

  • Sprint/Milestone set to 29

#7 Updated by dkliban@redhat.com almost 3 years ago

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

#8 Updated by dkliban@redhat.com almost 3 years ago

As part of this story, I am also adding a new management command called 'reset-admin-password'. This command will be invoked in the following way:

python manage.py reset-admin-password

Afterwards, the user will be prompted to enter a new password for the 'admin' user of Pulp.

Another way to invoke the command would be with '--random' argument. This would generate a random password for the user 'admin' and then output to stdout.

Our dev setup script could ask the developer to enter a password for 'admin' user. The spec file for the RPM could use this command to create 'admin' user with a random password.

#9 Updated by dkliban@redhat.com almost 3 years ago

  • Status changed from ASSIGNED to POST

#10 Updated by dkliban@redhat.com almost 3 years ago

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

#11 Updated by bmbouter over 1 year ago

  • Sprint set to Sprint 11

#12 Updated by bmbouter over 1 year ago

  • Sprint/Milestone deleted (29)

#13 Updated by daviddavis 6 months ago

  • Sprint/Milestone set to 3.0

#14 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF