Project

Profile

Help

Story #4074

closed

Story #3968: As a Pulp user, I can protect content I have stored in Pulp

As a user, the content guard logic needs to be loaded and used by the content app.

Added by jortel@redhat.com about 6 years ago. Updated about 5 years ago.

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

0%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 45
Quarter:

Description

Plugin content guard logic needs to be loaded and associated with a ContentGuard model (class). The content needs to delegate authorization to the content-guard when handling a GET request.

The logic is loaded an associated with a ContentGuard model (class) using a decorator.


@contentguard(model=FooGuard)
def permit(request, content_guard):
    pass

Something like this In the content app:

try:
    contentguard.permit(request, distribution)
except PermissionError:
    return HttpResponseForbidden()

Related issues

Related to Pulp - Test #4256: As a user, the content guard logic needs to be loaded and used by the content app.CLOSED - COMPLETEActions
Related to RPM Support - Test #4257: QueryExistingArtifacts stage does not prevent duplicates within a streamCLOSED - COMPLETEActions
Blocks Pulp - Story #3972: As a plugin writer, I can define a type of ContentGuardCLOSED - CURRENTRELEASEbmbouter

Actions
Blocks CertGuard - Story #4009: Make CertGuard capabilities in Pulp3CLOSED - CURRENTRELEASEjortel@redhat.com

Actions
Actions #1

Updated by jortel@redhat.com about 6 years ago

  • Subject changed from As a user, the content application authorizes using the content-guard. to As a user, the content guard logic needs to be loaded and used by the content app.
  • Description updated (diff)
Actions #2

Updated by jortel@redhat.com about 6 years ago

  • Description updated (diff)
Actions #3

Updated by jortel@redhat.com about 6 years ago

  • Description updated (diff)
Actions #4

Updated by jortel@redhat.com about 6 years ago

  • Description updated (diff)
Actions #5

Updated by jortel@redhat.com about 6 years ago

  • Tags Pulp 3 added
Actions #6

Updated by daviddavis about 6 years ago

  • Groomed changed from No to Yes
  • Sprint set to Sprint 44
Actions #7

Updated by jortel@redhat.com about 6 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to jortel@redhat.com
Actions #8

Updated by jortel@redhat.com about 6 years ago

  • Status changed from ASSIGNED to POST
Actions #9

Updated by jortel@redhat.com about 6 years ago

  • Blocks Story #3972: As a plugin writer, I can define a type of ContentGuard added
Actions #10

Updated by jortel@redhat.com about 6 years ago

  • Blocks Story #4009: Make CertGuard capabilities in Pulp3 added
Actions #11

Updated by rchan about 6 years ago

  • Sprint changed from Sprint 44 to Sprint 45

Added by jortel@redhat.com about 6 years ago

Revision 40621ef5 | View on GitHub

Delegate content authorization to optional content-guard. closes #3970

Actions #12

Updated by bmbouter about 6 years ago

  • Status changed from POST to MODIFIED

This got merged so moving to MODIFIED and associating.

Actions #13

Updated by bherring about 6 years ago

  • Related to Test #4256: As a user, the content guard logic needs to be loaded and used by the content app. added
Actions #14

Updated by bherring about 6 years ago

  • Related to Test #4257: QueryExistingArtifacts stage does not prevent duplicates within a stream added
Actions #15

Updated by daviddavis over 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #16

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3)
Actions #17

Updated by bmbouter about 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF