Update encryption configuration screen for tenant (#1611)

This commit is contained in:
Lenin Alevski
2022-03-01 01:56:38 -06:00
committed by GitHub
parent 208afdfc3a
commit 4fa2f16e9a
30 changed files with 6216 additions and 225 deletions

View File

@@ -844,6 +844,27 @@ paths:
- OperatorAPI
/namespaces/{namespace}/tenants/{tenant}/encryption:
delete:
summary: Tenant Delete Encryption
operationId: TenantDeleteEncryption
parameters:
- name: namespace
in: path
required: true
type: string
- name: tenant
in: path
required: true
type: string
responses:
204:
description: A successful response.
default:
description: Generic error response.
schema:
$ref: "#/definitions/error"
tags:
- OperatorAPI
put:
summary: Tenant Update Encryption
operationId: TenantUpdateEncryption
@@ -871,6 +892,30 @@ paths:
tags:
- OperatorAPI
get:
summary: Tenant Encryption Info
operationId: TenantEncryptionInfo
parameters:
- name: namespace
in: path
required: true
type: string
- name: tenant
in: path
required: true
type: string
responses:
200:
description: A successful response.
schema:
$ref: "#/definitions/encryptionConfigurationResponse"
default:
description: Generic error response.
schema:
$ref: "#/definitions/error"
tags:
- OperatorAPI
/namespaces/{namespace}/tenants/{tenant}/yaml:
get:
summary: Get the Tenant YAML
@@ -1622,6 +1667,10 @@ definitions:
type: string
replicas:
type: string
secretsToBeDeleted:
type: array
items:
type: string
server:
type: object
$ref: "#/definitions/keyPairConfiguration"
@@ -1647,6 +1696,40 @@ definitions:
type: object
$ref: "#/definitions/securityContext"
encryptionConfigurationResponse:
allOf:
- $ref: "#/definitions/metadataFields"
- type: object
properties:
image:
type: string
replicas:
type: string
server:
type: object
$ref: "#/definitions/certificateInfo"
mtls_client:
type: object
$ref: "#/definitions/certificateInfo"
gemalto:
type: object
$ref: "#/definitions/gemaltoConfigurationResponse"
aws:
type: object
$ref: "#/definitions/awsConfiguration"
vault:
type: object
$ref: "#/definitions/vaultConfigurationResponse"
gcp:
type: object
$ref: "#/definitions/gcpConfiguration"
azure:
type: object
$ref: "#/definitions/azureConfiguration"
securityContext:
type: object
$ref: "#/definitions/securityContext"
vaultConfiguration:
type: object
required:
@@ -1692,6 +1775,51 @@ definitions:
ca:
type: string
vaultConfigurationResponse:
type: object
required:
- endpoint
- approle
properties:
endpoint:
type: string
engine:
type: string
namespace:
type: string
prefix:
type: string
approle:
type: object
required:
- id
- secret
properties:
engine:
type: string
id:
type: string
secret:
type: string
retry:
type: integer
format: int64
status:
type: object
properties:
ping:
type: integer
format: int64
tls:
type: object
properties:
crt:
type: object
$ref: "#/definitions/certificateInfo"
ca:
type: object
$ref: "#/definitions/certificateInfo"
awsConfiguration:
type: object
required:
@@ -1757,6 +1885,41 @@ definitions:
ca:
type: string
gemaltoConfigurationResponse:
type: object
required:
- keysecure
properties:
keysecure:
type: object
required:
- endpoint
- credentials
properties:
endpoint:
type: string
credentials:
type: object
required:
- token
- domain
properties:
token:
type: string
domain:
type: string
retry:
type: integer
format: int64
tls:
type: object
required:
- ca
properties:
ca:
type: object
$ref: "#/definitions/certificateInfo"
gcpConfiguration:
type: object
required: