<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Administration and operations on InfraBuffet User Guide</title><link>https://infrabuffet.pages.dev/guide/administration/</link><description>Recent content in Administration and operations on InfraBuffet User Guide</description><generator>Hugo</generator><language>en</language><atom:link href="https://infrabuffet.pages.dev/guide/administration/index.xml" rel="self" type="application/rss+xml"/><item><title>Production deployment</title><link>https://infrabuffet.pages.dev/guide/administration/deployment/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/administration/deployment/</guid><description>&lt;h1 id="deployment"&gt;Deployment&lt;a class="anchor" href="#deployment" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;InfraBuffet consists of two kinds of processes sharing one PostgreSQL database:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;web&lt;/strong&gt; serves the UI and the API, and schedules jobs;&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;worker&lt;/strong&gt; picks up jobs from the database and runs Terraform.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Both are the same &lt;code&gt;ibf&lt;/code&gt; binary, which you can download from the&#10;&lt;a href="https://github.com/amyasnikov/ibf/releases/latest"&gt;GitHub releases page&lt;/a&gt;.&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="../../../images/deployment-topology.svg"&#10;&#9;&#9;&#9;alt="Load balancer in front of several web processes; web and worker processes connect to PostgreSQL; each worker runs Terraform"&gt;&#10;&lt;/figure&gt;&#10;&#10;&lt;p&gt;Web and worker processes keep no local state, so you can run as many of each as you need. Workers must have&#10;the Terraform binary installed; see &lt;a href="#worker-environment"&gt;worker environment&lt;/a&gt; for requirements.&lt;/p&gt;</description></item><item><title>Configuration reference</title><link>https://infrabuffet.pages.dev/guide/administration/configuration/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/administration/configuration/</guid><description>&lt;h1 id="configuration-reference"&gt;Configuration reference&lt;a class="anchor" href="#configuration-reference" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;Process configuration comes from CLI flags and explicitly bound environment variables. LDAP configuration is stored&#10;in PostgreSQL and managed through application settings. There is no CLI configuration-file loader or automatic&#10;&lt;code&gt;.env&lt;/code&gt; loading in the application.&lt;/p&gt;&#10;&lt;h2 id="commands-and-flags"&gt;Commands and flags&lt;a class="anchor" href="#commands-and-flags" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Run &lt;code&gt;./ibf &amp;lt;command&amp;gt; --help&lt;/code&gt; to see the flags of any command.&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Command&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Description&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Flags&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;run&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Start the web server and the worker in one process. Does not apply migrations.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;--bind&lt;/code&gt;, &lt;code&gt;--maxparallel&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;runweb&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Start the web server only.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;--bind&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;runworker&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Start the worker only.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;--maxparallel&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;migrate&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Manage migrations: &lt;code&gt;up&lt;/code&gt;, &lt;code&gt;up-by-one&lt;/code&gt;, &lt;code&gt;up-to&lt;/code&gt;, &lt;code&gt;down&lt;/code&gt;, &lt;code&gt;down-to&lt;/code&gt;, &lt;code&gt;redo&lt;/code&gt;, &lt;code&gt;reset&lt;/code&gt;, &lt;code&gt;status&lt;/code&gt;.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;addsuperuser&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Create a superuser; prompts for missing values.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;--username&lt;/code&gt; &lt;code&gt;--email&lt;/code&gt; &lt;code&gt;--password&lt;/code&gt; &lt;code&gt;--migrate&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Flag&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Default&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Description&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;--dburl&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;PostgreSQL connection URL. Accepted by every command; &lt;code&gt;IBF_DBURL&lt;/code&gt; is the alternative.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;--bind&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;127.0.0.1:8009&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Host and port the web server listens on.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;--maxparallel&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;100&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Maximum concurrent jobs of one worker process. Must be positive.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;--username&lt;/code&gt;,&lt;br&gt;&#10;&lt;code&gt;--email&lt;/code&gt;,&lt;br&gt;&#10;&lt;code&gt;--password&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Superuser credentials. Prefer the password prompt: a flag leaks it.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;--migrate&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;off&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Apply pending migrations before creating the superuser.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;h2 id="environment-variables"&gt;Environment variables&lt;a class="anchor" href="#environment-variables" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Variable&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Description&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;IBF_DBURL&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;PostgreSQL connection URL. The &lt;code&gt;--dburl&lt;/code&gt; flag takes precedence. Required.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;IBF_CORS_ORIGINS&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Comma-separated list of browser origins allowed to call the API. CORS is disabled when unset.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;IBF_PUBLIC_URL&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Public web UI URL for links that MCP returns. Derived from request headers when unset.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;IBF_DEBUG&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Enables debug mode of the web server.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;TMPDIR&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Directory for temporary files such as materialized modules and Terraform working directories.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;Example:&lt;/p&gt;</description></item><item><title>Authentication and LDAP</title><link>https://infrabuffet.pages.dev/guide/administration/authentication/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/administration/authentication/</guid><description>&lt;h1 id="authentication-and-ldap"&gt;Authentication and LDAP&lt;a class="anchor" href="#authentication-and-ldap" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;InfraBuffet supports local accounts and LDAP password authentication. Browser login creates an HTTP-only session cookie;&#10;API integrations can use &lt;a href="../../advanced/api-access/"&gt;API tokens&lt;/a&gt;. Team membership determines ownership and scope&#10;access. With LDAP enabled, teams are also created from directory groups when users sign in.&lt;/p&gt;&#10;&lt;h2 id="local-accounts-and-sessions"&gt;Local accounts and sessions&lt;a class="anchor" href="#local-accounts-and-sessions" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Create the first administrator with &lt;code&gt;addsuperuser&lt;/code&gt;. Superusers can create local users, manage teams and memberships,&#10;and change another user&amp;rsquo;s credentials or superuser status. Users can update their own email and password.&#10;Local passwords must contain at least eight characters and are stored as bcrypt hashes.&lt;/p&gt;</description></item><item><title>Backup and restore</title><link>https://infrabuffet.pages.dev/guide/administration/backup/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/administration/backup/</guid><description>&lt;h1 id="backup-and-recovery"&gt;Backup and recovery&lt;a class="anchor" href="#backup-and-recovery" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;PostgreSQL is the one and only permanent storage used for InfraBuffet data.&#10;Users, teams, credentials/settings, source files, templates, block values, jobs, and each scope&amp;rsquo;s Terraform state live there.&lt;/p&gt;&#10;&lt;h2 id="back-up"&gt;Back up&lt;a class="anchor" href="#back-up" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Keep database backups together with the matching application revision and deployment configuration. Protect archives&#10;as sensitive data: they can contain provider/source credentials, secret block values, and Terraform state.&lt;/p&gt;&#10;&lt;p&gt;For a custom-format database archive, using an already configured private database URL:&lt;/p&gt;</description></item></channel></rss>