apicurio

by One Acre Fund

Helm chartv2.3.0App 0.2.62.FinalVerified publisher

Apicurio Studio API designer

About this chart

apicurio

Apicurio Studio API designer

Homepage: http://www.apicur.io/

Maintainers

NameEmailUrl
Yann-J[email protected]

Source Code

TL;DR;

This chart will install an Apicurio Studio instance with an optional dependent Postgres backing db and optional Microcks API mocking platform.

$ helm repo add one-acre-fund https://one-acre-fund.github.io/oaf-public-charts
$ helm install my-release one-acre-fund/apicurio

Enabling Microcks

To deploy Microcks alongside Apicurio Studio for API mocking:

$ helm install my-release one-acre-fund/apicurio \
  --set microcks.enabled=true \
  --set microcks.secrets.mongodb.mongodb-passwords=<password> \
  --set microcks.secrets.mongodb.mongodb-root-password=<root-password>

When microcks.enabled=true, the Apicurio UI automatically enables Microcks integration and derives the Microcks API URL from the deployed service. You can override this with microcks.client.apiUrl.

Keycloak Configuration

Keycloak is enabled by default. Configure your Keycloak instance:

$ helm install my-release one-acre-fund/apicurio \
  --set keycloak.url=https://keycloak.example.com/auth \
  --set keycloak.client.id=apicurio \
  --set keycloak.client.secret=<client-secret>

To disable Keycloak:

$ helm install my-release one-acre-fund/apicurio --set keycloak.enabled=false

See KEYCLOAK-SETUP.md for detailed client setup.

Enabling Ingress

$ helm install my-release one-acre-fund/apicurio \
  --set ingress.enabled=true \
  --set ingress.host=apicurio.example.com \
  --set ingress.tlsSecretName=my-tls-secret

For Microcks ingress, set microcks.app.ingress.host:

$ helm install my-release one-acre-fund/apicurio \
  --set microcks.enabled=true \
  --set microcks.app.ingress.host=mocks.example.com \
  --set microcks.app.ingress.tlsSecretName=my-tls-secret

WARNING: The Apicurio docs are wrong/incomplete about the Github integration. The documented instructions will let you login and link accounts, but NOT publish into your repository. To enable this, you will need to:

  • In the default roles of your realm, add the broker client role named read-token
  • Add this read-token broker role to already created users if needed
  • Use at least these scopes for your Github identity provider configuration: read:org,repo,user

For more details, see this ticket.

Known Issues

Bloated Keycloak Tokens

If Keycloak's "Full Scope Allowed" is enabled on the apicurio client, the access token will include roles from ALL clients in the realm. This can inflate the token beyond the 4096-byte cookie limit, causing:

  • OIDC State verification has failed errors (HTTP 401)
  • 502 Bad Gateway from the ingress controller (header too large)

Fix: In the Keycloak Admin Console:

  1. Go to Clients > apicurio > Client scopes tab
  2. Click on the apicurio-dedicated scope
  3. Go to Scope tab and set Full scope allowed to OFF
  4. Remove unnecessary default client scopes (keep only: openid, email, profile, roles)

OIDC State Verification Failure (Trailing Slash)

The Apicurio UI (Quarkus-based) may fail OIDC state verification when the URL is accessed without a trailing slash. The chart sets QUARKUS_OIDC_AUTHENTICATION_COOKIE_PATH=/ by default when keycloak.enabled=true to prevent this.

PostgreSQL Password Persistence

Bitnami's PostgreSQL image only sets passwords during first initialization. Changing postgresql.postgresqlPassword in Helm values will NOT update the password inside an existing database. To change the password on an existing deployment:

  1. kubectl exec into the PostgreSQL pod
  2. Run ALTER USER apicuriodb WITH PASSWORD 'new-password';
  3. Update the Helm values to match

Or delete the PVC and let Helm recreate it (data loss).

Requirements

RepositoryNameVersion
https://charts.bitnami.com/bitnamipostgresql~11.6.6

Values

