Skip to content

Configuration

Booking is configured two ways: environment variables (service wiring, read once at startup) and a hot-reloaded config.yaml (domain settings, watched and re-applied without a restart). The Helm chart sets both.

Environment variables

Defaults are documented and committed in .env.defaults; local overrides go in a gitignored .env (cp .env.defaults .env).

Service

VariableDescriptionDefault
PORTHTTP API port8080
BIND_ADDRBind address (:: for IPv6, 0.0.0.0 for IPv4)::
LOG_LEVELtrace | debug | info | warn | error | fatalinfo
ORIGINSComma-separated CORS origins. The Helm chart sets *http://localhost:3000
EXPOSE_API_DOCSServe the Swagger UI and OpenAPI document at /api-docs on the HTTP port, without authentication. pnpm update:openapi reads from it. The Helm chart sets falsetrue

Database (MariaDB, via @open-xchange/fastify-sdk)

Uses the SDK's DATABASES + DB_<NAME>_* convention, keyed on booking.

VariableDescriptionDefault
SQL_ENABLEDEnable the MariaDB pool (gates DB features so the service can boot without one in early setups)false
DATABASESComma-separated DB keysbooking
DB_BOOKING_HOSTHostname127.0.0.1
DB_BOOKING_PORTPort3306
DB_BOOKING_NAMEDatabase namebookingdb
DB_BOOKING_USERUsernameopenexchange
DB_BOOKING_PASSWORDPasswordsecret
DB_BOOKING_CONNECTIONSPool size10

App Suite integration

VariableDescriptionDefault
APP_SUITE_APIBase URL of the App Suite middleware HTTP APIhttp://localhost/appsuite/api

Other

VariableDescriptionDefault
CONFIG_PATHDirectory containing the hot-reloaded config.yamlconfig
RATE_LIMIT_PUBLIC_MAXPer-IP, per-minute limit on public (unauthenticated) write endpoints60
TRUST_PROXYProxies whose X-Forwarded-* headers are trusted, as comma-separated IPs or CIDRs; see Client address behind an ingressunset (trust none)
MAIL_PASSSMTP password for mail.authMethod: plain–
MAIL_CLIENT_SECRETOIDC client secret for the xoauth2/oauthbearer auth methods–
FREEBUSY_USERBasic-auth login for the free/busy REST API used by calendar conflict checking; required alongside freeBusy.baseURL below–
FREEBUSY_PASSBasic-auth password for the same endpoint–
NODE_EXTRA_CA_CERTSNode's own: a PEM file of CA certificates added to the trust store for all outbound TLS; set by the chart from extraCaCerts–

Client address behind an ingress

The public write limit (RATE_LIMIT_PUBLIC_MAX) and the /booking/mcp ceiling count requests per client address. The service sees the address of whatever opened the TCP connection to it. Behind an ingress, a gateway or a sidecar, that is the proxy, not the visitor.

TRUST_PROXY names the proxies that the service trusts to report the visitor's address. When the connecting peer matches the list, the service reads X-Forwarded-For from the right. It skips every entry that is also on the list, and the first address that is not on the list counts as the client. The same peer's X-Forwarded-Host and X-Forwarded-Proto are honoured too. A forwarded host still only selects an entry of linkOrigins, and the same-origin check for cookie sessions compares against the forwarded scheme and host.

Default: unset, nothing is trusted. X-Forwarded-For is caller-controlled, and the service cannot tell which proxies sit in front of it. A wrong guess would let clients choose their own address, so nothing is trusted until the operator names a proxy. Unset behind an ingress, every visitor arrives from the ingress address and all clients share one bucket per route and replica (or one bucket per ingress pod). A single client sending RATE_LIMIT_PUBLIC_MAX requests a minute then gets every other visitor's votes, bookings and cancellations refused with 429.

The value is a comma-separated list of IPv4/IPv6 addresses, CIDR ranges, or proxy-addr's presets loopback, linklocal and uniquelocal. Anything else, including true and a hop count, stops the service at startup with an error naming TRUST_PROXY. A hop count is refused because Fastify ignores it for security reasons, so the setting would silently do nothing.

To choose a value, list each proxy hop between the visitor and the service. Each hop must append the address it received the connection from to X-Forwarded-For, as nginx, Traefik and Envoy/Istio gateways do:

  • Ingress controller or gateway pods connect straight to the service pod. Trust their addresses. These are usually the pod CIDR of the ingress namespace, or the node CIDR when the controller runs on the host network, for example TRUST_PROXY=10.42.0.0/16.
  • A sidecar proxy in the booking pod (Istio). The service then sees the sidecar on loopback (127.0.0.6 for Istio). Trust loopback plus the gateway range, for example TRUST_PROXY=loopback,10.42.0.0/16.
  • A load balancer in front of the ingress that also appends to X-Forwarded-For. Add its addresses as well, or the load balancer's address becomes the client for everyone.

Keep the list as narrow as the topology allows. Every trusted range is a range whose own X-Forwarded-For claims are believed. If a range also contains real clients, for example uniquelocal while visitors reach the ingress from the internal network, those clients can prepend any address and pick a fresh bucket for every request, which bypasses the limit. Trusting a peer that does not overwrite or append X-Forwarded-For has the same effect.

The chart sets no value. Pass it through env once you know the topology:

env:
  TRUST_PROXY: "10.42.0.0/16"

config.yaml (hot-reloaded domain settings)

A file at $CONFIG_PATH/config.yaml, watched via the SDK's config registry and re-applied without a restart. All keys are optional; anything omitted (or later removed) falls back to its default. The image ships no config.yaml: without one mounted, every key takes the default below, so optional surfaces such as the MCP endpoint stay off. Key names intentionally match the original Java ServiceConfig/RequestConfig fields - see ADR-0007.

pollBaseURL: http://localhost:8080/booking/poll
bookingBaseURL: http://localhost:8080/booking/book
maxPolls: 20
maxEvents: 20
maxInvitees: 200
maxAppointmentTypes: 10
maxFormFields: 15
maxFormFieldOptions: 20
maxDateOverrides: 500
maxActiveBookingsPerEmail: 5
autoDeletionIntervalMinutes: 720
autoDeletionDelayAfterLastSlotMinutes: 44640
autoDeletionDelayAfterBookingEndMinutes: 44640
freeBusy:
  baseURL: http://appsuite-core-mw.appsuite.svc.cluster.local
footer:
  en-US:
    - title: Privacy Policy
      url: https://example.com/privacy
KeyDescriptionDefault
pollBaseURLBase URL used to build public poll links shown to ownersnull: derived from the request via linkOrigins (see below); omitted from GET /config when neither is available
bookingBaseURLBase URL used to build public booking-page links (?id=) and per-booking manage links (?manage=)null: derived from the request via linkOrigins (see below). With neither, booking mails carry no manage link and the service logs a warning per booking created
linkOriginsOrigins (scheme, host, optional port; no path) that links may be derived from while pollBaseURL / bookingBaseURL are unset, e.g. [https://booking.example.com]. Independent of the CORS ORIGINS[]: nothing is derived
maxPollsMax open polls per owner20
maxEventsMax slots per poll20
maxInviteesMax voters per poll200
maxAppointmentTypesMax appointment types per owner10
maxFormFieldsMax questions on a booking page's form, beyond name and email address. At most 100, the number of answers a booking request may carry15
maxFormFieldOptionsMax choices per dropdown or checkbox question. At most 100, the number of values one answer may carry20
maxDateOverridesMax upcoming dated entries per booking page: date overrides of a weekly page, or the dates of a one-time page. Past dates do not count and are dropped when the page is saved. At most 5000, the request schema's own ceiling500
maxActiveBookingsPerEmailMax active (confirmed, not yet ended) bookings per email address and appointment type5
autoDeletionIntervalMinutesHow often the cleanup job runs (polls, bookings, and settled outbox mails); <= 0 disables it720 (12 hours)
autoDeletionDelayAfterLastSlotMinutesGrace period after a poll's last slot before it's eligible for deletion44640 (31 days)
autoDeletionDelayAfterBookingEndMinutesMinutes after a booking's slot end (cancelled bookings: after cancellation) until the row is hard-deleted; 0 purges on the next run — there is no "keep forever" (retention must be bounded; disabling the job is the escape hatch). Applied at run time, so shortening it affects existing rows immediately. Note: this window is also the rebook window of a cancelled booking — its manage link dies when the row is purged44640 (31 days)
footerPer-locale array of {title, url} links rendered in the UI footer{}
features.*Feature toggles, each with its own default - see belowper toggle
freeBusy.baseURLAddress of the calendar's administrative free/busy REST API, the source for calendar conflict checking; its credentials are environment-only — see belownull
freeBusyURLDeprecated. URL of the middleware's internet free/busy servlet, the interim source for deployments on a middleware older than 8.52; used only while freeBusy is unconfigurednull

With neither free/busy source configured, the Check for availability setting is hidden in the plugin, and pages that already enabled it fail open (derive without calendar busy time).

Changing autoDeletionIntervalMinutes reschedules the cleanup job live (see Monitoring); no other key requires special handling beyond re-reading the config on next use. Appointment type configurations are deliberately outside the cleanup job's reach — only poll and booking records expire.

A configured pollBaseURL or bookingBaseURL is always used as is. While one is unset, the service derives it from the request that causes the link: the request's host is looked up in linkOrigins, and on a match the link is <that origin>/booking/poll or <that origin>/booking/book, scheme and port taken from the linkOrigins entry. A host that is not listed derives nothing, so a booker who sends a forged Host header gets no link rather than one pointing at their own domain. With linkOrigins empty (the default) nothing is derived.

linkOrigins:
  - https://appsuite.example.com

The host is the Host header as the service receives it. X-Forwarded-Host is read only from a proxy listed in TRUST_PROXY, and it is held to the same linkOrigins list. Without one, an ingress in front of the service has to pass the original Host through, which is the default for nginx and Traefik ingresses.

Manage links in booking mails are built while the booker's (or the owner's) request is handled and stored with the queued mail, so the outbox sends the link derived at that moment and builds none of its own.

