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 over 5 years ago. Updated over 4 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

Also available in: Atom PDF