KeyTypeDefaultDescription
api.extraEnvVarsobjectSee values.yaml and the container docsDictionary of name/value environment var pairs Will be evaluated as templates
api.extraEnvVars.APICURIO_LOGGING_LEVELstring"INFO"API logging level
api.extraEnvVars.JAVA_TOOL_OPTIONSstring"-Djava.net.preferIPv4Stack=true"API JVM options
api.extraSecretEnvVarsobject{}Same as envVars but passed as secrets
api.image.namestring"apicurio/apicurio-studio-api"Image name for API container
api.image.tagstring"0.2.62.Final"Image tag for API container
api.imagePullPolicystring"IfNotPresent"API Image pull policy
api.ingress.annotationsobject{"nginx.ingress.kubernetes.io/rewrite-target":"/$1"}Annotations for API ingress
api.ingress.ingressClassNamestring"nginx"Ingress class name for API
api.ingress.pathstring"/studio-api/?(.*)"Ingress path for API
api.ingress.pathTypestring"ImplementationSpecific"Path type for API ingress
api.replicasint1API Replicas
api.securityContextobject{"runAsGroup":1000,"runAsUser":185}Security context for API container
api.waitbooltrueWait for DB to be up?
database.driverstring"postgresql"DB driver - mysql / postgresql
database.initializebooltrueInitialize DB?
database.typestring"postgresql9"DB type - postgresql9 / mysql5
general.hostnamestring"www.example.com"Publicly reachable host name for the UI
general.serviceTypestring"ClusterIP"Service type for all services
general.shareForEveryonebooltrueEnable Share to everyone feature?
global.storageClassstringnilStorage class for all volumes created by this chart or subcharts
ingressobject{"enabled":false,"host":"www.example.com","tlsSecretName":""}Apicurio ingress configuration
ingress.enabledboolfalseEnable ingresses for Apicurio components (api, ui, ws)?
ingress.hoststring"www.example.com"Hostname for ingress rules
ingress.tlsSecretNamestring""TLS secret name for ingress
keycloakobject{"client":{"id":"apicurio","secret":""},"enabled":true,"realm":"Apicurio","url":"https://www.example.com/auth"}Configure Keycloak/OIDC authentication
keycloak.client.idstring"apicurio"Keycloak Client ID
keycloak.client.secretstring""Keycloak Client Secret
keycloak.enabledbooltrueEnable Keycloak/OIDC authentication
keycloak.realmstring"Apicurio"Keycloak Realm
keycloak.urlstring"https://www.example.com/auth"Public URL to Keycloak
microcksobject{"app":{"containerPort":8080,"env":{"JAVA_MAJOR_VERSION":"21","JAVA_OPTIONS":"-XX:+TieredCompilation -XX:TieredStopAtLevel=2","SPRING_DATA_MONGODB_DATABASE":"microcks","SPRING_PROFILES_ACTIVE":"prod"},"grpcEnabled":false,"grpcIngress":{"annotations":{"ingress.kubernetes.io/rewrite-target":"/","nginx.ingress.kubernetes.io/backend-protocol":"GRPC","nginx.ingress.kubernetes.io/ssl-passthrough":"true"},"host":"","ingressClassName":"nginx","path":"/","pathType":"Prefix","tlsSecretName":""},"grpcService":{"port":9090,"portName":"spring-grpc"},"image":{"name":"quay.io/microcks/microcks","pullPolicy":"IfNotPresent","tag":"1.13.2"},"ingress":{"annotations":{"ingress.kubernetes.io/rewrite-target":"/"},"host":"","ingressClassName":"nginx","path":"/","pathType":"Prefix","tlsSecretName":""},"livenessProbe":{"failureThreshold":3,"httpGet":{"path":"/api/health","port":8080,"scheme":"HTTP"},"initialDelaySeconds":25,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3},"readinessProbe":{"failureThreshold":3,"httpGet":{"path":"/api/health","port":8080,"scheme":"HTTP"},"initialDelaySeconds":35,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3},"replicaCount":1,"resources":{"limits":{"memory":"512Mi"},"requests":{"cpu":"200m"}},"service":{"port":8080,"portName":"spring"},"startupProbe":{"failureThreshold":10,"httpGet":{"path":"/api/health","port":8080,"scheme":"HTTP"},"initialDelaySeconds":10,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3}},"client":{"apiUrl":"","id":"microcks-serviceaccount","secret":""},"enabled":false,"keycloak":{"disableTrustManager":false,"realm":"","resource":"microcks-app"},"mongodb":{"containerPort":27017,"env":{"ALLOW_EMPTY_PASSWORD":"no","BITNAMI_DEBUG":"false","MONGODB_DISABLE_JAVASCRIPT":"no","MONGODB_DISABLE_SYSTEM_LOG":"no","MONGODB_ENABLE_DIRECTORY_PER_DB":"no","MONGODB_ENABLE_IPV6":"no","MONGODB_ENABLE_JOURNAL":"yes","MONGODB_EXTRA_DATABASES":"microcks","MONGODB_EXTRA_USERNAMES":"microcks","MONGODB_ROOT_USER":"root","MONGODB_SYSTEM_LOG_VERBOSITY":"0"},"image":{"name":"docker.io/bitnamilegacy/mongodb","pullPolicy":"IfNotPresent","tag":"8.0.13"},"persistence":{"accessMode":"ReadWriteOnce","size":"20Gi","storageClass":null},"replicaCount":1,"resources":{},"securityContext":{"container":{"runAsNonRoot":true,"runAsUser":1001},"pod":{"fsGroup":1001}},"service":{"port":27017,"portName":"mongodb"}},"postman":{"containerPort":3000,"env":{"LOG_LEVEL":"info"},"image":{"name":"quay.io/microcks/microcks-postman-runtime","pullPolicy":"IfNotPresent","tag":"1.5.0"},"livenessProbe":{"failureThreshold":3,"httpGet":{"path":"/health","port":3000,"scheme":"HTTP"},"initialDelaySeconds":4,"periodSeconds":20,"successThreshold":1,"timeoutSeconds":3},"readinessProbe":{"failureThreshold":3,"httpGet":{"path":"/health","port":3000,"scheme":"HTTP"},"initialDelaySeconds":5,"periodSeconds":20,"successThreshold":1,"timeoutSeconds":3},"replicaCount":1,"resources":{"limits":{"memory":"256Mi"}},"service":{"port":8080,"portName":"postman-runtime","targetPort":3000}},"secrets":{"mongodb":{"mongodb-passwords":"","mongodb-root-password":""}}}Microcks API mocking platform (optional)
microcks.appobject{"containerPort":8080,"env":{"JAVA_MAJOR_VERSION":"21","JAVA_OPTIONS":"-XX:+TieredCompilation -XX:TieredStopAtLevel=2","SPRING_DATA_MONGODB_DATABASE":"microcks","SPRING_PROFILES_ACTIVE":"prod"},"grpcEnabled":false,"grpcIngress":{"annotations":{"ingress.kubernetes.io/rewrite-target":"/","nginx.ingress.kubernetes.io/backend-protocol":"GRPC","nginx.ingress.kubernetes.io/ssl-passthrough":"true"},"host":"","ingressClassName":"nginx","path":"/","pathType":"Prefix","tlsSecretName":""},"grpcService":{"port":9090,"portName":"spring-grpc"},"image":{"name":"quay.io/microcks/microcks","pullPolicy":"IfNotPresent","tag":"1.13.2"},"ingress":{"annotations":{"ingress.kubernetes.io/rewrite-target":"/"},"host":"","ingressClassName":"nginx","path":"/","pathType":"Prefix","tlsSecretName":""},"livenessProbe":{"failureThreshold":3,"httpGet":{"path":"/api/health","port":8080,"scheme":"HTTP"},"initialDelaySeconds":25,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3},"readinessProbe":{"failureThreshold":3,"httpGet":{"path":"/api/health","port":8080,"scheme":"HTTP"},"initialDelaySeconds":35,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3},"replicaCount":1,"resources":{"limits":{"memory":"512Mi"},"requests":{"cpu":"200m"}},"service":{"port":8080,"portName":"spring"},"startupProbe":{"failureThreshold":10,"httpGet":{"path":"/api/health","port":8080,"scheme":"HTTP"},"initialDelaySeconds":10,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3}}Microcks application settings
microcks.app.containerPortint8080Microcks container port
microcks.app.envobject{"JAVA_MAJOR_VERSION":"21","JAVA_OPTIONS":"-XX:+TieredCompilation -XX:TieredStopAtLevel=2","SPRING_DATA_MONGODB_DATABASE":"microcks","SPRING_PROFILES_ACTIVE":"prod"}Extra environment variables for Microcks app
microcks.app.grpcEnabledboolfalseEnable gRPC support
microcks.app.grpcService.portint9090gRPC service port
microcks.app.grpcService.portNamestring"spring-grpc"gRPC service port name
microcks.app.image.namestring"quay.io/microcks/microcks"Microcks image
microcks.app.image.pullPolicystring"IfNotPresent"Microcks image pull policy
microcks.app.image.tagstring"1.13.2"Microcks image tag
microcks.app.ingress.hoststring""Microcks ingress host
microcks.app.ingress.ingressClassNamestring"nginx"Microcks ingress class
microcks.app.ingress.pathstring"/"Microcks ingress path
microcks.app.ingress.pathTypestring"Prefix"Microcks ingress path type
microcks.app.ingress.tlsSecretNamestring""Microcks ingress TLS secret name
microcks.app.replicaCountint1Microcks app replicas
microcks.app.resourcesobject{"limits":{"memory":"512Mi"},"requests":{"cpu":"200m"}}Microcks resource limits/requests
microcks.app.service.portint8080Microcks service port
microcks.app.service.portNamestring"spring"Microcks service port name
microcks.clientobject{"apiUrl":"","id":"microcks-serviceaccount","secret":""}Client settings used by Apicurio to connect to Microcks (works regardless of whether Microcks is deployed by this chart)
microcks.client.apiUrlstring""Microcks API URL (auto-derived when microcks.enabled is true)
microcks.client.idstring`"microcks-service

Deploy apicurio with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has apicurio 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 chartapicurio is pinned at v2.3.0 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