features - feature toggles

A feature that is worth switching per deployment ships behind a toggle. Each one carries its own default, and a toggle is read per request, so changing one takes effect on the running process without a restart (see ADR-0014).

features:
  pageAppearance: true
  emailVerification: true
  bookingForm: true
KeyDescriptionDefault
features.pageAppearanceWhether owners can give a booking page its own colour and identity. While off, the appearance section is absent from the editor, its routes answer 404, and public pages show the owner's name as they did before the featurefalse
features.emailVerificationThe Require email verification setting on an appointment type. The booker confirms their address with a six-digit code sent by mail, and the booking is created once they enter it. While the toggle is off the setting is hidden in the plugin, and pages where an owner already switched it on take bookings without a code. A code lasts 10 minutes and allows 5 attempts. One address gets at most 4 codes per page, at least a minute apart, until they have all expired, whether resent or requested by starting again. None of this is configurablefalse
features.bookingFormThe questions a page owner defines on the booking form, beyond the name and email address. Set it to false to switch the feature off: a page then asks the comment and nothing else, the editor offers no questions section, and questions an owner defined earlier stay in the database untouchedtrue

Only declared toggles are accepted. An unknown name fails validation of the wholeconfig.yaml, not just its own line. The service refuses to start on it. A service already running logs the failure and keeps the configuration it had, including every other key in that file, so check the log after editing the ConfigMap.

While a toggle is off, the feature's routes answer 404, input it owns is ignored rather than refused, and payloads look the way they did before the feature existed. Switching one off leaves stored data alone: accent colours and identity images stay in the database and come back when it is switched on again. defaultAccentColor and defaultAccentColorDark have no effect while pageAppearance is off.

freeBusy - calendar conflict checking

Calendar conflict checking (ADR-0013) reads the owner's busy times from the calendar's administrative free/busy REST API (GET /preliminary/chronos/v1/freebusy/{context}/{user}), which App Suite 8.52 adds for service-to-service use:

freeBusy:
  # the middleware's REST base address, without the endpoint path
  baseURL: http://appsuite-core-mw.appsuite.svc.cluster.local

Requirements on the middleware side:

  • The endpoint is registered unconditionally — no feature property has to be switched on.
  • It is protected by HTTP Basic authentication with the middleware's com.openexchange.rest.services.basic-auth.login / com.openexchange.rest.services.basic-auth.password. Both reach the service through the environment — FREEBUSY_USER and FREEBUSY_PASS — and neither belongs in config.yaml: the login is generated on a real deployment, so it is as much a credential as the password. In Kubernetes the chart wires both from one Secret: inline freeBusy.user/freeBusy.password for a chart-owned one, freeBusy.existingSecret (plus existingSecretUserKey/existingSecretPasswordKey) for an operator- or ESO-managed one, the same two ways as database.password. With freeBusy.user set and freeBusy.password empty, the login comes from the values and only the password from freeBusy.existingSecret.
  • Without both credentials the source counts as unconfigured, so a freeBusy.baseURL whose environment is incomplete degrades rather than 401-ing on every lookup.

