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.
| Command | Description | Flags |
|---|---|---|
run | Start the web server and the worker in one process. Does not apply migrations. | --bind, --maxparallel |
runweb | Start the web server only. | --bind |
runworker | Start the worker only. | --maxparallel |
migrate | Manage migrations: up, up-by-one, up-to, down, down-to, redo, reset, status. | |
addsuperuser | Create a superuser; prompts for missing values. | --username --email --password --migrate |
| Flag | Default | Description |
|---|---|---|
--dburl | PostgreSQL connection URL. Accepted by every command; IBF_DBURL is the alternative. | |
--bind | 127.0.0.1:8009 | Host and port the web server listens on. |
--maxparallel | 100 | Maximum concurrent jobs of one worker process. Must be positive. |
--username,--email,--password | Superuser credentials. Prefer the password prompt: a flag leaks it. | |
--migrate | off | Apply pending migrations before creating the superuser. |
Environment variables
| Variable | Description |
|---|---|
IBF_DBURL | PostgreSQL connection URL. The --dburl flag takes precedence. Required. |
IBF_CORS_ORIGINS | Comma-separated list of browser origins allowed to call the API. CORS is disabled when unset. |
IBF_PUBLIC_URL | Public web UI URL for links that MCP returns. Derived from request headers when unset. |
IBF_DEBUG | Enables debug mode of the web server. |
TMPDIR | Directory 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:8009IBF_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.