Project

Profile

Help

Story #3968

closed

As a Pulp user, I can protect content I have stored in Pulp

Added by daviddavis about 6 years ago. Updated about 4 years ago.

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

100%

Estimated time:
(Total: 0:00 h)
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

This epic is to introduce the concept of ContentGuards in Pulp 3.0. ContentGuards are objects with attributes (ie settings) and logic that users can leverage to protect their content in Pulp. These ContentGuards—their fields and functionality—are defined by plugin writers. Examples might include a BasicAuthContentGuard or a DockerAuthContentGuard. These ContentGuards might be specific to certain content plugins but they also could be shipped independently in a plugin.

Pulpcore will provide the basic functionality around creating/updating/reading/deleting ContentGuards along with integration between the ContentGuard and the content app. The plugins will extend this functionality to add their own specific settings, routes to expose these ContentGuards, and code to authorize/deny any request based on the state of the applicable ContentGuard.

Distributions will have a foreign key to ContentGuards. A ContentGuard could belong to many Distributions. Also, a ContentGuard is not required for a Distribution meaning that a user doesn't have to enable content protection for their distribution.

Design

Model

ContentGuard (MasterModel)
- name (unique)
- description (optional)

Distirbution (new fields)
- content_guard (foreign key, optional)

Routes

List
GET /pulp/api/v3/content-guards/<type>/

Create
POST /pulp/api/v3/content-guards/<type>/

Read
GET /pulp/api/v3/content-guards/<type>/<id>/

Update
PUT/PATCH /pulp/api/v3/content-guards/<type>/<id>/

Delete
DELETE /pulp/api/v3/content-guards/<type>/<id>/


Sub-issues 6 (0 open6 closed)

Story #3969: As a user, I can CRUD a ContentGuardCLOSED - CURRENTRELEASEjortel@redhat.com

Actions
Story #3970: As a user, I can configure a Distribution to be protected by one ContentGuardCLOSED - CURRENTRELEASEjortel@redhat.com

Actions
Story #3972: As a plugin writer, I can define a type of ContentGuardCLOSED - CURRENTRELEASEbmbouter

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

Actions
Story #4074: As a user, the content guard logic needs to be loaded and used by the content app.CLOSED - CURRENTRELEASEjortel@redhat.com

Actions
Task #4233: Add/Fix a few things to support content guards.CLOSED - CURRENTRELEASEjortel@redhat.com

Actions

Related issues

Related to Pulp - Task #4232: Add a CertGuard project to redmine.CLOSED - COMPLETEbmbouter

Actions

Also available in: Atom PDF