The booking pods must be able to reach baseURL. An in-cluster address is the obvious choice when both run in the same cluster, but nothing here depends on it: the endpoint requires authentication, so publishing it is an ordinary deployment decision — and a reasonable one where booking runs elsewhere.

The service asks for one owner at a time, in fixed seven-day blocks covering the range it is deriving slots for, and caches each block for 30 seconds. Concurrent requests share one lookup. Ranges are first cut to the page's bookable window (now until the booking horizon, plus the appointment's duration, its buffers and a day of slack), and nothing outside it is looked up. A booking page under load therefore costs each replica at most one lookup per owner and block of that window every 30 seconds, whatever ranges visitors ask for. A failed lookup is not cached, so while the middleware is failing each request tries again.

Everything about this check is advisory and fails open — see booking_freebusy_fetch_total for telling a broken lookup apart from a blind one.

freeBusyURL — the deprecated servlet fallback

Deployments on a middleware older than 8.52 keep conflict checking by pointing freeBusyURL at the middleware's internet free/busy servlet instead. It is used only while freeBusy above is unconfigured:

freeBusyURL: http://appsuite-core-mw.appsuite.svc.cluster.local/servlet/webdav.freebusy

It carries the servlet's limits. Two middleware properties gate it (both default to off; the first needs a restart, the second is config-cascade aware down to per-user):

  • com.openexchange.calendar.enableInternetFreeBusy=true
  • com.openexchange.calendar.publishInternetFreeBusy=true

The servlet answers without authentication to anyone who can reach it and knows a context id and mail address, so keep freeBusyURL in-cluster and do not route /servlet/webdav.freebusy through the public ingress unless internet free/busy for Outlook is wanted on its own. It also identifies the owner by mail address, so the check needs the owner's profile snapshot — a page whose owner has none is skipped, which the REST source does not suffer from.

On 8.52 or newer this key is the wrong choice, and the service says so: while the servlet is the active source it logs

BK Server: conflict checking uses freeBusyURL, the DEPRECATED internet free/busy servlet …

once per configuration change, not per request. Removing freeBusyURL and the servlet client altogether is deferred until the oldest supported middleware has the REST API — until then the key keeps working. A related notice covers the easy mistake next door: if freeBusy.baseURL is set while FREEBUSY_USER/FREEBUSY_PASS are missing, the service logs that instead, since such a deployment means to be on the REST source but would otherwise quietly sit on the servlet — or on no source at all.

mail — outbound mail

Outbound mail (booker confirmations, cancellation notices, iMIP calendar invitations — see ADR-0011) is configured in a nested mail block. Mail is disabled until mail.host is set; enqueued mails wait in the outbox and drain once it is. Appointment Booking requires it: while mail.host/mail.from are unset, booking requests are refused with a 503 — a booking whose confirmation could never be sent would break the feature's promise (cancellations still go through; their mails queue).

mail:
  host: postfix.example.com
  port: 587
  secure: false                # true = implicit TLS instead of STARTTLS
  from: "Bookings <bookings@example.com>"
  authMethod: plain            # none | plain | xoauth2 | oauthbearer
  user: bookings@example.com
  # xoauth2/oauthbearer: client_credentials against this token endpoint
  # tokenEndpoint: https://idp.example.com/realms/master/protocol/openid-connect/token
  # clientId: booking-mailer
  # scope: mail
  outboxIntervalSeconds: 30    # <= 0 disables the outbox worker
  maxSendAttempts: 8           # exponential backoff (2 min doubling, capped at 1 h) until then
  testEndpoint: false          # POST /booking/v1/mail/test — previews/dev only

Secrets (MAIL_PASS, MAIL_CLIENT_SECRET) come from the environment, not this file. The chart reads them from the Secret named in mail.existingSecret, see Helm values. With authMethod: none the service relays without authentication (in-cluster sinks, trusted relays).

Transport options

host, port and secure are nodemailer option names, and so is every other transport option: write it in the mail block under its documented nodemailer name and it is handed to the transport unchanged. Connection and TLS behaviour (servername, ignoreTLS, requireTLS, opportunisticTLS, tls), client identification (name, localAddress), the timeouts (connectionTimeout, greetingTimeout, socketTimeout, dnsTimeout) and pool tuning (maxConnections, maxMessages, rateDelta, rateLimit) are all reachable this way.

Every accepted key is validated. A misspelling is refused at startup with a message naming it, rather than being ignored by nodemailer and leaving mail quietly broken. Options that cannot be expressed in a config file are not offered: live sockets (socket, connection), callbacks (getSocket), and auth/customAuth/pool, which the service builds from authMethod. Nodemailer's own authMethod (its preferred SASL mechanism) is likewise not reachable: the authMethod key selects this service's auth flow and the mechanism follows from it.

The keys above the transport ones are this service's own and never reach nodemailer: from, authMethod, user, tokenEndpoint, clientId, scope, outboxIntervalSeconds, maxSendAttempts, testEndpoint.

An MTA whose certificate carries a different name

An MTA addressed by an internal name while holding a certificate issued for its public name is the common shape in Kubernetes, and it fails closed: nodemailer upgrades via STARTTLS, verifies the name it dialled, and aborts with ESOCKET and Hostname/IP does not match certificate's altnames. Mail never leaves, and only booking_mail_total{operation="failed"} shows it.

Set the name to verify, keeping verification on:

mail:
  host: main-postfix           # the in-cluster name that is dialled
  port: 25
  servername: mail.example.com # the name on the certificate

servername doubles as the SNI name, so it is also the right key for an MTA serving several certificates.

Two blunter escapes exist for the same symptom, both a downgrade: tls: { rejectUnauthorized: false } keeps the connection encrypted but unverified, and ignoreTLS: true skips STARTTLS and relays in the clear. opportunisticTLS does not help here: it only applies when the server refuses the STARTTLS command, not when the certificate check fails afterwards.

An MTA with a private CA

Trust the issuer by putting the PEM inline; tls.ca takes the certificate itself, so no file has to be mounted into the container:

mail:
  host: smtp.internal
  tls:
    ca: |
      -----BEGIN CERTIFICATE-----
      MIIDdzCCAl+gAwIBAgIEAgAAuTANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJJ
      ...
      -----END CERTIFICATE-----

This is for an issuer the system trust store does not know. It does not help against a name mismatch, which is a separate check; use servername for that.

When the CA is already managed as a Secret, or other endpoints use it too, the chart can add it to the trust store of the whole process instead: extraCaCerts mounts the PEM bundle and sets NODE_EXTRA_CA_CERTS to it (see Helm values). tls.ca replaces the trust store for the mail connection, while NODE_EXTRA_CA_CERTS adds to it.

Hostname resolution bypasses /etc/hosts

Nodemailer resolves the SMTP host with dns.resolve4/dns.resolve6 and only falls back to dns.lookup when DNS returns nothing. /etc/hosts is therefore bypassed whenever DNS answers at all, and Kubernetes hostAliases — the usual way to repoint one name for one pod — is silently ignored.

The failure is confusing rather than obvious: public DNS answers with an address that is unreachable from inside the cluster, giving ENETUNREACH or ETIMEDOUT against the real address with no sign that the alias was skipped. Point host at a name that DNS resolves correctly from inside the cluster, and use servername when the certificate disagrees with it.

Mail template overrides

Mail templates are Liquid files, three parts per mail type and locale: <template>.<locale>.subject.liquid, .txt.liquid, and .html.liquid. Defaults ship with the image; operators override individual files by placing them in $CONFIG_PATH/mail-templates/. Lookup falls back exact locale → base language → en, and all parts of a mail come from the same locale. Overrides are picked up live; a file that fails to parse is logged and the previous version keeps serving — template changes never fail mail delivery at send time.

In Kubernetes the directory is a ConfigMap volume of its own, mounted inside the config volume. It cannot be extra keys in the config.yaml ConfigMap: keys there cannot contain a /, so they cannot form a subdirectory. Write the files inline and the chart renders and mounts the ConfigMap:

mailTemplates:
  files:
    booking-confirmation.en.subject.liquid: |
      Your appointment with {{ ownerName }}
    booking-confirmation.en.txt.liquid: |
      Hello {{ bookerName }}, see you on {{ whenDate }} at {{ whenTime }}.

