Skip to content

Commit fbce961

Browse files
committed
fix dep, make post request
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
1 parent e6643a6 commit fbce961

5 files changed

Lines changed: 26 additions & 8 deletions

File tree

authentik/enterprise/api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,16 @@ class BinaryRenderer(BaseRenderer):
160160

161161

162162
class SupportBundleView(APIView):
163-
"""Retrieve a support bundle."""
163+
"""Generate a support bundle."""
164164

165165
permission_classes = [HasPermission("authentik_rbac.view_system_info")]
166166
pagination_class = None
167167
filter_backends = []
168168
renderer_classes = [BinaryRenderer]
169169

170-
@extend_schema(responses=bytes)
171-
def get(self, request: Request) -> Response:
172-
"""Retrieve a support bundle."""
170+
@extend_schema(responses=bytes, request=None)
171+
def post(self, request: Request) -> Response:
172+
"""Generate a support bundle."""
173173
response = HttpResponse(generate_support_bundle(), content_type=BinaryRenderer.media_type)
174174
response["Content-Disposition"] = 'attachment; filename="authentik_support.tgz"'
175175
return response

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ dependencies = [
4848
"opencontainers==0.0.15",
4949
"packaging==25.0",
5050
"paramiko==3.5.1",
51+
"psutil==7.0.0",
5152
"psycopg[c,pool]==3.2.9",
5253
"pydantic==2.11.7",
5354
"pydantic-scim==0.0.8",

schema.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7007,9 +7007,9 @@ paths:
70077007
$ref: '#/components/schemas/GenericError'
70087008
description: ''
70097009
/enterprise/support_bundle/:
7010-
get:
7011-
operationId: enterprise_support_bundle_retrieve
7012-
description: Retrieve a support bundle.
7010+
post:
7011+
operationId: enterprise_support_bundle_create
7012+
description: Generate a support bundle.
70137013
tags:
70147014
- enterprise
70157015
security:

uv.lock

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/src/admin/enterprise/EnterpriseLicenseListPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export class EnterpriseLicenseListPage extends TablePage<License> {
265265
<ak-action-button
266266
class="pf-m-secondary pf-m-block"
267267
.apiRequest=${() => {
268-
return new EnterpriseApi(DEFAULT_CONFIG).enterpriseSupportBundleRetrieve();
268+
return new EnterpriseApi(DEFAULT_CONFIG).enterpriseSupportBundleCreate();
269269
}}
270270
>
271271
${msg("Create support bundle")}

0 commit comments

Comments
 (0)