Configuration reference

Process configuration comes from CLI flags and explicitly bound environment variables. LDAP configuration is stored in PostgreSQL and managed through application settings. There is no CLI configuration-file loader or automatic .env loading in the application.

Commands and flags

Run ./ibf <command> --help to see the flags of any command.

CommandDescriptionFlags
runStart the web server and the worker in one process. Does not apply migrations.--bind, --maxparallel
runwebStart the web server only.--bind
runworkerStart the worker only.--maxparallel
migrateManage migrations: up, up-by-one, up-to, down, down-to, redo, reset, status.
addsuperuserCreate a superuser; prompts for missing values.--username --email --password --migrate
FlagDefaultDescription
--dburlPostgreSQL connection URL. Accepted by every command; IBF_DBURL is the alternative.
--bind127.0.0.1:8009Host and port the web server listens on.
--maxparallel100Maximum concurrent jobs of one worker process. Must be positive.
--username,
--email,
--password
Superuser credentials. Prefer the password prompt: a flag leaks it.
--migrateoffApply pending migrations before creating the superuser.

Environment variables

VariableDescription
IBF_DBURLPostgreSQL connection URL. The --dburl flag takes precedence. Required.
IBF_CORS_ORIGINSComma-separated list of browser origins allowed to call the API. CORS is disabled when unset.
IBF_PUBLIC_URLPublic web UI URL for links that MCP returns. Derived from request headers when unset.
IBF_DEBUGEnables debug mode of the web server.
TMPDIRDirectory for temporary files such as materialized modules and Terraform working directories.

Example:

export IBF_CORS_ORIGINS='https://portal.example.com,https://tools.example.com'
./ibf runweb --bind 0.0.0.0:8009

IBF_PUBLIC_URL is an http or https URL, optionally with a path prefix, such as https://ibf.example.com. run and runweb refuse to start when it is set to anything else, such as a URL with a query, fragment or credentials. When it is unset, links use the first X-Forwarded-Proto and X-Forwarded-Host values of the MCP request, or its scheme and Host. Set it when a proxy in front of InfraBuffet does not forward those headers.

CORS origins are scheme, host and port only, without a path. When the UI and the API are served from the same origin, no CORS setting is needed. There is no configuration file; the application does not read .env files. Keep the database URL in your secret storage rather than in a committed command.

Terraform execution

An infrastructure stores its own executable path, provider versions, and scope deduplicator length. Those are application records, not global CLI flags. Every worker needs the selected executable and access to the services its providers manage.

The default Terraform adapter forwards HOME, PATH, and TMPDIR when present and supplies an InfraBuffet-managed TF_PLUGIN_CACHE_DIR under the temporary directory. It does not forward arbitrary AWS_*, TF_VAR_*, proxy, or other worker environment variables. Setting those on the worker alone does not make them available to Terraform. Use supported provider configuration/authentication and verify it in a test plan.

Stored application settings

Superusers manage LDAP under Settings UI menu item.

See authentication and LDAP for the LDAP fields, filter syntax, and synchronization behavior.