Skip to content

Commit 308e020

Browse files
authored
Update permission_classes for API mem profilers (#920)
1 parent 08aae67 commit 308e020

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pulp_service/pulp_service/app/viewsets.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ class MemoryHeapSnapshotView(APIView):
124124
Memory profiling endpoint using guppy3 to analyze heap memory usage.
125125
Returns a snapshot of the current memory heap.
126126
"""
127+
permission_classes = []
127128

128129
def get(self, request):
129130
"""
@@ -200,6 +201,7 @@ class MemoryObjectTypesView(APIView):
200201
"""
201202
Get memory usage grouped by object type.
202203
"""
204+
permission_classes = []
203205

204206
def get(self, request):
205207
"""
@@ -268,6 +270,7 @@ class PodInfoView(APIView):
268270
Returns information about the current pod.
269271
Useful for identifying which pod you're hitting through a load balancer.
270272
"""
273+
permission_classes = []
271274

272275
def get(self, request):
273276
"""
@@ -314,6 +317,7 @@ class ProxyMemoryProfileView(APIView):
314317
GET /api/pulp/debug/memory/proxy/?target_pod_ip=10.0.1.23&endpoint=heap
315318
GET /api/pulp/debug/memory/proxy/?target_pod_ip=10.0.1.23&endpoint=types&object_type=dict
316319
"""
320+
permission_classes = []
317321

318322
@staticmethod
319323
def _validate_pod_ip(ip_address):
@@ -507,6 +511,7 @@ class MemrayProfileView(APIView):
507511
GET /api/pulp/debug/memory/memray/status/ - Get profiling status
508512
GET /api/pulp/debug/memory/memray/files/ - List output files
509513
"""
514+
permission_classes = []
510515

511516
STATE_FILE = '/tmp/memray-state.txt'
512517

@@ -1138,6 +1143,7 @@ class MemrayProxyProfileView(APIView):
11381143
GET /api/pulp/debug/memory/memray/proxy/?target_pod_ip=10.0.1.23&action=status
11391144
GET /api/pulp/debug/memory/memray/proxy/?target_pod_ip=10.0.1.23&action=files
11401145
"""
1146+
permission_classes = []
11411147

11421148
@staticmethod
11431149
def _validate_pod_ip(ip_address):

0 commit comments

Comments
 (0)