Skip to content

Commit 48f80b6

Browse files
authored
Revert "Remove patch disabling authN/authZ python simple API (#815)" (#816)
This reverts commit c8a7062.
1 parent c8a7062 commit 48f80b6

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ RUN patch -p1 -d /usr/local/lib/pulp/lib/python${PYTHON_VERSION}/site-packages <
131131
COPY images/assets/patches/0022-Adds-authentication-to-the-mvn-deploy-api.patch /tmp/
132132
RUN patch -p1 -d /usr/local/lib/pulp/lib/python${PYTHON_VERSION}/site-packages < /tmp/0022-Adds-authentication-to-the-mvn-deploy-api.patch
133133

134+
COPY images/assets/patches/0023-Add-auth-override-pulp-python.patch /tmp/
135+
RUN patch -p1 -d /usr/local/lib/pulp/lib/python${PYTHON_VERSION}/site-packages < /tmp/0023-Add-auth-override-pulp-python.patch
136+
134137
COPY images/assets/patches/0024-Update-FileContent-filter-with-NAME_FILTER_OPTIONS.patch /tmp/
135138
RUN patch -p1 -d /usr/local/lib/pulp/lib/python${PYTHON_VERSION}/site-packages < /tmp/0024-Update-FileContent-filter-with-NAME_FILTER_OPTIONS.patch
136139

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
From d2578a51b604d478fae11c20fb7bb8da022bf7ce Mon Sep 17 00:00:00 2001
2+
From: Yasen <yasen@trahnov.eu>
3+
Date: Fri, 8 Aug 2025 15:44:15 +0200
4+
Subject: [PATCH] Add auth override to pulp-python SimpleView
5+
6+
---
7+
pulp_python/app/pypi/views.py | 2 ++
8+
1 file changed, 2 insertions(+)
9+
10+
diff --git a/pulp_python/app/pypi/views.py b/pulp_python/app/pypi/views.py
11+
index 79033d4..0e8a747 100644
12+
--- a/pulp_python/app/pypi/views.py
13+
+++ b/pulp_python/app/pypi/views.py
14+
@@ -220,6 +220,8 @@ class SimpleView(PackageUploadMixin, ViewSet):
15+
"""View for the PyPI simple API."""
16+
17+
endpoint_name = "simple"
18+
+ authentication_classes = []
19+
+ permission_classes = []
20+
DEFAULT_ACCESS_POLICY = {
21+
"statements": [
22+
{
23+
--
24+
2.50.1

0 commit comments

Comments
 (0)