Version 0.1.0 Generated from the code

Configuration reference

Each key with its type, its range and its forms. The program makes this page from its table of keys.

This page comes from docs/configuration-reference.md in the repository.

This document is the reference of the configuration keys of Pupitre. It is part of section 6 of the specification. The command pupitre print-reference --format markdown generates it from the table of keys in the code. Do not edit it by hand.

Pupitre reads one HCL file. The file is the only source of the configuration. A key whose description gives a default can be absent: the default then applies, and print-config shows the source default. Each other key that applies is necessary, and each key that does not apply is forbidden.

The column Forms uses three letters. V is a value in the file. E is <name>_env, the name of an environment variable. F is <name>_file, the absolute path of a file. Give exactly one form for each key. A secret accepts only E and F.

A duration is a text with one whole number and one unit: ms, s, m or h. A size is a whole number of bytes. An integer is a whole number with no sign and no zero at the start. A text is in double quotes. A list is texts in brackets with commas.

The reference value is the value that the reference files use. It is not a default. Run pupitre print-reference --format hcl --profile local or --profile distributed to get a complete file. The two files hold no command block. The reference value of a key of a command block is a value for the example of 4.32.

Section 6 of the specification gives the checks after the table of keys, the contradictions and the warnings.

Blocks

BlockCountNecessary whenForbidden when
server1alwaysnever
log1alwaysnever
telemetry1alwaysnever
storage1alwaysnever
storage.files0 or 1storage.backend = "files"storage.backend = "postgres"
storage.postgres0 or 1storage.backend = "postgres"storage.backend = "files"
storage.postgres.tls0 or 1storage.postgres.sslmode = "verify-full"storage.postgres.sslmode = "disable"
access1alwaysnever
access.identity0 or 1access.mode = "authzen"access.mode = "open"
access.pdp0 or 1access.mode = "authzen"access.mode = "open"
runner1alwaysnever
limits0 or 1never (the block is optional)never
schema "<id>"0 to 256alwaysnever
playbook "<id>"0 to 256alwaysnever
command "<id>"0 to 256alwaysnever
command "<id>".param "<name>"0 to 16alwaysnever

Block server

The two listeners and the limits of the HTTP server (5.1, 7.10).

KeyType and rangeSecretFormsNecessary whenForbidden whenReference valueDescription
server.listenan IP address and a port in canonical formnoValwaysnever"127.0.0.1:8080" (local), "0.0.0.0:8080" (distributed)The main listener (5.1). The canonical form of an IP address and a port.
server.ops_listenan IP address and a port in canonical formnoValwaysnever"127.0.0.1:9090" (local), "0.0.0.0:9090" (distributed)The ops listener (5.20). Its port is not the port of server.listen.
server.base_patha text of 1 to 128 bytes with no control characternoValwaysnever"/"The prefix of the routes of the main listener (5.2). /, or a path that starts and ends with /. A segment has 1 to 64 characters from A-Z a-z 0-9 . _ ~ - and is not . or ...
server.allowed_hostsa list of 1 to 32 texts, each of 1 to 261 bytes with no space and no control characternoVserver.listen is not a loopback addressneverabsent (local), ["pupitre.example.invalid"] (distributed)The values of the header Host that the main listener serves (7.4). Each entry is a host name, an IPv4 address or an IPv6 address in brackets, with an optional port. An entry with no port matches each port. A request with another Host gets 421 misdirected_request. Absent: the default is localhost, 127.0.0.1, [::1] and the address of server.listen, and it applies only when server.listen is a loopback address.
server.max_connectionsan integer from 16 to 65536noVnever (the key is optional)never1024The most open connections of the main listener. The default is 1024.
server.idle_timeouta duration from 1s to 10mnoVnever (the key is optional)never"75s"Pupitre closes a kept connection that is idle for this time. The default is 75s.
server.shutdown_gracea duration from 5s to 10mnoVnever (the key is optional)never"30s"The longest graceful stop. The default is 30s.
server.header_read_timeouta duration from 1s to 1mnoVnever (the key is optional)never"10s"The longest read of the request line and the headers. The default is 10s.
server.body_read_timeouta duration from 1s to 5mnoVnever (the key is optional)never"30s"The longest read of a body. The default is 30s.
server.max_request_bytesa size in bytes from 65536 to 16777216noVnever (the key is optional)never1048576The largest request body. The default is 1048576.
server.max_inflight_bodiesan integer from 1 to 4096noVnever (the key is optional)never64The most request bodies in flight at one time. The default is 64.
server.max_page_itemsan integer from 1 to 1000noVnever (the key is optional)never200The most items of one list page (5.6). The default is 200.

Block log

The log level (6.26).

KeyType and rangeSecretFormsNecessary whenForbidden whenReference valueDescription
log.level"error", "warn", "info" or "debug"noValwaysnever"info"The lowest level that Pupitre writes (6.26).

Block telemetry

The export of the spans with OTLP (6.29).

KeyType and rangeSecretFormsNecessary whenForbidden whenReference valueDescription
telemetry.enableda booleannoValwaysneverfalseThe value true exports the spans with OTLP (6.29).
telemetry.otlp_endpointa text of 1 to 2048 bytes with no control characternoV, E, Ftelemetry.enabled = truetelemetry.enabled = false"http://otel-collector.example.invalid:4318"A URL with the scheme http or https, a host and an optional port, with no path, query, fragment or user info. Pupitre sends to <endpoint>/v1/traces.
telemetry.ca_filean absolute path of 1 to 4096 bytesnoVtelemetry.enabled = true and an https endpointtelemetry.enabled = false, or an http endpointabsentA PEM file of CA certificates for an https endpoint.
telemetry.service_namea text of 1 to 64 bytes of printable ASCIInoVtelemetry.enabled = truetelemetry.enabled = false"pupitre"The resource attribute service.name.
telemetry.export_intervala duration from 1s to 5mnoVtelemetry.enabled = truetelemetry.enabled = false"15s"The period of the export.
telemetry.max_queued_spansan integer from 1 to 1000000noVnever (the key is optional)telemetry.enabled = false2048The most spans that wait for the export. Above it, a new span is dropped and counted. The default is 2048.

Block storage

The store of the documents, the secrets and the runs (section 2).

KeyType and rangeSecretFormsNecessary whenForbidden whenReference valueDescription
storage.backend"files" or "postgres"noValwaysnever"files" (local), "postgres" (distributed)The backend of the store (section 2).
storage.secret_keya text of 64 to 64 bytes of printable ASCIIyesE, Falwaysneversecret_key_file = "/run/secrets/pupitre/store-key"The key of the store: 64 lower-case hexadecimal characters (2.26). All instances of one store have the same key.

Block storage.files

The backend files: three folders and one writer process (2.31).

KeyType and rangeSecretFormsNecessary whenForbidden whenReference valueDescription
storage.files.pathan absolute path of 1 to 4096 bytesnoValwaysnever"/var/lib/pupitre/data" (local), absent (distributed)The folder of the documents (2.31). It can be a Git checkout.
storage.files.secrets_pathan absolute path of 1 to 4096 bytesnoValwaysnever"/var/lib/pupitre/secrets" (local), absent (distributed)The folder of the secrets, mode 0700, outside the folder of the documents (2.31, 2.34).
storage.files.runs_pathan absolute path of 1 to 4096 bytesnoValwaysnever"/var/lib/pupitre/runs" (local), absent (distributed)The folder of the runs, outside the folder of the documents (2.31, 2.35).
storage.files.rescan_intervala duration from 1s to 1hnoVnever (the key is optional)storage.backend = "postgres""5s"The period of the scan for changes outside Pupitre (2.33). The default is 5s.
storage.files.history_keepan integer from 1 to 10000noVnever (the key is optional)storage.backend = "postgres"100The versions kept for each key, and the events kept for each secret (2.18). The default is 100.

Block storage.postgres

The backend postgres (2.36).

KeyType and rangeSecretFormsNecessary whenForbidden whenReference valueDescription
storage.postgres.hosta DNS name of 1 to 253 bytes, or an IP addressnoValwaysneverabsent (local), "pg.example.invalid" (distributed)The host of the PostgreSQL server.
storage.postgres.portan integer from 1 to 65535noValwaysneverabsent (local), 5432 (distributed)The port of the PostgreSQL server.
storage.postgres.databasea text of 1 to 63 bytes with no control characternoValwaysneverabsent (local), "pupitre" (distributed)The name of the database.
storage.postgres.usera text of 1 to 63 bytes with no control characternoV, E, Falwaysneverabsent (local), user_file = "/run/secrets/pg/username" (distributed)The name of the account.
storage.postgres.passworda text of 1 to 1024 bytesyesE, Falwaysneverabsent (local), password_file = "/run/secrets/pg/password" (distributed)The password of the account.
storage.postgres.sslmode"verify-full" or "disable"noValwaysneverabsent (local), "verify-full" (distributed)The value verify-full checks the certificate and the name.
storage.postgres.max_connectionsan integer from 2 to 64noVnever (the key is optional)storage.backend = "files"8The size of the connection pool (2.37). The default is 8.
storage.postgres.connect_timeouta duration from 1s to 1mnoVnever (the key is optional)storage.backend = "files""5s"The longest wait for a connection (2.37). The default is 5s.
storage.postgres.statement_timeouta duration from 100ms to 1mnoVnever (the key is optional)storage.backend = "files""10s"The longest statement (2.37). The default is 10s.
storage.postgres.poll_intervala duration from 1s to 5mnoVnever (the key is optional)storage.backend = "files""5s"The period of the poll (2.38). The default is 5s.
storage.postgres.history_keepan integer from 1 to 10000noVnever (the key is optional)storage.backend = "files"100The versions kept for each key, and the events kept for each secret (2.18). The default is 100.

Block storage.postgres.tls

The TLS link to PostgreSQL.

KeyType and rangeSecretFormsNecessary whenForbidden whenReference valueDescription
storage.postgres.tls.ca_filean absolute path of 1 to 4096 bytesnoValwaysneverabsent (local), "/run/secrets/pg-ca/ca.crt" (distributed)A PEM file of CA certificates.
storage.postgres.tls.server_namea DNS name of 1 to 253 bytesnoValwaysneverabsent (local), "pg.example.invalid" (distributed)The name that the certificate must hold.

Block access

The access mode (section 3).

KeyType and rangeSecretFormsNecessary whenForbidden whenReference valueDescription
access.mode"open" or "authzen"noValwaysnever"open" (local), "authzen" (distributed)The access mode (3.2). The mode open writes a warning at each start.
access.options_max_questionsan integer from 1 to 10000noVnever (the key is optional)access.mode = "open"200The most questions of one list request or options request (3.15, 3.16). The default is 200.
access.options_page_itemsan integer from 1 to 50noVnever (the key is optional)access.mode = "open"50The most items of one page of the options route (3.16). The default is 50.

Block access.identity

The identity token of the edge (3.4).

KeyType and rangeSecretFormsNecessary whenForbidden whenReference valueDescription
access.identity.headera text of 1 to 64 bytes with no control characternoValwaysneverabsent (local), "X-Identity-Token" (distributed)The name of the header that holds the token: 1 to 64 token characters (RFC 9110). It is not Authorization, Proxy-Authorization, Cookie, Host, Content-Type or Content-Length, in any case.
access.identity.issuera text of 1 to 1024 bytes with no control characternoValwaysneverabsent (local), "https://edge.example.invalid" (distributed)The value that the claim iss must have.
access.identity.audiencea text of 1 to 256 bytes with no control characternoValwaysneverabsent (local), "pupitre" (distributed)The service id (3.6): 1 to 256 bytes of UTF-8.
access.identity.public_keysa text of 1 to 65536 bytesnoV, E, Falwaysneverabsent (local), public_keys_file = "/run/secrets/edge/jwks.json" (distributed)The public keys of the edge: PEM text or a JWK Set with 1 to 16 keys.
access.identity.max_agea duration from 1s to 24hnoValwaysneverabsent (local), "5m" (distributed)The longest life of a token. A whole number of seconds.
access.identity.clock_skewa duration from 0s to 5mnoValwaysneverabsent (local), "1m" (distributed)The skew that applies to iat, exp and nbf. A whole number of seconds.

Block access.pdp

The link to the policy decision point (3.5).

KeyType and rangeSecretFormsNecessary whenForbidden whenReference valueDescription
access.pdp.urla text of 1 to 2048 bytes with no control characternoV, E, Falwaysneverabsent (local), "https://pdp.example.invalid:4182" (distributed)A URL with the scheme http or https, a host, an optional port and an optional path, with no user info, query or fragment.
access.pdp.tokena text of 1 to 4096 bytes with no space and no control characteryesE, Falwaysneverabsent (local), token_file = "/run/secrets/pdp/token" (distributed)The credential of Pupitre at the PDP, sent in Authorization: Bearer.
access.pdp.ca_filean absolute path of 1 to 4096 bytesnoVaccess.pdp.plain_http = falseaccess.pdp.plain_http = true, or access.mode = "open"absent (local), "/run/secrets/pdp/ca.pem" (distributed)A PEM file of CA certificates.
access.pdp.plain_httpa booleannoValwaysneverabsent (local), false (distributed)The value true accepts an http URL, with a warning at start. It must agree with the scheme of access.pdp.url.
access.pdp.timeouta duration from 10ms to 1mnoValwaysneverabsent (local), "500ms" (distributed)The longest wait for the PDP.
access.pdp.cache_ttla duration from 0s to 1hnoValwaysneverabsent (local), "30s" (distributed)The longest life of a kept answer (3.17).
access.pdp.max_connectionsan integer from 1 to 32noValwaysneverabsent (local), 4 (distributed)The most requests to the PDP at one time.
access.pdp.cache_entriesan integer from 1 to 1000000noVnever (the key is optional)access.mode = "open"16384The most kept answers (3.17). The default is 16384.

Block runner

The runs (section 4). The keys of the runner node need runner.execute = true.

KeyType and rangeSecretFormsNecessary whenForbidden whenReference valueDescription
runner.enableda booleannoValwaysnevertrueThe value true serves the runs (section 4). The value false serves no run and publishes no run action (3.3).
runner.executea booleannoVrunner.enabled = truerunner.enabled = falsetrueThe value true makes this instance the runner node (4.1). With the backend files, it is true.
runner.allow_apply_in_open_modea booleannoVaccess.mode = "open" and runner.enabled = trueaccess.mode = "authzen", or runner.enabled = falsefalse (local), absent (distributed)The value true accepts the applies and the commands in the mode open (3.22).
runner.check_max_agea duration from 1m to 24hnoVrunner.enabled = truerunner.enabled = false"30m"The oldest check that an apply can use (4.24).
runner.max_hostsan integer from 1 to 10000noVrunner.enabled = truerunner.enabled = false100The most hosts of one run (3.10). It is also the max of the ceiling max_hosts.
runner.max_queued_runsan integer from 1 to 10000noVnever (the key is optional)runner.enabled = false100The most runs with the status queued (4.5). The default is 100.
runner.work_diran absolute path of 1 to 4096 bytesnoVrunner.enabled = true and runner.execute = truerunner.enabled = false, or runner.execute = false"/var/lib/pupitre/runner"The folder of the runs on the runner node (4.10).
runner.secrets_diran absolute path of 1 to 4096 bytesnoVrunner.enabled = true and runner.execute = truerunner.enabled = false, or runner.execute = false"/dev/shm/pupitre"The folder of the private folders of the runs, on tmpfs or ramfs, mode 0700 (4.13).
runner.ansible_playbookan absolute path of 1 to 4096 bytesnoVrunner.enabled = true and runner.execute = truerunner.enabled = false, or runner.execute = false"/usr/bin/ansible-playbook"The one program that the runner starts (4.17). It MUST be ansible-core 2.19 or later (7.8).
runner.patha text of 1 to 4096 bytes with no space and no control characternoVrunner.enabled = true and runner.execute = truerunner.enabled = false, or runner.execute = false"/usr/local/bin:/usr/bin:/bin"The value of PATH for the child (4.18).
runner.ssh_usera text of 1 to 32 bytes with no space and no control characternoVrunner.enabled = true and runner.execute = truerunner.enabled = false, or runner.execute = false"deploy"The SSH account on the hosts (4.15).
runner.ssh_key_filean absolute path of 1 to 4096 bytesnoVrunner.enabled = true and runner.execute = truerunner.enabled = false, or runner.execute = false"/run/secrets/ssh/id_ed25519"The SSH private key, a file of the user of the process with the mode 0600 or 0400 (7.8).
runner.known_hosts_filean absolute path of 1 to 4096 bytesnoVrunner.enabled = true and runner.execute = truerunner.enabled = false, or runner.execute = false"/run/secrets/ssh/known_hosts"The pinned host keys: one line for each <environment>.<host>, and no other line (4.12, 7.11).
runner.releases_diran absolute path of 1 to 4096 bytesnoVnever (the key is optional)runner.enabled = false, or runner.execute = false"/srv/releases"The local folder of the release files, given to the playbooks as pupitre_releases_dir (4.14). The key is optional and has no default.
runner.run_timeouta duration from 1m to 48hnoVrunner.enabled = true and runner.execute = truerunner.enabled = false, or runner.execute = false"2h"The longest run (4.28).
runner.forksan integer from 1 to 100noVnever (the key is optional)runner.enabled = false, or runner.execute = false5The value of forks of ansible.cfg (4.15). The default is 5.
runner.max_parallel_runsan integer from 1 to 64noVnever (the key is optional)runner.enabled = false, or runner.execute = false1The most runs at one time on the runner node (4.6). The default is 1.
runner.cancel_gracea duration from 1s to 10mnoVnever (the key is optional)runner.enabled = false, or runner.execute = false"30s"The time between SIGTERM and SIGKILL (4.19). The default is 30s.
runner.lease_ttla duration from 5s to 10mnoVnever (the key is optional)runner.enabled = false, or runner.execute = false"30s"The time to live of the leases (4.7, 4.8). The default is 30s.
runner.max_log_bytesa size in bytes from 65536 to 1073741824noVnever (the key is optional)runner.enabled = false, or runner.execute = false16777216The most stored output of one run (4.22). The default is 16777216.
runner.max_eventsan integer from 100 to 10000000noVnever (the key is optional)runner.enabled = false, or runner.execute = false100000The most stored events of one run (4.22). The default is 100000.
runner.max_event_bytesa size in bytes from 1024 to 1048576noVnever (the key is optional)runner.enabled = false, or runner.execute = false65536The longest event line (4.20). The default is 65536.
runner.runs_keepan integer from 10 to 1000000noVnever (the key is optional)runner.enabled = false, or runner.execute = false10000The most final runs that the store keeps (4.31). The default is 10000.

Block limits

The limits of the store (2.42). The block and each key are optional.

KeyType and rangeSecretFormsNecessary whenForbidden whenReference valueDescription
limits.max_environmentsan integer from 1 to 1024noVnever (the key is optional)never64The most environments (2.42). The default is 64.
limits.max_units_per_environmentan integer from 1 to 10000noVnever (the key is optional)never1000The most units of one environment (2.42). The default is 1000.
limits.max_hosts_per_environmentan integer from 1 to 10000noVnever (the key is optional)never1000The most hosts of one environment, and of one unit (2.42). The default is 1000.
limits.max_document_bytesa size in bytes from 4096 to 1048576noVnever (the key is optional)never262144The largest canonical document (2.42). The default is 262144.
limits.max_store_bytesa size in bytes from 1048576 to 17179869184noVnever (the key is optional)never268435456The most canonical bytes of all current documents (2.42). The default is 268435456.

Block schema "<id>"

One schema of a unit: a file of 2.11. The label is the schema id.

KeyType and rangeSecretFormsNecessary whenForbidden whenReference valueDescription
schema "<id>".pathan absolute path of 1 to 4096 bytesnoValwaysnever"/srv/ansible/schemas/relay.json"The schema file (2.11). Pupitre reads it at start.

Block playbook "<id>"

One playbook of the catalog of capabilities (4.2). The label is the playbook id. Only with runner.enabled = true (6.14).

KeyType and rangeSecretFormsNecessary whenForbidden whenReference valueDescription
playbook "<id>".kind"deploy", "render", "status" or "command"noValwaysnever"deploy"The kind of the playbook (4.2, 4.3).
playbook "<id>".pathan absolute path of 1 to 4096 bytesnoValwaysnever"/srv/ansible/playbooks/deploy-relay.yml"The playbook file. The runner node reads it at start and at each run (4.16).

Block command "<id>"

One command (4.32). The label is the command id. Only with runner.enabled = true (6.14). The reference files hold no command block.

KeyType and rangeSecretFormsNecessary whenForbidden whenReference valueDescription
command "<id>".labela text of 1 to 256 bytes with no control characternoValwaysnever"Restart the service"The text of the page: 1 to 64 characters (4.32).
command "<id>".playbooka text of 1 to 63 bytes with no control characternoValwaysnever"restart-service"The id of a block playbook with the kind command (4.32).
command "<id>".target"environment", "unit" or "host"noValwaysnever"unit"The type of the node of a launch (4.32).
command "<id>".checka booleannoValwaysneverfalseThe value true makes an apply need a check of the same snapshot (4.24).

Block command "<id>".param "<name>"

One parameter of a command (4.33). The label is the parameter name.

KeyType and rangeSecretFormsNecessary whenForbidden whenReference valueDescription
command "<id>".param "<name>".labela text of 1 to 256 bytes with no control characternoValwaysnever"Grace period"The label of the form: 1 to 64 characters (4.33).
command "<id>".param "<name>".type"text", "integer", "boolean", "duration" or "choice"noValwaysnever"duration"The type of the parameter (4.33).
command "<id>".param "<name>".requireda booleannoValwaysnevertrueThe value true makes the parameter necessary in a request (4.33).
command "<id>".param "<name>".minan integer from 0 to 9007199254740991noVtype = "text" or type = "integer"another type1The lowest value of an integer, or the fewest characters of a text.
command "<id>".param "<name>".maxan integer from 0 to 9007199254740991noVtype = "text" or type = "integer"another type64The highest value of an integer, or the most characters of a text.
command "<id>".param "<name>".min_durationa duration from 0s to 8760hnoVtype = "duration"another type"1s"The lowest value of a duration.
command "<id>".param "<name>".max_durationa duration from 0s to 8760hnoVtype = "duration"another type"5m"The highest value of a duration.
command "<id>".param "<name>".choicesa list of 1 to 32 texts, each of 1 to 64 bytes with no control characternoVtype = "choice"another type["soft", "hard"]The closed list of a choice, each text one time.