summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-02-15 20:53:54 +0000
committerGerrit Code Review <review@openstack.org>2023-02-15 20:53:54 +0000
commit7039d4f5f67ee6b647aa6baff25adf38ad25ed56 (patch)
tree07c3868d25eb0599bb577cad66221cb35e7ad1a0
parent124fc46f9c2b05ee611ee50a78b7c6522d97cf5e (diff)
parentdf7cb1ed3f7382eab54f3079b0981a9acb0a138f (diff)
downloadzuul-7039d4f5f67ee6b647aa6baff25adf38ad25ed56.tar.gz
Merge "Add project-ssh-key to API docs"
-rw-r--r--web/public/openapi.yaml40
1 files changed, 36 insertions, 4 deletions
diff --git a/web/public/openapi.yaml b/web/public/openapi.yaml
index d69111cf8..cb2e10b37 100644
--- a/web/public/openapi.yaml
+++ b/web/public/openapi.yaml
@@ -249,7 +249,7 @@ paths:
- tenant
/api/tenant/{tenant}/key/{project}.pub:
get:
- operationId: get-project-key
+ operationId: get-project-secrets-key
parameters:
- description: The tenant name
in: path
@@ -275,12 +275,44 @@ paths:
'
schema:
- description: The project public key
+ description: The project secrets public key in PKCS8 format
type: string
- description: Returns the project public key
+ description: Returns the project public key that is used to encrypt secrets
'404':
description: Tenant or Project not found
- summary: Get a project public key
+ summary: Get a project public key that is used to encrypt secrets
+ tags:
+ - tenant
+ /api/tenant/{tenant}/project-ssh-key/{project}.pub:
+ get:
+ operationId: get-project-ssh-key
+ parameters:
+ - description: The tenant name
+ in: path
+ name: tenant
+ required: true
+ schema:
+ type: string
+ - description: The project name
+ in: path
+ name: project
+ required: true
+ schema:
+ type: string
+ responses:
+ '200':
+ content:
+ text/plain:
+ example: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACA
+
+ '
+ schema:
+ description: The project ssh public key in SSH2 format
+ type: string
+ description: Returns the project public key that executor adds to SSH agent
+ '404':
+ description: Tenant or Project not found
+ summary: Get a project public key that is used for SSH in post-merge pipelines
tags:
- tenant
/api/tenant/{tenant}/semaphores: