Configure
Set Quader's configuration in the chart's values, check it before a rollout, and know which changes need new pods and which apply live.
On this page
Where configuration comes from
| Source | Precedence |
|---|---|
| Built-in defaults | lowest; every key and its default: Configuration keys |
The file --config <file>, else QUADER_CONFIG_FILE, else /etc/quader/quader.yaml |
over the defaults; a file you name must exist |
Environment variables QUADER_<KEY PATH> |
over the file |
The flags --role and --log-level |
highest |
With the chart, the value config becomes the ConfigMap <fullname>-config, mounted as /etc/quader/quader.yaml in every pod and in
the migration Job; variables go into extraEnv (or a role's own extraEnv). Helm configuration on a screen means these values, and
a key under config is a key of the file.
The chart sets some keys itself and fails the render when config sets them: the paths of every mounted Secret, storage.spool.dir,
server.tls and server.ops_tls (from tls), server.endpoints (from endpoints). Repositories, users, tokens, policies, exposure
rules and the settings of the admin area are data in PostgreSQL, not configuration.
Environment variables
A key's variable is QUADER_ and its path in upper case with dots as underscores: log.level is QUADER_LOG_LEVEL. A list or a map
takes JSON: QUADER_SERVER_TRUSTED_PROXIES='["10.244.3.17"]' (example). A QUADER_ variable that is no key stops the start and
names the closest one; the chart's own (QUADER_POD_NAME, QUADER_POOL_NAME and a few more) are reserved. A key that holds a secret
ends in _file and takes a path, never the value; the chart fills it from the Secret named under secrets.
Validation at start-up
Every command validates the file and the environment first and reports every problem at once: an unknown key with its line and the
closest valid one, a wrong type or range, a rule across keys. An invalid configuration starts no replica. With the chart's default
migrations.mode: hook the migration Job loads the file first, so a misspelt key stops helm install or helm upgrade at the Job,
before a Deployment changes; the chart's own values are checked by its schema.
quader admin config validate --config quader.yaml # every key, its value and source
quader admin config validate --config quader.yaml --format json
What needs a restart and what applies live
The file and the environment are read once, at start; the chart rolls the pods when the rendered quader.yaml or the list of key-ring
files changes. Files that hold credentials and certificates are read again while Quader runs, so a rotated Secret needs no restart.
| Change | Takes effect |
|---|---|
A key of quader.yaml or a variable |
At the next start; the chart rolls the pods |
The key ring (secrets.encryption) |
At the next start |
| Listener certificates and client CAs | Within reload_interval once the kubelet updated the mount (TLS and certificates) |
| PostgreSQL, Valkey and object-store credentials and CA files, the OIDC client secret, the metrics token | At the next connection or use |
| The break-glass password | Within auth.break_glass.check_interval; its sessions end |
| A setting of Admin area › Settings | On every replica within auth.revocation_bound |
Settings in the UI versus the configuration file
Admin area › Settings › Authentication holds settings stored in PostgreSQL, bounded by the file: a token lifetime saved there may
not exceed auth.tokens.pat.max_ttl or auth.tokens.sat.max_ttl, and until one is saved the file's value applies
(Tokens). Its read-only section Status shows what only the Helm configuration changes: the identity providers, the
break-glass account, sessions and clients.
Admin area › Settings › General holds the default and the restricted visibility levels (Permissions) and the time format. An endpoint's listener, hosts and credentials are configuration, its exposure rules data (Endpoints and exposure).
Imprint and privacy notice
Where people outside your company reach Quader you may have to name yourself and say what it records about visitors. Quader serves both pages from Markdown in the values; you answer for their text.
config:
ui:
legal:
imprint:
en: |
Example Operations GmbH\
Musterstraße 1\
12345 Berlin
Contact: <legal@example.com>
de: |
…
privacy:
de: |
## Verantwortlicher
…
- Every screen, the sign-in screen included, then links Imprint and Privacy notice, at
/ui/en/legal/imprintand/ui/en/legal/privacy, readable without signing in. Start the text below the page's own heading. - A language without its own text shows the other's, with a line that says so; a page with no text has no link.
- The text is rendered like a README: links (
https,http,mailto), tables and line breaks stay; scripts, styles and images do not load. - A change rolls the pods; open windows show it within half a minute. A Bastion shows the texts of its own chart (Bastion).
Behind a transaction-mode pooler
With database.pooler.mode: transaction the installation provides what the chart cannot:
| What | Why |
|---|---|
ALTER ROLE <login> IN DATABASE <db> SET statement_timeout, lock_timeout, idle_in_transaction_session_timeout, client_connection_check_interval, search_path to the values of the configuration |
Quader cannot set them per session through the pooler and refuses to start, naming the setting, when one differs |
database.session_host (direct) and database.control_host (a second pooler) |
Session locks and leases need a session; a verify-full certificate must name the poolers' Services |
| Two instances per pooler on different nodes, a PodDisruptionBudget | A drain leaves one instance |
A preStop sleep on the pooler of at least max_conn_lifetime + max_conn_lifetime_jitter + health_check_period (390 s with 5m, 1m, 30s), a longer grace period |
The CloudNativePG pooler drops its clients on SIGTERM |
PgBouncer's server_login_retry: "1" |
At the default 15 a PostgreSQL switchover leaves about 30 s without a database (26.7 s measured); at 1 a few seconds |
PgBouncer's server_connect_timeout: "5" |
At the default 15 an unanswered connect during a switchover outlasts the 20 s grace of the replicas |