Skip to content
Snippets Groups Projects
Commit 6ba4ddb8 authored by Erwan Rouchet's avatar Erwan Rouchet Committed by Bastien Abadie
Browse files

Make the lack of authentication explicit on GetPublicKey

parent c96a8f4f
No related branches found
No related tags found
1 merge request!2051Make the lack of authentication explicit on GetPublicKey
......@@ -55,6 +55,7 @@ class PublicKeyEndpoint(APIView):
Fetch the server's public key in PEM format to perform agent registration.
"""
authentication_classes = ()
renderer_classes = (PublicKeyPEMRenderer,)
@extend_schema(
......@@ -69,12 +70,12 @@ class PublicKeyEndpoint(APIView):
status_codes=["200"],
value=dedent(
"""
-----BEGIN PUBLIC KEY-----
MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEmK2L6lwGzSVZwFSo0eR1z4XV6jJwjeWK
YCiPKdMcQnn6u5J016k9U8xZm6XyFnmgvkhnC3wreGBTFzwLCLZCD+F3vo5x8ivz
aTgNWsA3WFlqjSIEGz+PAVHSNMobBaJm
-----END PUBLIC KEY-----
"""
-----BEGIN PUBLIC KEY-----
MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEmK2L6lwGzSVZwFSo0eR1z4XV6jJwjeWK
YCiPKdMcQnn6u5J016k9U8xZm6XyFnmgvkhnC3wreGBTFzwLCLZCD+F3vo5x8ivz
aTgNWsA3WFlqjSIEGz+PAVHSNMobBaJm
-----END PUBLIC KEY-----
"""
),
)
],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment