Actions
Story #4074
closedStory #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.
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
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
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)
Updated by daviddavis about 6 years ago
- Groomed changed from No to Yes
- Sprint set to Sprint 44
Updated by jortel@redhat.com about 6 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to jortel@redhat.com
Updated by jortel@redhat.com about 6 years ago
- Status changed from ASSIGNED to POST
Updated by jortel@redhat.com about 6 years ago
- Blocks Story #3972: As a plugin writer, I can define a type of ContentGuard added
Updated by jortel@redhat.com about 6 years ago
- Blocks Story #4009: Make CertGuard capabilities in Pulp3 added
Added by jortel@redhat.com about 6 years ago
Updated by bmbouter almost 6 years ago
- Status changed from POST to MODIFIED
This got merged so moving to MODIFIED and associating.
Updated by bherring almost 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
Updated by bherring almost 6 years ago
- Related to Test #4257: QueryExistingArtifacts stage does not prevent duplicates within a stream added
Updated by bmbouter almost 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Delegate content authorization to optional content-guard. closes #3970