Skip to content

Commit

Permalink
Setup tests for basic auth and mTLS
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitsanj committed Dec 10, 2024
1 parent 14624a9 commit e706a00
Show file tree
Hide file tree
Showing 40 changed files with 933 additions and 1,247 deletions.
175 changes: 109 additions & 66 deletions src/generated/resources/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,17 @@
"allOf" : [ {
"$ref" : "#/components/schemas/SchemaRegistryConfig"
} ]
},
"ssl": {
"description": "Whether to communicate with the cluster over TLS/SSL. Defaults to 'true', but set to 'false' when the cluster does not support TLS/SSL.",
"default": true,
"type": "object",
"allOf": [
{
"$ref": "#/components/schemas/TLSConfig"
}
],
"nullable": true
}
}
},
Expand Down Expand Up @@ -1128,24 +1139,10 @@
"$ref" : "#/components/schemas/BasicCredentials"
}, {
"$ref" : "#/components/schemas/ApiKeyAndSecret"
}, {
"$ref" : "#/components/schemas/MutualTLSCredentials"
}, {
"$ref" : "#/components/schemas/OAuthCredentials"
} ],
"nullable" : true
},
"ssl" : {
"description" : "Whether to communicate with the Kafka cluster over TLS/SSL. Defaults to 'true', but set to 'false' when the Kafka cluster does not support TLS/SSL.",
"default" : true,
"type" : "boolean",
"nullable" : true
},
"verify_ssl_certificates" : {
"description" : "Whether to verify the Kafka cluster certificates. Defaults to 'true', but set to 'false' when the Kafka cluster has self-signed certificates.",
"default" : true,
"type" : "boolean",
"nullable" : true
}
}
},
Expand Down Expand Up @@ -1177,66 +1174,52 @@
}
}
},
"LocalConfig" : {
"description" : "Configuration when using Confluent Local and optionally a local Schema Registry.",
"KeyStore": {
"type" : "object",
"properties" : {
"schema-registry-uri" : {
"description" : "The URL of the Schema Registry running locally.",
"maxLength" : 512,
"type" : "string"
}
}
},
"MutualTLSCredentials" : {
"description" : "Mutual TLS authentication credentials",
"required" : [ "truststore_path", "keystore_path" ],
"type" : "object",
"properties" : {
"truststore_path" : {
"description" : "The path to the local trust store file.",
"path": {
"description": "The path to the local key store file. Only specified if client needs to be authenticated by the server (mutual TLS).",
"maxLength" : 256,
"type" : "string"
},
"truststore_password" : {
"description" : "The password for the local trust store file. If a password is not set, trust store file configured will still be used, but integrity checking is disabled. A trust store password is not supported for PEM format.",
"type" : "string",
"allOf" : [ {
"$ref" : "#/components/schemas/Password"
} ]
"nullable": true
},
"truststore_type" : {
"description" : "The file format of the local trust store file",
"type" : "string",
"allOf" : [ {
"$ref" : "#/components/schemas/StoreType"
} ]
},
"keystore_path" : {
"description" : "The path to the local key store file.",
"maxLength" : 256,
"type" : "string"
},
"keystore_password" : {
"password": {
"description" : "The password for the local key store file. If a password is not set, trust store file configured will still be used, but integrity checking is disabled. A key store password is not supported for PEM format.",
"type" : "string",
"allOf" : [ {
"$ref" : "#/components/schemas/Password"
} ]
}
],
"nullable": true
},
"keystore_type" : {
"type": {
"description" : "The file format of the local key store file.",
"type" : "string",
"allOf" : [ {
"$ref" : "#/components/schemas/StoreType"
} ]
}
],
"nullable": true
},
"key_password" : {
"description" : "The password of the private key in the local key store file.",
"type" : "string",
"allOf" : [ {
"$ref" : "#/components/schemas/Password"
} ]
}
],
"nullable": true
}
}
},
"LocalConfig": {
"description": "Configuration when using Confluent Local and optionally a local Schema Registry.",
"type": "object",
"properties": {
"schema-registry-uri": {
"description": "The URL of the Schema Registry running locally.",
"maxLength": 512,
"type": "string"
}
}
},
Expand Down Expand Up @@ -1482,18 +1465,10 @@
"$ref" : "#/components/schemas/BasicCredentials"
}, {
"$ref" : "#/components/schemas/ApiKeyAndSecret"
}, {
"$ref" : "#/components/schemas/MutualTLSCredentials"
}, {
"$ref" : "#/components/schemas/OAuthCredentials"
} ],
"nullable" : true
},
"verify_ssl_certificates" : {
"description" : "Whether to verify the Schema Registry cluster certificates. Defaults to 'true', but set to 'false' when the Schema Registry cluster has self-signed certificates.",
"default" : true,
"type" : "boolean",
"nullable" : true
}
}
},
Expand Down Expand Up @@ -1596,6 +1571,38 @@
"enum" : [ "JKS", "PKCS12", "PEM", "UNKNOWN" ],
"type" : "string"
},
"TLSConfig": {
"description": "SSL configuration",
"required": [
"truststore"
],
"type": "object",
"properties": {
"verify_ssl_certificates": {
"description": "Whether to verify the server's SSL certificate. If set to false, the server's SSL certificate will not be verified. Defaults to true.",
"type": "boolean"
},
"truststore": {
"description": "The trust store configuration for authenticating the server's certificate.",
"type": "object",
"allOf": [
{
"$ref": "#/components/schemas/TrustStore"
}
]
},
"keystore": {
"description": "The key store configuration for authenticating the client to the server.",
"type": "object",
"allOf": [
{
"$ref": "#/components/schemas/KeyStore"
}
],
"nullable": true
}
}
},
"Template" : {
"required" : [ "api_version", "kind", "id", "metadata", "spec" ],
"type" : "object",
Expand Down Expand Up @@ -1678,6 +1685,39 @@
"enum" : [ "NO_TIMESTAMP_TYPE", "CREATE_TIME", "LOG_APPEND_TIME" ],
"type" : "string"
},
"TrustStore": {
"required": [
"path"
],
"type": "object",
"properties": {
"path": {
"description": "The path to the local trust store file. Required for authenticating the server's certificate.",
"maxLength": 256,
"type": "string"
},
"password": {
"description": "The password for the local trust store file. If a password is not set, trust store file configured will still be used, but integrity checking is disabled. A trust store password is not supported for PEM format.",
"type": "string",
"allOf": [
{
"$ref": "#/components/schemas/Password"
}
],
"nullable": true
},
"type": {
"description": "The file format of the local trust store file",
"type": "string",
"allOf": [
{
"$ref": "#/components/schemas/StoreType"
}
],
"nullable": true
}
}
},
"UserInfo" : {
"type" : "object",
"properties" : {
Expand Down Expand Up @@ -1719,16 +1759,19 @@
"HealthCheck" : {
"type" : "object",
"properties" : {
"status": {
"enum": [
"UP",
"DOWN"
],
"type": "string"
},
"name" : {
"type" : "string"
},
"data" : {
"type" : "object",
"nullable" : true
},
"status" : {
"enum" : [ "UP", "DOWN" ],
"type" : "string"
}
}
}
Expand Down
Loading

0 comments on commit e706a00

Please sign in to comment.