Project

Profile

Help

Pulp 3 Minimum Viable Product » History » Sprint/Milestone 134

bmbouter, 12/14/2017 08:21 PM
Posting results of the "Miscellaneous" MVP call

1 1 bmbouter
# Pulp 3.0.0 Minimum Viable Product (MVP)
2
3 21 bmbouter
<span style="color:red;">Lines highlighted in red need more attention.</span>
4 20 bmbouter
5 37 bmbouter
## Overall Guarantees
6
7 57 mhrivnak
  - This is not a direct replacement for Pulp 2.
8
  - This is the minimum required for a 3.0.0 beta and GA.
9
  - All REST API calls will update the DB using transactions as necessary to ensure data integrity.
10 37 bmbouter
11 59 bmbouter
## Legend
12
13
\[done\] means merged and documented  
14
\[in-progress\] means started but not fully done  
15
If there is no label the effort has not yet been started
16
17 1 bmbouter
## Authentication
18
19 59 bmbouter
As an authenticated user I can manage user(s). \[done\]
20 17 semyers
21
  - Add a user
22
  - View user(s)
23 58 mhrivnak
  - Update any user detail
24 1 bmbouter
  - Delete a user
25
26 59 bmbouter
As an API user, I can have documentation to generate a JSON Web Token (JWT) without the server being online. \[done\]
27 1 bmbouter
28 59 bmbouter
As an administrator, I can disable JWT token expiration. This configuration is in the settings file and is system-wide. \[done\]
29 1 bmbouter
30 59 bmbouter
As an administrator, I can configure the JWT tokens to expire after a configurable amount of time. This configuration is in the settings file and is system-wide. \[done\]
31 1 bmbouter
32 59 bmbouter
The JWT shall have a username identifier \[done\]
33 1 bmbouter
34 125 bmbouter
As an API user, I can authenticate any API call with a valid username and password \[done\]
35
36
As an API user, I can authenticate any API call with a valid JWT \[[3163](https://pulp.plan.io/issues/3163)\]
37
38
As a JWT authenticated user, I can refresh my JWT token if Pulp is configured with JWT_ALLOW_REFRESH set to True (default is False) \[[3163](https://pulp.plan.io/issues/3163)\]
39 17 semyers
40 59 bmbouter
As an API user, I can invalidate all existing JWT tokens for a given user. \[done\]
41 17 semyers
42 59 bmbouter
As an authenticated user, when deleting a user 'foo', all of user 'foo's existing JWTs are invalidated. \[done\]
43 17 semyers
44 59 bmbouter
As an un-authenticated user, I can obtain a JWT token by using a username and password. \[done\]
45 1 bmbouter
46 110 daviddavis
As an authenticated user, I can filter users by: \[[3142](https://pulp.plan.io/issues/3142)\]
47
48
  - username: (equality, username_in_list)
49
50 1 bmbouter
## Repositories
51
52 18 dkliban@redhat.com
As an authenticated user, I can list all repos.
53
54 60 bmbouter
  - All fields are included \[done\]
55
  - Pagination is supported \[done\]
56 1 bmbouter
57 112 bmbouter
As an authenticated user I can use filters on Repositories list: \[[3079](https://pulp.plan.io/issues/3079)\]
58 109 amacdona@redhat.com
59
  - id: (id_in_list) \# id equality is not necessary, v3/repositories/\<UUID\>/
60
  - name: (equality, name_in_list)
61
62 18 dkliban@redhat.com
As an authenticated user, I can CRUD a repository
63
64 60 bmbouter
  - Create a repo \[done\]
65
  - Read a repo \[done\]
66
  - Update all mutable repo fields \[done\]
67 130 daviddavis
  - Delete a repo (asynchronous)
68 112 bmbouter
69 18 dkliban@redhat.com
As an authenticated user, I can list a repository's associated importers and publishers
70
71 60 bmbouter
  - All fields are included \[done\]
72
  - Pagination is supported \[done\]
73 1 bmbouter
74
As an authenticated user, I can see the number of content unit types with counts for each \[done\]\[[3059](https://pulp.plan.io/issues/3059)\]
75
76 130 daviddavis
As an authenticated user, when viewing a repository, I can discover a URL to the latest version of a repository.
77
78 51 bmbouter
## Importers
79
80
note: Importer attributes will commonly be available on importers, but aren't guaranteed to be used by all importers.
81
82 18 dkliban@redhat.com
As an authenticated user, I can CRUD an importer
83
84
  - Create an importer
85
  - Read an importer
86
  - Update all mutable importer fields
87 21 bmbouter
  - Delete an importer (asynchronous)
88 1 bmbouter
89 113 bmbouter
As an authenticated user, I have filters on the Importer list: \[[3080](https://pulp.plan.io/issues/3080)\]
90 109 amacdona@redhat.com
91
  - id: (id_in_list) \# id equality is not necessary, objects are referenced by id
92
  - name: (equality, name_in_list)
93
94 64 mhrivnak
As an authenticated user I can configure the following attributes on an Importer: \[done\]
95 47 bmbouter
96 48 amacdona@redhat.com
  - validate (bool) \[optional: defaults to True\]: If true, the plugin will validate imported content.
97
  - ssl_ca_certificate (str) \[optional\] String containing a PEM encoded CA certificate used to validate the server certificate presented by the external source.
98
  - ssl_client_certificate (str) \[optional\] Contains a PEM encoded client certificate used for authentication.
99
  - ssl_client_key (str) \[optional\] Contains a PEM encoded private key used for authentication.
100
  - ssl_validation (bool) \[optional: defaults to True\]: If true, SSL peer validation must be performed.
101 65 mhrivnak
  - proxy_url (str) \[optional\] Contains the proxy URL. Format: scheme://user:password@host:port.
102 48 amacdona@redhat.com
  - username (str) \[optional\] Contains the username to be used for authentication when syncing.
103 1 bmbouter
  - password (str) \[optional\] Contains the password to be used for authentication when syncing.
104 63 mhrivnak
  - <span style="color:orange;">download_policy (str) \[optional\] Contains the downloading policy name. This is a choice of three options:  
105
 \- immediate (default) - Downloading occurs during sync. The sync task does not complete until downloading is done.  
106
 \- background - Downloading is started by the sync but occurs in the background. The sync task completes before downloading is complete.  
107
 \- on-demand - The sync task records everything that would be downloaded but does not download content. Downloading occurs on demand as driven by client requests for content.</span>
108 1 bmbouter
  - feed_url (str) \[optional\] Contains the URL of an external content source. This is optional.
109 63 mhrivnak
  - <span style="color:orange;">sync mode: (str) \[optional\]. It has two choices 'additive' and 'mirror':  
110 130 daviddavis
 \- additive (default) - all remote content is added to the base repo version on sync. During sync no content is removed from the base repo version.  
111 63 mhrivnak
 \- mirror - the local content will mirror the remote content exactly, removing local content if not also present in the remote content.</span>
112 1 bmbouter
  - name (str) \[required\] Contains the name.
113
  - last_updated (datetime) \[read-only\] Contains the datetime of the last importer update.
114 50 bmbouter
  - last_synced (datetime) \[read-only\] Contains the datetime of the last importer sync.
115
116 130 daviddavis
As an authenticated user, I can define a default importer on a repo via href to be used whenever a new repo version is created.
117
118 52 bmbouter
## Publishers
119 51 bmbouter
120
note: Publisher attributes will commonly be available on publishers, but aren't guaranteed to be used by all publishers.
121 47 bmbouter
122 18 dkliban@redhat.com
As an authenticated user, I can CRUD a publisher
123
124
  - Create a publisher
125 1 bmbouter
  - Read a publisher
126
  - Update all mutable publisher fields
127 50 bmbouter
  - Delete a publisher (asynchronous)
128 1 bmbouter
129 113 bmbouter
As an authenticated user, I have filters on the Publisher list: \[[3081](https://pulp.plan.io/issues/3081)\]
130 109 amacdona@redhat.com
131
  - id: (id_in_list) \# id equality is not necessary, objects are referenced by id
132
  - name: (equality, name_in_list)
133
134 50 bmbouter
As an authenticated user I can configure the following attributes on a Publisher:
135
136 1 bmbouter
  - relative_path (str) \[optional\] The (relative) path component of the published url.
137 50 bmbouter
  - name - (str) \[required\] contains the name.
138 109 amacdona@redhat.com
  - last_published (datetime) \[read-only\] When the last successful publis%{color:red}h occurred.
139 50 bmbouter
  - last_updated (datetime) \[read-only\] The datetime of the last publisher update.
140 1 bmbouter
  - <span style="color:red;">auto_publish(bool) - ??? consider adding auto-publish feature to MVP</span>
141
142 123 bmbouter
## Distributions
143 1 bmbouter
144 123 bmbouter
As an authenticated user, I can CRUD Distributions:
145 1 bmbouter
146 123 bmbouter
  - Create a Distribution.
147
  - Read a Distribution
148
  - List Distributions
149
  - Update all mutable Distribution fields (synchronous)  
150
    \- base path  
151
    \- http  
152
    \- https
153
  - Delete an Distribution (synchronous)
154
155
As a user, my distribution base paths don't conflict and my create/update is rejected identifying the conflicting distributions \[[2987](https://pulp.plan.io/issues/2987)\]
156
157
As an authenticated user, I can create or update a distribution that is not associated with any publication (NULL)
158
159
As an authenticated user, I can create or update a distribution that is not associated with any publisher (NULL)
160
161
As a user, I can update a Distribution to distribute a specific Publication
162
163
As a user, I want a newly created publication to be automatically served by the content as defined by distributions.
164
165
As a user, I can see the full urls my base path is served at (one for http and one for https depending on what is on)
166
167 109 amacdona@redhat.com
As an authenticated user, I have filters on the Distribution list: \[[3082](https://pulp.plan.io/issues/3082)\]
168
169 1 bmbouter
  - name: (equality, name_in_list) 
170
  - base_path: (equality, substring, base_path_in_list)
171
172
## Publications
173
174 130 daviddavis
As an authenticated user, when creating a Publication, I can post a repo version href to be published.
175 1 bmbouter
176 130 daviddavis
As an authenticated user, I can publish a repository's latest version by posting a repository href to be published.
177
178
As an authenticated user, I can view which repository version was used to create a particular publication.
179
180
As an authenticated user, I can read Publication(s)
181
182
  - Read a Publication - id, created datetime, list of distribution hrefs, repo version
183 120 bmbouter
  - List all Publications - ordered by created datetime in descending order
184
185 130 daviddavis
As an authenticated user, I can delete publications.  
186
\- asynchronously with a lock on the repository version.  
187
\- prevented if associated with a distribution.  
188
\- single object only.
189
190 120 bmbouter
As an authenticated user, I can list publications and I have enough information to choose which ones to delete.
191
192
  - choose by created (older ones or perhaps latest)
193
  - choose not associated to a distribution.
194
  - does not imply filtering
195
196
As an authenticated user, I can list publications and i have enough information to select a publication to be associated with a distribution.
197
198
  - choose by created (latest or just by publish date)  
199
    \- manual promotion. "My rawhide publication has been tested and now I want to promote it to stable".  
200
    \- rollback to an earlier publication.
201
  - does not imply filtering
202 109 amacdona@redhat.com
203 72 mhrivnak
As an authenticated user, I can determine if and how a publication is distributed.
204 1 bmbouter
205 134 bmbouter
## Distributors
206
207
<span style="color:red;">As a plugin writer, I can contribute a distributor that is discovered by core</span>  
208
<span style="color:red;">\* As a plugin writer, I have docs on how to create a discoverable distributor</span>  
209
<span style="color:red;">As a plugin writer, I can contribute a distributor that uses a publication.</span>  
210
<span style="color:red;">As a plugin writer, I can contribute a distributor that uses a repository version.</span>
211
212 66 mhrivnak
## Sync and Publish
213 19 bmbouter
214
As an authenticated user, I can trigger an importer to sync. \[done\]
215
216
  - I can follow the progress of all syncs. (Syncs are asynchronous.)
217
  - I cannot pass "sync" options.
218 68 mhrivnak
  - Auto-publish is not included as an importer property.
219 71 mhrivnak
220 70 mhrivnak
As an authenticated user, I can trigger a publisher to publish. \[done\]
221 1 bmbouter
222 102 bmbouter
  - I can follow the progress of all publishes. (Publishes are asynchronous.)
223 29 bmbouter
  - I cannot pass "publish" options.
224 99 bmbouter
225 113 bmbouter
## Content Manipulation
226 99 bmbouter
227
#### Uploading Artifacts
228
229
As an authenticated user, I can create an Artifact by uploading a file. \[done\]
230 113 bmbouter
231 99 bmbouter
As an authenticated user, I can specify a size and/or digest to validate the uploaded file. \[done\]
232
233
#### Creating Content Units
234 101 bmbouter
235 1 bmbouter
As an authenticated user, I can create a content unit by providing the content type (in the URL), references to Artifacts, and the metadata supplied in the POST body. \[done\]
236 101 bmbouter
237 126 amacdona@redhat.com
#### Simple Copy
238
239 101 bmbouter
As an authenticated user, I can search (synchronous call) a repository's content using filtering.  
240
<span style="color:red;">\* note: In a separate call (async), I can add this content to another repository. This is effectively a copy operation in two calls.</span>
241
242
As an authenticated user, I can import all content from one repository into another repository in a single async call. (Clone use case)
243
244
  - I can follow the progress. (adding are asynchronous).
245
246
#### Complex Copy
247
248
As a plugin writer I can provide a rich search features with abitrary viewsets. e.g. depsolving, verisoning, etc
249
250
Examples of specific plugin use cases motivating the above general viewset
251
252 1 bmbouter
  - As an authenticated user, I can add an Errata from one repository to another repository along with packages mentioned in the Errata and all their dependencies that are present in the source repository.
253 101 bmbouter
  - As an authenticated user, I can add bunch of dependencies and store n versions back for each RPM.
254 1 bmbouter
  - As an authenticated user, I can use depsolving and versioning copy features together
255 71 mhrivnak
  - As an authenticated user, I can copy a puppet module and all of it's dependencies from one repository to another. 
256 95 bmbouter
  - As an authenticated user, I can depsolve units to be added to a destination repo based on an errata
257 1 bmbouter
258 127 bmbouter
#### Delete
259 1 bmbouter
260 127 bmbouter
As an authenticated user, I can delete a specific content unit
261
262
  - If the content unit is still in at least one repository version the delete fails
263
  - Error message saying that the unit is in use by a repo version and a link to the filter to return all of the repo versions.
264
  - Content unit deletion needs to be race condition free. For example: cannot delete a content unit during (for example)  
265
    \- sync that may be assuming the content exits.  
266
    \- copy operation
267
268
<!-- end list -->
269 1 bmbouter
270 112 bmbouter
  - As a user, I know that files (Artifacts) associated with the Content unit are not removed by this call (docs)
271
272
#### Filtering
273 1 bmbouter
274 130 daviddavis
As an authenticated user, I can filter Content by repository version information when plugin writers have provided such a filter
275 112 bmbouter
276 130 daviddavis
As an authenticated user, I can filter content by repository version
277 112 bmbouter
278
As an authenticated user, I can filter content by type
279
280 129 daviddavis
As an authenticated user, I can filter content on plugin specific attributes when plugin writers have provided such a filter
281 1 bmbouter
282 129 daviddavis
## Versioned Repositories
283
284
#### CRD
285
286 1 bmbouter
As an authenticated user, I can create a new repository version. \[[3173](https://pulp.plan.io/issues/3173)\]
287
288
As an authenticated user, I can list versions for a particular repository.
289 129 daviddavis
290
As an authenticated user, I can filter repository versions by:
291
292
  - number (equality, lt/lte, gt/gte)
293
  - content id (equality, content_in_list)
294 133 amacdona@redhat.com
  - <span style="color:red;">created datetime (range)</span>
295 129 daviddavis
296
As an authenticated user, I can delete any repository version.
297
298 130 daviddavis
As an authenticated user, I can view attributes on a repository version including its base_version, importer, added/removed content ids.
299 129 daviddavis
300
#### Repository Version Content
301
302
As an authenticated user, I can retrieve read-only immutable content sets by href.
303
304
As an authenticated user, I can list the content in a particular repository version
305 1 bmbouter
306 40 bmbouter
  - All fields are included
307 1 bmbouter
  - Pagination is supported
308
  - <span style="color:red;">Filtering support</span>
309 43 bmbouter
310
As an autheticated user, I can create a new version by adding or removing content to a particular base version (default is latest).
311 129 daviddavis
312 130 daviddavis
  - I can follow the progress. (adding/removing are asynchronous).
313
  - can add and remove in a single call
314
315 95 bmbouter
As an authenticated user, I can specify the base_version of content to be the basis for the new repository version. This defaults to the latest repo version associated with the repository.
316 43 bmbouter
317 95 bmbouter
## Orphan Content Units and Artifacts
318 43 bmbouter
319 95 bmbouter
As an authenticated user, I can cause an action that cleans up **both** orphaned content units and orphaned artifacts.
320
321 1 bmbouter
  - I cannot specify the units specifically (all types).
322 22 bmbouter
  - I can follow the progress of all cleanups. (Cleanups are asynchronous.)
323
324 76 mhrivnak
## Task Management
325
326 22 bmbouter
As an authenticated user, I can list all tasks
327 76 mhrivnak
328 22 bmbouter
  - <span style="color:orange;">Filtering support on \['state', 'id', 'group'\]</span>
329
  - <span style="color:orange;">This does not include associated progress reports</span>
330
331
As an authenticated user, I can see a detail view for a specific task \[done\]
332 76 mhrivnak
333 1 bmbouter
  - all attributes of a task
334
  - all associated progress reports
335
336 77 mhrivnak
As an authenticated user, I can cancel a task \[done\]
337
338 1 bmbouter
  - don't dare to use the DELETE verb!
339
340 114 daviddavis
As an authenticated user, I can delete tasks.
341 110 daviddavis
342
As an authenticated user, I can filter tags by: \[[3144](https://pulp.plan.io/issues/3144)\]
343
344
  - state (equality, state_in_list)
345
  - started_at(started_in_range)
346
  - finished_at(finished_in_range)
347 78 mhrivnak
  - worker (equality)
348 1 bmbouter
  - parent (equality)
349
350
## Task Group
351
352 134 bmbouter
<span style="color:red;">As an authenticated user, I can know the total count and done count of all tasks in a group</span>  
353
<span style="color:red;">As an authenticated user, I cannot delete or modify a task group, I can only interact act directly on the related tasks</span>  
354
<span style="color:red;">As an authenticated user, I can have the hrefs of the tasks grouped by state (done, running, errored, unstarted, etc).</span>
355 1 bmbouter
356 121 bmbouter
## Status
357 42 dkliban@redhat.com
358 80 mhrivnak
As an unauthenticated user I can view the status of Pulp workers and resource managers. \[done\]
359 46 bmbouter
360 28 bmbouter
As an unauthenticated user I can view the status of the web server's connection to the database and message broker. \[done\]
361 110 daviddavis
362 115 daviddavis
As an unauthenticated user I can view the versions of core and each installed plugin.
363 110 daviddavis
364 115 daviddavis
## Workers
365 110 daviddavis
366
As an authenticated user, I can filter workers by: \[[3143](https://pulp.plan.io/issues/3143)\]
367
368 116 daviddavis
  - last_heartbeat (range)
369 1 bmbouter
  - name (substring)
370 83 mhrivnak
  - gracefully_stopped (equality)
371 1 bmbouter
372 83 mhrivnak
## Plugin API
373 28 bmbouter
374 83 mhrivnak
As a plugin writer, I have a plugin API that is semantically versioned at 0.x separate from the REST API \[done\]
375 28 bmbouter
376 83 mhrivnak
As a plugin writer, I can report progress with a message and state \[done\]
377 28 bmbouter
378 83 mhrivnak
As a plugin writer, I can report progress with an optional suffix \[done\]
379 28 bmbouter
380 83 mhrivnak
As a plugin writer, I can report progress with a total count of things to do an the current count of things done \[done\]
381 28 bmbouter
382 83 mhrivnak
As a plugin writer, non-fatal exceptions on the Task and are included in the Task detail. non_fatal exceptions do not cause the Task to be marked as failed, but may be interpreted by the user as not fully successful. \[done\]
383 28 bmbouter
384 84 bmbouter
As a plugin writer, the working directory is set before Task work is done and cleaned up afterwards. I should not need to interact with the file system outside of the working dir. \[done\]
385 28 bmbouter
386 83 mhrivnak
<span style="color:red;">As a plugin writer, I can provide a subclassed Importer. The importer's responsibility is to synchronize the content of a Pulp repository with the content of a remote repository. (a circular import problem needs to be discussed and may cause this to change) \[done\]</span>
387 28 bmbouter
388 83 mhrivnak
<span style="color:red;">As a plugin writer, I can provide a subclassed Publisher. The publisher's responsibility is to publish content. (a circular import problem needs to be discussed and may cause this to change) \[done\]</span>
389 28 bmbouter
390 83 mhrivnak
As a plugin writer, I can define unit types by subclassing Content models to provide concrete content unit types to be manged by the platform. \[done\]
391 28 bmbouter
392 83 mhrivnak
As a plugin writer, I can interact with and create Artifacts \[done\]
393 6 Ichimonji10
394 83 mhrivnak
As a plugin writer, my app will be discovered by Pulp's app via an entry point provided by the plugin writer \[done\]
395 1 bmbouter
396 8 Ichimonji10
As a plugin writer, I can use the plugin API to query content units/artifacts associated with a repository. \[done\]
397 1 bmbouter
398 112 bmbouter
As a plugin writer, I can add and remove content units to and from a repository. \[done\]
399
400
As a plugin writer, I have documentation that shows how I can add filters to filter content responsibly.
401
402
As a plugin writer, I have documentation on how to write a filter for my Content that can use the RepositoryContent through table.
403
404 103 bmbouter
  - note: This will allow users to filter content by repository information
405 1 bmbouter
406 134 bmbouter
As a user, I have docs that when a new RepoVersion is created, base_version associations, add_many and remove_many are peformed before any Plugin code is executed.
407
408 106 bmbouter
## Plugin Writer "live APIs"
409
410
As a plugin writer, I can provide a Live API with arbitrary views and viewsets.  
411 108 bmbouter
As a plugin writer, I have documentation on what URLs I should -not use for my views and viewsets
412
413
Here are some concrete use cases driving the very Live API use cases above:
414
415 113 bmbouter
~~~
416
# Concrete user use cases:
417
    As an authenticated user, I can use the puppet client to fetch content from Pulp using the Forge API
418 108 bmbouter
    As an authenticated user I can use the docker client to fetch content from Pulp using the Docker v1 API
419
    As an authenticated user I can use the docker client to fetch content from Pulp using the Docker v2 API
420
421
# Concrete plugin writer use cases
422
    As a puppet plugin developer, I can provide a viewset which handles the server side of the puppet Forge v3 API
423
    As a docker plugin developer, I can provide a viewset which handles the server side of the docker v1 API
424
    As a docker plugin developer, I can provide a viewset which handles the server side of the docker v2 API
425 117 bmbouter
~~~
426 1 bmbouter
427 134 bmbouter
## Plugin Writer Versioned Repositories
428
429
As a plugin writer writing sync code, I have a reference to the pre-saved repository version object that core created for me
430
431
  - As a plugin writer, I have exclusive access to a repository version while sync is running.
432
433
As a plugin writer, I know that core will associate all content in a RepoVersion's base_version for me.
434
435
As a plugin writer, I can add and remove content from the repository version I was given
436
437
As a plugin writer, I have docs to know when I need to create a new repo version myself. e.g. when performing a complex copy operation like depsolving
438
439
As a plugin writer, I have exclusive access to a repository version while my code is running.
440
441
As a plugin writer, I have docs telling me that a repo version content set is immutable
442
443
## Plugin Writer Publishing
444
445
As a plugin writer, I am assured that a repository version will be fully constructed and not deleted while publish code is running.
446
447
## Plugin Storage
448
449
As a plugin writer, the plugin API provides an API that returns a fully qualified path to a shared storage location used to store content. \["3182"https://pulp.plan.io/issues/3182\]
450
451 113 bmbouter
## Webserver Deployment
452 106 bmbouter
453 132 bmbouter
As a system administrator, I can deploy all Pulp web applications on one process  
454
As a system administrator, I can deploy the Pulp REST API exclusively in one process  
455
As a system administrator, I can deploy the Pulp content serving view exclusively in one process
456 113 bmbouter
457 132 bmbouter
As a system administrator, I can deploy all Pulp web applications inside a virtualenv.  
458
As a system administrator, I can deploy all Pulp web applications without root permissions.
459 93 bizhang
460 1 bmbouter
## CLI
461 26 bmbouter
462
We will use coreapi-cli to generate a one to one mapping of cli commands to rest api schema #3068  
463
<span style="color:orange;">We will have a wrapper for coreapi-cli. This wrapper will handle parallel progress reporting</span>
464
465
## Download API
466
467
As a plugin writer, I can download files via
468
469
  - http://
470 27 bmbouter
  - https://
471
  - file://
472 26 bmbouter
473
As a plugin writer, I can configure a downloader with:
474
475
  - Basic Auth
476
  - SSL Cert Client Auth
477
  - Custom CAs will be configured via a "trust store" either on the system or similar. Pulp will not do anything to read/load/manage CAs directly.
478
479
As a plugin writer, I can provide arbitrary behaviors for customized downloaders
480
481
  - For example token authentication in the docker plugin
482
483
As a plugin writer, I can have connection pooling/reuse
484
485
As a plugin writer, I have proxy settings
486
487
  - proxy url (containing basic auth info)
488
489 113 bmbouter
As a plugin writer, I can have great logs
490 26 bmbouter
491
As an authenticated user, I have documentation about how to use something for bandwidth limiting
492
493
As a plugin writer, I can configure the validation mechanisms used at download time
494
495 1 bmbouter
  - checksum validation - minimum (md5, sha1, sha256, sha512)
496
  - size validation
497
498 26 bmbouter
<span style="color:red;">As a plugin writer, I expect units that are missing from the remote repository to not be created in Pulp when using the immediate download policy.</span>
499
500 1 bmbouter
<span style="color:red;">As a plugin writer, I expect units that are missing from the remote repository to be created in Pulp when using background or on_demand download policies.</span>
501 26 bmbouter
502 27 bmbouter
As a plugin writer, the plugin API provides tooling whereby I can provide the content to be added and removed from the repository. This tooling supports both immediate and deferred downloading.
503 26 bmbouter
504
As a plugin writer I can manage the catalog by using ChangeSets
505 1 bmbouter
506
As a plugin writer, the plugin can participate in adding content for cases where the decision to add additional content is based content that has been downloaded.
507
508
As a plugin writer, I can fetch content myself (but I am not encouraged to do so) with code I write
509
510 56 ttereshc
As a plugin writer, I can CRUD content units
511 1 bmbouter
512
## <span style="color:red;">Consumer Profile Applicability</span>
513
514 118 bmbouter
<span style="color:red;">Using Consumer Profiles and repository bindings I can compute applicability with 2.y parity</span>
515
516 1 bmbouter
  - Performance needs to be awesome%
517
518 86 mhrivnak
## Migrations only involving Pulp 3
519 1 bmbouter
520 87 mhrivnak
Users can run "pulp-manager migrate" to migrate the database and adjust state in other locations (filesystem, message broker, ...). \[done\]
521 1 bmbouter
522
## Web Server Integration
523 122 jortel@redhat.com
524 1 bmbouter
As a user, I can have content efficiently served to me by Apache by Pulp using the X-SEND response headers. \[done\]  
525 122 jortel@redhat.com
As a user, I can have content efficiently served to me by Nginx by Pulp using the X-Accel-Redirect response headers. \[done\]
526 105 bmbouter
527 132 bmbouter
As a user, I can have an Ansible role to install Apache which enables Apache integration for Pulp and configures Apache to serve Pulp. \[[2921](https://pulp.plan.io/issues/2921)\]  
528
As a user, I can have an Ansible role to install Nginx which enables Nginx integration for Pulp and configures Nginx to serve Pulp. \[[2922](https://pulp.plan.io/issues/2922)\]
529 87 mhrivnak
530 89 mhrivnak
## Glossary
531 88 mhrivnak
532 131 bmbouter
Add (Content Unit): An operation causing a new repository version to contain a content unit(s)
533 1 bmbouter
534 131 bmbouter
Applicability - A plugin defined term meaning when a package update available in a repository is applicable to a given consumer as determined by the Consumer Profile.
535 130 daviddavis
536 119 bmbouter
Artifact - A file associated with one content (unit). Artifacts are not shared between content (units). Create a content unit using an uploaded file ID as the source for its metadata. Create Artifacts associated with the content unit using an uploaded file ID for each; commit as a single transaction.
537 1 bmbouter
538
Consumer Profile - A set of installed units on a specific machine. In Pulp3 this machine is not a "consumer" in the same sense as Pulp2. Pulp is not "managing" the machine anymore; Pulp3 only collects Profile information.
539
540 131 bmbouter
Content (unit) - A single piece of content manged by Pulp. Each file associated with a content (unit) is called an Artifact. Each content (unit) may have zero or many Artifacts.
541 1 bmbouter
542
Distribution: Where and how the content app serves a Publication. i.e. http vs https and base path component of the URL. A Distribution defines:
543
544
  - the base path of the repository publication (required)
545
  - serving via http (default=False)
546
  - serving via https (default=True)
547
  - relationship w/ a Publisher for auto-distribution (should be allowed to be NULL)
548
  - relationship with Publication (should be allowed to be NULL)
549 134 bmbouter
550
Distributor: A Distributor exports Content units and/or metadata
551 132 bmbouter
552
Live API: a viewset endpoint contributed by plugin. For examples see the [associated MVP section](https://pulp.plan.io/projects/pulp/wiki/Pulp_3\_Minimum_Viable_Product#Plugin-Writer-live-APIs)
553 131 bmbouter
554
Orphan Artifact: An Artifact that is associated with 0 Content Units and 0 Publications
555
556
Orphan Content (unit): A content unit that is a member of 0 repository versions
557
558
Remove (content unit): An operation causing a new repository version to not contain a content unit(s)
559
560
Repository - A named collection of repository versions.
561
562
Repository Version - An immutable set of content which is versioned by a sequential number.