The appointment's time reaches a template two ways. when holds the whole slot on one line, which is what the shipped subjects use. whenDate, whenTime and whenZone hold the same slot split into the rows the shipped HTML bodies lay out separately. The reschedule templates add previousWhen, previousWhenDate, previousWhenTime and previousWhenZone for the time the appointment moved away from.

An HTML override references the shipped images by content ID, as in <img src="cid:appointment@booking.open-xchange.com">. The five names are appointment, appointment-moved, appointment-cancelled, globe and location; any other name is ignored. The service reads those references off the rendered body and attaches only the images that body names, so an override that drops one ships no dangling attachment. The images are attached as MIME parts, not embedded as data: URIs, which App Suite's own mail view and Gmail both refuse to render.

A ConfigMap managed elsewhere — built by CI from a directory of files, say — is referenced instead with mailTemplates.existingConfigMap, its keys being the file names. Inline files win when both are set, the same two ways as the database and free/busy credentials. With neither set no volume is mounted and the shipped defaults serve.

mcp - the agent surface

The MCP endpoint that exposes Appointment Booking's public flow to AI agents (see Agent access and MCP endpoint) is off until enabled:

mcp:
  enabled: false               # POST /booking/mcp answers 404 while false
KeyDescriptionDefault
mcp.enabledWhether POST /booking/mcp serves the tools. The route is always registered and checks this per request, so toggling it takes effect on the next call with no restartfalse

The endpoint is unauthenticated by design (the link is the capability, as on the public pages), and it is the service's first rate-limited read path. RATE_LIMIT_PUBLIC_MAX governs its per-IP ceiling alongside the public writes, and two further environment knobs cap writes per capability rather than per caller:

VariablePurposeDefault
RATE_LIMIT_MCP_PAGE_MAXBookings per appointment type per minute across all agent callers20
RATE_LIMIT_MCP_RESEND_MAXManage-link mails one address may trigger per minute3

Watch booking_mcp_tool_calls_total{tool, outcome} after enabling it (see Monitoring); a rising not_found is someone sweeping for page ids or manage tokens.

Helm values

The chart (helm/booking/values.yaml) maps onto the above. Minimal production values:

image:
  tag: "<release tag>"

# credentials for the image registry (registry.open-xchange.com by default)
imagePullSecrets:
  - name: <registry-pull-secret>

database:
  host: mariadb.production.svc.cluster.local
  port: 3306
  name: bookingdb
  user: booking
  existingSecret: booking-db
  existingSecretKey: password

appSuiteApi: http://core-mw-http-api/api

env:
  LOG_LEVEL: info
  ORIGINS: "https://appsuite.example.com"
  RATE_LIMIT_PUBLIC_MAX: "60"

bookingConfig:
  pollBaseURL: https://appsuite.example.com/booking/poll
  maxPolls: 20

Full reference of available chart values:

replicaCount: 2                  # ignored while hpa.create

# Scaling and rollouts, see Deployment
hpa:                             # HorizontalPodAutoscaler
  create: false
  minReplicas: 1
  maxReplicas: 3
  targetCPUUtilizationPercentage: 80
  targetMemoryUtilizationPercentage: ""
  metrics: []                    # extra spec.metrics, verbatim
  behavior: {}                   # spec.behavior, verbatim

strategy:                        # surge first, so a rollout never drops a pod
  type: RollingUpdate
  rollingUpdate:
    maxUnavailable: 0
    maxSurge: 1

pdb:                             # voluntary evictions (node drains)
  create: false
  minAvailable: ""               # number or percentage; wins over maxUnavailable
  maxUnavailable: 1
  unhealthyPodEvictionPolicy: "" # e.g. AlwaysAllow; empty omits it

defaultRegistry: registry.open-xchange.com   # prepended to image.repository

image:
  registry: ""                   # overrides defaultRegistry for this image
  repository: appsuite-core-internal/booking
  tag: ""                        # "" defaults to the chart's appVersion
  pullPolicy: IfNotPresent

imagePullSecrets: []             # merged with global.imagePullSecrets

nameOverride: ""                 # resource naming, standard helm semantics
fullnameOverride: ""

podAnnotations:                  # extra pod annotations
  logging.open-xchange.com/format: "appsuite-json"

