Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #6894 https://pulp.plan.io/issues/6894
- Loading branch information
Showing
7 changed files
with
149 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Added ContentRedirectContentGuard to redirect with preauthenticated urls to the content app. |
27 changes: 27 additions & 0 deletions
27
pulp_container/app/migrations/0005_contentredirectcontentguard.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Generated by Django 2.2.12 on 2020-06-25 08:23 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import pulp_container.app.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0033_increase_remote_artifact_size_field'), | ||
('container', '0004_upload'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='ContentRedirectContentGuard', | ||
fields=[ | ||
('contentguard_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='container_contentredirectcontentguard', serialize=False, to='core.ContentGuard')), | ||
('shared_secret', models.BinaryField(default=pulp_container.app.models._gen_secret, max_length=32)), | ||
], | ||
options={ | ||
'default_related_name': '%(app_label)s_%(model_name)s', | ||
}, | ||
bases=('core.contentguard',), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ pulpcore>=3.4 | |
ecdsa~=0.13.2 | ||
pyjwkest~=1.4.0 | ||
pyjwt[crypto]~=1.7.1 | ||
url-normalize~=1.4.2 |