cc-schema-registry-proxy

by RADAR-Base

Helm chartv0.4.3App 1.0Apache-2.0Verified publisher

A Helm chart for Confluent Cloud schema registry proxy. This proxy service is used when RADAR-base platform is used with Confluent Cloud based schema registry. It forwards requests to schema registry with an additional basic authentication header with Confluent Cloud schema registry credentials. This service will be enabled if `cc.enabled = true`.

About this chart

cc-schema-registry-proxy

A Helm chart for Confluent Cloud schema registry proxy. This proxy service is used when RADAR-base platform is used with Confluent Cloud based schema registry. It forwards requests to schema registry with an additional basic authentication header with Confluent Cloud schema registry credentials. This service will be enabled if cc.enabled = true.

Homepage: https://radar-base.org

Maintainers

NameEmailUrl
Pim van Nierop[email protected]https://www.thehyve.nl/experts/pim-van-nierop

Source Code

Prerequisites

  • Kubernetes 1.28+
  • Kubectl 1.28+
  • Helm 3.1.0+
  • When gatewayAPI.enabled=true: the Gateway API CRDs and a Gateway Controller (e.g. NGINX Gateway Fabric) must already be installed in the cluster, and the shared parent Gateway radar-base-k8s-gateway must exist — it can be created via the gateway-api chart

Requirements

RepositoryNameVersion
https://radar-base.github.io/radar-helm-chartscommon2.x.x

Values

KeyTypeDefaultDescription
replicaCountint1Number of cc-schema-registry-proxy replicas to deploy
service.typestring"ExternalName"Kubernetes Service type,
service.externalNamestring"schema-registry-domain"Domain name used for pointing to actual schema registry instance
service.portint443Port number to connect to Confluent platform
disable_tlsboolfalseReconfigure Ingress to not force TLS
ingress.enabledbooltrueEnable ingress controller resource
ingress.annotationsobjectcheck values.yamlAnnotations that define default ingress class, certificate issuer
ingress.pathstring"/schema/?(.*)"Path within the url structure
ingress.pathTypestring"ImplementationSpecific"Ingress Path type
ingress.ingressClassNamestring"nginx"IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
ingress.hostslist["localhost"]Hosts to accept requests from
ingress.tls.secretNamestring"radar-base-tls"TLS Secret Name
gatewayAPI.enabledboolfalseEnable Gateway API HTTPRoute resource (alternative to ingress). Opt-in: requires the Gateway API CRDs and a Gateway controller to be installed.
gatewayAPI.annotationsobject{}Annotations to add to the HTTPRoute
gatewayAPI.parentRefobject{"name":"radar-base-k8s-gateway","namespace":""}Parent Gateway that the HTTPRoute attaches to. The Gateway itself is a shared resource and must be created separately (not by this chart).
gatewayAPI.parentRef.namestring"radar-base-k8s-gateway"Name of the Gateway
gatewayAPI.parentRef.namespacestring""Namespace of the Gateway (defaults to the release namespace when empty)
gatewayAPI.hostnameslist["{{ .Values.serverName }}"]Hostnames the HTTPRoutes accept requests for (must intersect the Gateway listener hostnames). String values support Helm templating (tpl); defaults to serverName so deployments override it the same way as ingress.hosts.
gatewayAPI.httpsobject{"port":443,"sectionName":""}HTTPS listener on the Gateway that the main route attaches to
gatewayAPI.https.portint443Listener port (empty attaches to all matching listeners)
gatewayAPI.https.sectionNamestring""Listener sectionName on the Gateway (optional)
gatewayAPI.pathTypestring"PathPrefix"Path match type (PathPrefix, Exact or RegularExpression)
gatewayAPI.pathstring"/schema"Path to match within the URL structure
gatewayAPI.methodstring"GET"HTTP method the route is restricted to (empty matches all methods)
gatewayAPI.filterslistcheck values.yamlAdditional HTTPRoute filters (e.g. URLRewrite, RequestHeaderModifier) Equivalent to the ingress annotations: strips the /schema prefix (nginx.ingress.kubernetes.io/rewrite-target: /$1), sets the upstream Host header (upstream-vhost) and injects the Confluent Cloud basic-auth header (configuration-snippet). NOTE: like the ingress annotation, the credentials end up in the rendered resource.
gatewayAPI.backendTLSobject{"caCertificateRefs":[],"enabled":true,"hostname":"{{ .Values.service.externalName }}","wellKnownCACertificates":"System"}TLS from the gateway to the Confluent Cloud schema registry (equivalent to nginx.ingress.kubernetes.io/backend-protocol: https). Creates a BackendTLSPolicy targeting the Service.
gatewayAPI.backendTLS.enabledbooltrueCreate the BackendTLSPolicy
gatewayAPI.backendTLS.hostnamestring"{{ .Values.service.externalName }}"SNI/certificate hostname to validate (defaults to the external schema registry domain)
gatewayAPI.backendTLS.wellKnownCACertificatesstring"System"Well-known CA bundle used to validate the backend (System); ignored when caCertificateRefs is set
gatewayAPI.backendTLS.caCertificateRefslist[]Custom CA ConfigMap references used to validate the backend (takes precedence over wellKnownCACertificates)
gatewayAPI.httpsRedirectobject{"enabled":true,"port":80,"sectionName":"","statusCode":301}HTTP->HTTPS redirect route (equivalent to nginx force-TLS behaviour)
gatewayAPI.httpsRedirect.enabledbooltrueEnable a second HTTPRoute that 301-redirects HTTP traffic to HTTPS
gatewayAPI.httpsRedirect.portint80HTTP listener port on the Gateway to attach the redirect to
gatewayAPI.httpsRedirect.sectionNamestring""Listener sectionName on the Gateway (optional)
gatewayAPI.httpsRedirect.statusCodeint301Redirect HTTP status code
cc.schemaRegistryApiKeystring"srApiKey"Confluent cloud schema registry API key
cc.schemaRegistryApiSecretstring"srApiSecret"Confluent cloud schema registry API secret
serverNamestring"localhost"

Deploy cc-schema-registry-proxy with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cc-schema-registry-proxy on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcc-schema-registry-proxy is pinned at v0.4.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply