Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Commits
6ba4ddb8
Commit
6ba4ddb8
authored
1 year ago
by
Erwan Rouchet
Committed by
Bastien Abadie
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Make the lack of authentication explicit on GetPublicKey
parent
c96a8f4f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2051
Make the lack of authentication explicit on GetPublicKey
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arkindex/ponos/api.py
+7
-6
7 additions, 6 deletions
arkindex/ponos/api.py
with
7 additions
and
6 deletions
arkindex/ponos/api.py
+
7
−
6
View file @
6ba4ddb8
...
...
@@ -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-----
"""
),
)
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment