diff --git a/handler/service/service.go b/handler/service/service.go index 6e3fed1..06824c9 100644 --- a/handler/service/service.go +++ b/handler/service/service.go @@ -602,6 +602,7 @@ type ComponentOut struct { Component string `json:"component"` Host string `json:"host"` KafkaAuthenticationMethod KafkaAuthenticationMethodType `json:"kafka_authentication_method,omitempty"` + KafkaSslCa KafkaSslCaType `json:"kafka_ssl_ca,omitempty"` Path string `json:"path,omitempty"` Port int `json:"port"` PrivatelinkConnectionId string `json:"privatelink_connection_id,omitempty"` @@ -809,6 +810,17 @@ type KafkaOut struct { ServicePlans []ServicePlanOut `json:"service_plans"` UserConfigSchema map[string]any `json:"user_config_schema"` } +type KafkaSslCaType string + +const ( + KafkaSslCaTypeProjectCa KafkaSslCaType = "project_ca" + KafkaSslCaTypeLetsencrypt KafkaSslCaType = "letsencrypt" +) + +func KafkaSslCaTypeChoices() []string { + return []string{"project_ca", "letsencrypt"} +} + type LevelType string const ( diff --git a/handler/serviceuser/serviceuser.go b/handler/serviceuser/serviceuser.go index f7b9b7c..8499e5e 100644 --- a/handler/serviceuser/serviceuser.go +++ b/handler/serviceuser/serviceuser.go @@ -164,6 +164,7 @@ type ComponentOut struct { Component string `json:"component"` Host string `json:"host"` KafkaAuthenticationMethod KafkaAuthenticationMethodType `json:"kafka_authentication_method,omitempty"` + KafkaSslCa KafkaSslCaType `json:"kafka_ssl_ca,omitempty"` Path string `json:"path,omitempty"` Port int `json:"port"` PrivatelinkConnectionId string `json:"privatelink_connection_id,omitempty"` @@ -225,6 +226,17 @@ func KafkaAuthenticationMethodTypeChoices() []string { return []string{"certificate", "sasl"} } +type KafkaSslCaType string + +const ( + KafkaSslCaTypeProjectCa KafkaSslCaType = "project_ca" + KafkaSslCaTypeLetsencrypt KafkaSslCaType = "letsencrypt" +) + +func KafkaSslCaTypeChoices() []string { + return []string{"project_ca", "letsencrypt"} +} + type LevelType string const (