# Explicit securityContext/podSecurityContext win; otherwise the hardened
# default*SecurityContext blocks apply while global.useDefaultSecurityContext
# is true (the chart default)
podSecurityContext: {}
securityContext: {}

global:
  commitSha: ""                  # triggers a rollout annotation change (hindsight pattern)
  useDefaultSecurityContext: true

service:
  type: ClusterIP
  port: 80

uiProvider:
  enabled: true
  basePath: /booking/plugin      # App Suite UI plugin discovery label/annotation

appSuiteApi: http://core-mw-http-api/api

database:
  host: mariadb
  port: 3306
  name: bookingdb
  user: booking
  password: ""                   # inline; rendered into a chart-owned Secret,
                                 # takes precedence over existingSecret
  existingSecret: booking-db     # Secret must contain the password key below
  existingSecretKey: password

# HTTP Basic credentials for the free/busy REST API, reaching the service as
# FREEBUSY_USER/FREEBUSY_PASS; its address goes into bookingConfig.freeBusy.
# Both halves come from one Secret. Same two ways as database.password above.
freeBusy:
  user: ""                       # inline; rendered into a chart-owned Secret,
  password: ""                   # takes precedence over existingSecret
  existingSecret: ""             # operator- or ESO-managed Secret instead; with
                                 # user set and password empty, only the password
  existingSecretUserKey: login
  existingSecretPasswordKey: password

# Extra CA certificates for outbound TLS (an MTA behind an internal CA), same
# values as ai-service. Mounted into the app and the migration Job, with
# NODE_EXTRA_CA_CERTS pointing at it. Read once at startup: an inline change
# rolls the pods, an existingSecret rotation needs a rollout restart.
extraCaCerts:
  existingSecret: ""             # Secret you manage; takes precedence
  key: "ca.crt"                  # key of the bundle inside the Secret
  certificates: ""               # inline PEM bundle; rendered into a chart-owned Secret

migration:
  enabled: true
  rotate: true                   # name rotates per sync; false for ArgoCD (below)
  jobId: ""                      # explicit rotation token, e.g. a CI job id
  ttlSecondsAfterFinished: 60    # cleanup, rotated Jobs only
  resources:
    requests: { cpu: 100m, memory: 128Mi }
    limits: { memory: 256Mi }

# SMTP secrets of bookingConfig.mail from an existing Secret; an empty key
# leaves that variable unwired
mail:
  existingSecret: ""
  existingSecretKey: password            # MAIL_PASS, authMethod plain
  existingSecretClientSecretKey: ""      # MAIL_CLIENT_SECRET, OIDC methods

env:
  LOG_LEVEL: info
  ORIGINS: "*"
  RATE_LIMIT_PUBLIC_MAX: "60"
  EXPOSE_API_DOCS: "false"       # "true" serves /api-docs, unauthenticated

extraEnv: []                     # list after env; entries may use valueFrom

mailTemplates:                   # Liquid overrides, see above
  files: {}                      # inline; rendered into a chart-owned ConfigMap,
                                 # takes precedence over existingConfigMap
  existingConfigMap: ""          # ConfigMap whose keys are the file names

bookingConfig: {}                # contents of the hot-reloaded config.yaml, see above

resources:
  requests: { cpu: 100m, memory: 128Mi }
  limits: { memory: 512Mi }

livenessProbe:
  httpGet: { path: /live, port: 9090 }
  initialDelaySeconds: 10
  periodSeconds: 30

readinessProbe:
  httpGet: { path: /ready, port: 9090 }
  initialDelaySeconds: 5
  periodSeconds: 10

nodeSelector: {}
tolerations: []
affinity: {}

Secrets

Never commit secrets to chart values files. The database password is read from an existing Kubernetes Secret (database.existingSecret / existingSecretKey), populated by whichever mechanism manages it in the target cluster (a MariaDB operator, External Secrets, or manually).

Alternatively, database.password accepts the password inline (legacy-subchart style, for stacks that pass credentials through values rather than managing a Secret). When set it takes precedence: the chart renders it into a chart-owned Secret (<fullname>-db-password) and wires the app and migration job to that, so the password still reaches the pods via a secretKeyRef and the deployment rolls when it changes. The inline value ends up wherever the rendered values go, so prefer existingSecret whenever a secret manager is available.