<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>InfraBuffet: infrastructure self-service on InfraBuffet User Guide</title><link>https://infrabuffet.pages.dev/</link><description>Recent content in InfraBuffet: infrastructure self-service on InfraBuffet User Guide</description><generator>Hugo</generator><language>en</language><atom:link href="https://infrabuffet.pages.dev/index.xml" rel="self" type="application/rss+xml"/><item><title>Block validation</title><link>https://infrabuffet.pages.dev/guide/advanced/block-validation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/advanced/block-validation/</guid><description>&lt;h1 id="block-validation-with-javascript"&gt;Block validation with JavaScript&lt;a class="anchor" href="#block-validation-with-javascript" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;A block template can run a JavaScript validator. InfraBuffet calls it when someone creates or edits a block, after the&#10;normal checks on names, field types, and references. Use it for rules a form schema cannot express, and to compute&#10;values the module needs.&lt;/p&gt;&#10;&lt;p&gt;The validator does not run when someone calculates a diff or applies a plan.&lt;/p&gt;&#10;&lt;h2 id="what-runs-in-order"&gt;What runs, in order&lt;a class="anchor" href="#what-runs-in-order" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Name and field checks: required fields, types, bounds, choices, and regular expressions.&lt;/li&gt;&#10;&lt;li&gt;Reference checks: a selected provider or block must exist in the infrastructure or scope.&lt;/li&gt;&#10;&lt;li&gt;Your &lt;code&gt;validate&lt;/code&gt; function.&lt;/li&gt;&#10;&lt;li&gt;Field checks again, so values your function sets are checked too.&lt;/li&gt;&#10;&lt;li&gt;Reference type, owner-managed dependency, and circular dependency checks.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="write-the-function"&gt;Write the function&lt;a class="anchor" href="#write-the-function" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Define a top-level &lt;code&gt;validate(block, context)&lt;/code&gt; function. It runs synchronously.&lt;/p&gt;</description></item><item><title>Infrastructures</title><link>https://infrabuffet.pages.dev/guide/preparing-infrastructure/infrastructures/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/preparing-infrastructure/infrastructures/</guid><description>&lt;h1 id="infrastructures"&gt;Infrastructures&lt;a class="anchor" href="#infrastructures" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;An infrastructure groups provider types, configured providers, block templates, and scopes under one owning team.&#10;Each scope has its own Terraform state; the infrastructure supplies the shared configuration.&lt;/p&gt;&#10;&lt;h2 id="create-an-infrastructure"&gt;Create an infrastructure&lt;a class="anchor" href="#create-an-infrastructure" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Open &lt;strong&gt;Provide&lt;/strong&gt;, create an infrastructure, and choose its owning team. Your team must have permission to create&#10;infrastructures; a superuser can manage this setting. Membership in the owning team grants owner access.&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;Setting&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Meaning&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;Name&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Display name, 1–255 characters.&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;Description&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Optional explanation of the infrastructure&amp;rsquo;s purpose.&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;Type&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;terraform&lt;/code&gt; for Terraform or &lt;code&gt;opentofu&lt;/code&gt; for OpenTofu.&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;Executable&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Normalized absolute POSIX path, such as &lt;code&gt;/usr/bin/terraform&lt;/code&gt; or &lt;code&gt;/usr/bin/tofu&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;Deduplicator length&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Scope deduplicators must have exactly this many characters; allowed length is 1–5.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;See &lt;a href="https://infrabuffet.pages.dev/guide/advanced/deduplicators/"&gt;deduplicators&lt;/a&gt; for how modules avoid resource-name collisions.&lt;/p&gt;</description></item><item><title>Installation</title><link>https://infrabuffet.pages.dev/guide/getting-started/installation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/getting-started/installation/</guid><description>&lt;h1 id="installation"&gt;Installation&lt;a class="anchor" href="#installation" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;InfraBuffet has two external dependencies:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;PostgreSQL 17+&lt;/li&gt;&#10;&lt;li&gt;Terraform or OpenTofu. Install the &lt;code&gt;terraform&lt;/code&gt; or &lt;code&gt;tofu&lt;/code&gt; binary on the same machine as the InfraBuffet worker.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;The worker requires a Terraform-compatible CLI that supports JSON version output through &lt;code&gt;version -json&lt;/code&gt;. All&#10;OpenTofu releases provide this interface. Configure the binary&amp;rsquo;s absolute path when creating an infrastructure.&lt;/p&gt;&#10;&lt;p&gt;Download &lt;code&gt;ibf-linux-amd64.zip&lt;/code&gt; for 64-bit x86 Linux or &lt;code&gt;ibf-darwin-arm64.zip&lt;/code&gt; for Apple Silicon macOS from the&#10;&lt;a href="https://github.com/amyasnikov/ibf/releases/latest"&gt;GitHub releases page&lt;/a&gt;. Extract the archive to get the &lt;code&gt;ibf&lt;/code&gt; binary.&lt;/p&gt;</description></item><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>Provision → diff → apply</title><link>https://infrabuffet.pages.dev/guide/using-infrastructure/provision-diff-apply/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/using-infrastructure/provision-diff-apply/</guid><description>&lt;h1 id="provision--diff--apply"&gt;Provision → diff → apply&lt;a class="anchor" href="#provision--diff--apply" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;InfraBuffet separates recording desired configuration from changing infrastructure. An owner first prepares an&#10;infrastructure, scope, providers, and templates; an owner or a member of the scope&amp;rsquo;s consumer team then uses them.&lt;/p&gt;&#10;&lt;h2 id="1-provision-a-block"&gt;1. Provision a block&lt;a class="anchor" href="#1-provision-a-block" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Open your scope through &lt;strong&gt;Consume&lt;/strong&gt; tab on the home page, choose &lt;strong&gt;Create block&lt;/strong&gt;, select a template, and fill in its&#10;form. Save the block. InfraBuffet checks its name, field types and constraints, references, custom validation, and&#10;dependency cycles.&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>Data sources</title><link>https://infrabuffet.pages.dev/guide/preparing-infrastructure/data-sources/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/preparing-infrastructure/data-sources/</guid><description>&lt;h1 id="data-sources-and-files"&gt;Data sources and files&lt;a class="anchor" href="#data-sources-and-files" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;A data source stores the module and validator files used by block templates. It belongs to a team. Templates can use&#10;module and validator files from different data sources, but they must belong to the infrastructure&amp;rsquo;s owning team.&lt;/p&gt;&#10;&lt;p&gt;The two source types are &lt;strong&gt;Local&lt;/strong&gt;, whose files you edit in InfraBuffet, and &lt;strong&gt;Git&lt;/strong&gt;, whose files are imported from a&#10;repository. Jobs use the stored files; a Git commit does not affect a job until the source is synchronized.&lt;/p&gt;</description></item><item><title>Quick start: your first infrastructure change</title><link>https://infrabuffet.pages.dev/guide/getting-started/quick-start/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/getting-started/quick-start/</guid><description>&lt;h1 id="quick-start-your-first-infrastructure-change"&gt;Quick start: your first infrastructure change&lt;a class="anchor" href="#quick-start-your-first-infrastructure-change" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;The scenario: the platform team manages the company&amp;rsquo;s DNS server. Application teams need DNS records for their apps.&lt;/p&gt;&#10;&lt;p&gt;In this guide, the platform team uses InfraBuffet to turn its DNS server into a self-service tool. Application teams&#10;can create and update DNS records for their apps without asking the platform team each time. The platform team&#10;sets the rules and stays in control of what teams can provision.&lt;/p&gt;</description></item><item><title>Validation API client reference</title><link>https://infrabuffet.pages.dev/guide/advanced/validation-api-client/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/advanced/validation-api-client/</guid><description>&lt;h1 id="validation-api-client-reference"&gt;Validation API client reference&lt;a class="anchor" href="#validation-api-client-reference" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;Inside &lt;code&gt;validate(block, context)&lt;/code&gt;, &lt;code&gt;context.client.get(path, query)&lt;/code&gt; reads InfraBuffet records.&#10;It is not an HTTP client.&#10;It needs no API token, and it can only read the routes listed below.&lt;/p&gt;&#10;&lt;p&gt;The client does not check the permissions of the user who saves the block. Inside the current infrastructure it can&#10;read everything in the tables below. It can also read any scope by ID, including that scope&amp;rsquo;s Terraform state.&#10;Treat validator code as trusted with that access.&lt;/p&gt;</description></item><item><title>Working with blocks</title><link>https://infrabuffet.pages.dev/guide/using-infrastructure/blocks/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/using-infrastructure/blocks/</guid><description>&lt;h1 id="working-with-blocks"&gt;Working with blocks&lt;a class="anchor" href="#working-with-blocks" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;A block is one instance of a block template in a scope. Its values describe desired configuration; its template&#10;supplies the module, form, and validation. External resources are changed through &lt;a href="../provision-diff-apply/"&gt;diff and&#10;apply&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="create-and-edit"&gt;Create and edit&lt;a class="anchor" href="#create-and-edit" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Choose &lt;strong&gt;Create block&lt;/strong&gt;, select a template, enter a name, and fill in the generated fields. The name accepts&#10;1–100 characters, beginning with a letter or &lt;code&gt;_&lt;/code&gt;, followed by letters, digits, &lt;code&gt;_&lt;/code&gt;, or &lt;code&gt;-&lt;/code&gt;.&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>Block filters</title><link>https://infrabuffet.pages.dev/guide/using-infrastructure/filters/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/using-infrastructure/filters/</guid><description>&lt;h1 id="block-filters"&gt;Block filters&lt;a class="anchor" href="#block-filters" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;Filters help you find the blocks you need in a scope&amp;rsquo;s block list, even when the list is long. Narrow it by name,&#10;template, status, owner management, or a field value, then select the matching rows to plan changes for just those&#10;blocks.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Saved filters&lt;/strong&gt; keep a filter you use often, so you can return to it or share it with your team.&lt;/p&gt;&#10;&lt;h2 id="open-the-filter-dialog"&gt;Open the filter dialog&lt;a class="anchor" href="#open-the-filter-dialog" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Open the block filter dialog from the block list of a scope. Set the fields you need and choose &lt;strong&gt;Apply&lt;/strong&gt; to update the&#10;list. &lt;strong&gt;Cancel&lt;/strong&gt; closes the dialog without changes. &lt;strong&gt;Clear&lt;/strong&gt; resets every field and applies the empty filter at once.&lt;/p&gt;</description></item><item><title>Core concepts and entity relationships</title><link>https://infrabuffet.pages.dev/guide/getting-started/concepts/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/getting-started/concepts/</guid><description>&lt;h1 id="core-concepts-and-entity-relationships"&gt;Core concepts and entity relationships&lt;a class="anchor" href="#core-concepts-and-entity-relationships" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;InfraBuffet helps infrastructure owners build a self-service portal for the infrastructure they manage. Owners decide&#10;what teams can provision and set the forms and validation rules. Consumers use that portal to provision and manage&#10;resources for their applications, within the boundaries the owners define.&lt;/p&gt;&#10;&lt;p&gt;Unlike many other projects that let you bind a script to an UI form, InfraBuffet manages the full resource lifecycle,&#10;letting users review and apply changes to create, update, and remove resources.&lt;/p&gt;</description></item><item><title>Deduplicators</title><link>https://infrabuffet.pages.dev/guide/advanced/deduplicators/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/advanced/deduplicators/</guid><description>&lt;h1 id="deduplicators"&gt;Deduplicators&lt;a class="anchor" href="#deduplicators" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;An infrastructure usually has several scopes, each managed by a different team. Their modules often create&#10;resources in a shared namespace: DNS names, bucket names, database names. Each scope has its own Terraform state, and a&#10;state only knows its own resources, so Terraform cannot stop two scopes from claiming the same name.&lt;/p&gt;&#10;&lt;p&gt;A deduplicator is a short value that every scope has and that is unique within the infrastructure. Combined with the&#10;block name, it gives each block a name that no other block in the infrastructure can have.&lt;/p&gt;</description></item><item><title>Provider types and providers</title><link>https://infrabuffet.pages.dev/guide/preparing-infrastructure/providers/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/preparing-infrastructure/providers/</guid><description>&lt;h1 id="provider-types-and-providers"&gt;Provider types and providers&lt;a class="anchor" href="#provider-types-and-providers" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;A &lt;strong&gt;provider type&lt;/strong&gt; identifies a Terraform provider plugin and its configuration schema. A &lt;strong&gt;provider&lt;/strong&gt; supplies&#10;configuration values for one instance of that type. Both belong to an infrastructure. For example, one &lt;code&gt;aws&lt;/code&gt; provider&#10;type can have separate configured providers for different accounts or regions.&lt;/p&gt;&#10;&lt;h2 id="create-and-synchronize-a-provider-type"&gt;Create and synchronize a provider type&lt;a class="anchor" href="#create-and-synchronize-a-provider-type" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;On the infrastructure, create a provider type with these settings:&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;Setting&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Example&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Meaning&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;Name&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;random&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Terraform local provider name used by modules.&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;Link&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;hashicorp/random&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Terraform provider source address.&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;Version&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;3.6.3&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Provider version used during initialization.&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;Secret overrides&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;/token&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Optional non-root JSON Pointers marking configuration values as secrets.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;Names start with a lowercase letter and contain only lowercase letters, digits, and hyphens, up to 255 characters.&#10;Use a concrete version; the version field accepts letters, digits, &lt;code&gt;_&lt;/code&gt;, &lt;code&gt;.&lt;/code&gt;, and &lt;code&gt;-&lt;/code&gt;, not version constraint syntax&#10;such as &lt;code&gt;&amp;gt;= 3.0&lt;/code&gt;. The source cannot contain spaces.&lt;/p&gt;</description></item><item><title>Blocks with multiple providers</title><link>https://infrabuffet.pages.dev/guide/advanced/multiple-providers/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/advanced/multiple-providers/</guid><description>&lt;h1 id="blocks-with-multiple-providers"&gt;Blocks with multiple providers&lt;a class="anchor" href="#blocks-with-multiple-providers" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;A module may need more than one provider configuration, for example two regions or two different providers. A template&#10;can declare one provider field for each. Each field binds a configured provider to a provider name inside the module,&#10;and optionally to an alias.&lt;/p&gt;&#10;&lt;h2 id="example-two-configurations-of-one-provider-type"&gt;Example: two configurations of one provider type&lt;a class="anchor" href="#example-two-configurations-of-one-provider-type" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;This example uses the &lt;code&gt;random&lt;/code&gt; provider, which needs no credentials. Create a provider type &lt;code&gt;random&lt;/code&gt; with source&#10;&lt;code&gt;hashicorp/random&lt;/code&gt; and version &lt;code&gt;3.6.3&lt;/code&gt;. Wait for its schema synchronization job to finish, then create two providers,&#10;&lt;code&gt;random-east&lt;/code&gt; and &lt;code&gt;random-west&lt;/code&gt;, with empty configuration objects.&lt;/p&gt;</description></item><item><title>Jobs and results</title><link>https://infrabuffet.pages.dev/guide/using-infrastructure/jobs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/using-infrastructure/jobs/</guid><description>&lt;h1 id="jobs-and-results"&gt;Jobs and results&lt;a class="anchor" href="#jobs-and-results" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;Jobs run background work while the browser remains available. Saving a form is usually immediate; synchronizing&#10;files or schemas, calculating diffs, applying plans, and importing resources use jobs and require a worker.&lt;/p&gt;&#10;&lt;h2 id="workflows"&gt;Workflows&lt;a class="anchor" href="#workflows" 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;Workflow&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Operation&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;datasource_sync&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Import Git source files.&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;provider_type_schema_sync&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Obtain a Terraform provider configuration schema.&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;calc_diff&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Calculate proposed scope or selected-block changes.&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;apply_planned&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Verify and apply a previously reviewed diff.&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;calc_import&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Discover resource addresses for selected new blocks.&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;do_import&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Import supplied resource IDs into scope state.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;Follow the job link or the workflow dialog to inspect status, logs, errors, and operation-specific results.&#10;Closing a dialog does not cancel its job. Reopen &lt;strong&gt;View active job&lt;/strong&gt; to continue monitoring a scope operation.&lt;/p&gt;</description></item><item><title>Scopes and access grants</title><link>https://infrabuffet.pages.dev/guide/preparing-infrastructure/scopes/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/preparing-infrastructure/scopes/</guid><description>&lt;h1 id="scopes-and-access-grants"&gt;Scopes and access grants&lt;a class="anchor" href="#scopes-and-access-grants" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;A scope belongs to one infrastructure, contains blocks, and keeps a separate Terraform state. It can be granted to&#10;one consumer team. The infrastructure&amp;rsquo;s owning team continues to manage the scope and can also use its blocks.&lt;/p&gt;&#10;&lt;h2 id="create-a-scope"&gt;Create a scope&lt;a class="anchor" href="#create-a-scope" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Open the infrastructure&amp;rsquo;s scopes and create a scope with:&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;Setting&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Meaning&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;Name&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;1–255 characters; starts with a letter or &lt;code&gt;_&lt;/code&gt;, then letters, digits, &lt;code&gt;_&lt;/code&gt;, or &lt;code&gt;-&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;Deduplicator&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Exactly the number of characters configured on the infrastructure.&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;Granted to&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Optional consumer team. Without a grant, consumers receive no access through this scope.&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;Default provider&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Optional configured provider belonging to the same infrastructure.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;A deduplicator must be unique among the infrastructure&amp;rsquo;s scopes.&#10;Modules can include it in resource names to avoid collisions between scopes. See&#10;&lt;a href="https://infrabuffet.pages.dev/guide/advanced/deduplicators/"&gt;deduplicators&lt;/a&gt; for the fields involved and a complete example.&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><item><title>Block templates and modules</title><link>https://infrabuffet.pages.dev/guide/preparing-infrastructure/block-templates/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/preparing-infrastructure/block-templates/</guid><description>&lt;h1 id="block-templates"&gt;Block templates&lt;a class="anchor" href="#block-templates" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;A block template combines a Terraform module, a form schema, and optional JavaScript validation. It belongs to an&#10;infrastructure and is available to that infrastructure&amp;rsquo;s scopes. Each block is an instance of one template.&lt;/p&gt;&#10;&lt;h2 id="create-a-template"&gt;Create a template&lt;a class="anchor" href="#create-a-template" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;On the infrastructure, create a block template and configure:&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;Setting&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Meaning&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;Name&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;1–100 characters; starts with a letter or &lt;code&gt;_&lt;/code&gt;, then letters, digits, or &lt;code&gt;_&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;IaC data source&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Source owned by the infrastructure&amp;rsquo;s owning team.&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;IaC path&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Module directory relative to the source, or &lt;code&gt;.&lt;/code&gt; for its root.&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;Form fields&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Array describing the block form and module inputs.&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;Validator&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Optional JavaScript file and user context.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;For example, choose &lt;code&gt;platform-modules&lt;/code&gt;, module path &lt;code&gt;modules/network&lt;/code&gt;, and name &lt;code&gt;network&lt;/code&gt;. Paths must remain inside&#10;the source. Saving a template does not initialize or plan its Terraform module, so a correct-looking template can&#10;still fail when a consumer calculates a diff.&lt;/p&gt;</description></item><item><title>Blocks that depend on other blocks</title><link>https://infrabuffet.pages.dev/guide/advanced/block-dependencies/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/advanced/block-dependencies/</guid><description>&lt;h1 id="blocks-that-depend-on-other-blocks"&gt;Blocks that depend on other blocks&lt;a class="anchor" href="#blocks-that-depend-on-other-blocks" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;A &lt;code&gt;block&lt;/code&gt; field lets one block use another block&amp;rsquo;s output. You select a block in the same scope. InfraBuffet passes the&#10;selected module&amp;rsquo;s output as an input, and Terraform orders the work. You do not have to apply blocks in a particular&#10;sequence.&lt;/p&gt;&#10;&lt;h2 id="example-modules"&gt;Example modules&lt;a class="anchor" href="#example-modules" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;These examples use &lt;code&gt;terraform_data&lt;/code&gt;, which is built into Terraform 1.4 and later. They store values in state and create&#10;no cloud resources, so you can try them safely.&lt;/p&gt;</description></item><item><title>Changelogs</title><link>https://infrabuffet.pages.dev/guide/using-infrastructure/changelog/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/using-infrastructure/changelog/</guid><description>&lt;h1 id="changelogs"&gt;Changelogs&lt;a class="anchor" href="#changelogs" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;A changelog records each saved change to infrastructure: who made it, when, what changed, and which workflow ran.&#10;Use it to answer questions like &amp;ldquo;who changed this VLAN?&amp;rdquo; or &amp;ldquo;which apply changed this scope?&amp;rdquo;.&lt;/p&gt;&#10;&lt;p&gt;Every entity page has its own changelog. Superusers can search the full history in the &lt;strong&gt;Audit Log&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;p&gt;The changelog keeps entries after an object is renamed or deleted. It never shows secret values.&lt;/p&gt;&#10;&lt;h2 id="entry-types"&gt;Entry types&lt;a class="anchor" href="#entry-types" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Each entry has one action:&lt;/p&gt;</description></item><item><title>API access and tokens</title><link>https://infrabuffet.pages.dev/guide/advanced/api-access/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/advanced/api-access/</guid><description>&lt;h1 id="api-access-and-tokens"&gt;API access and tokens&lt;a class="anchor" href="#api-access-and-tokens" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;Everything you can do in the UI is also available through the REST API, rooted at &lt;code&gt;/api&lt;/code&gt;. Use it to script&#10;routine work or to connect InfraBuffet to CI pipelines and other tools. Your instance serves an interactive API&#10;reference at &lt;code&gt;/api/swagger/&lt;/code&gt; and the machine-readable specification at &lt;code&gt;/api/swagger/openapi.json&lt;/code&gt;. Treat them as&#10;the source of truth for routes, request fields, and response schemas.&lt;/p&gt;&#10;&lt;h2 id="get-a-token"&gt;Get a token&lt;a class="anchor" href="#get-a-token" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Scripts authenticate with an API token. To create one:&lt;/p&gt;</description></item><item><title>Form field reference</title><link>https://infrabuffet.pages.dev/guide/preparing-infrastructure/form-fields/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/preparing-infrastructure/form-fields/</guid><description>&lt;h1 id="form-fields-reference"&gt;Form fields reference&lt;a class="anchor" href="#form-fields-reference" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;Form fields define what consumers see when they create or edit a block: text inputs, choices, numbers, and selectors&#10;for providers or other blocks. Configure them in the &lt;strong&gt;Form fields&lt;/strong&gt; section when creating or editing a block template.&lt;/p&gt;&#10;&lt;p&gt;Choose &lt;strong&gt;Add field&lt;/strong&gt;, set its &lt;strong&gt;Name&lt;/strong&gt;, &lt;strong&gt;Type&lt;/strong&gt;, and &lt;strong&gt;Mode&lt;/strong&gt;, then fill in the options for that type. Use&#10;&lt;strong&gt;Add another field&lt;/strong&gt; for more inputs and the arrow buttons to change their order in the block form.&lt;/p&gt;</description></item><item><title>MCP for AI agents</title><link>https://infrabuffet.pages.dev/guide/advanced/mcp/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/advanced/mcp/</guid><description>&lt;h1 id="mcp-for-ai-agents"&gt;MCP for AI agents&lt;a class="anchor" href="#mcp-for-ai-agents" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;InfraBuffet provides a Model Context Protocol endpoint at &lt;code&gt;/mcp&lt;/code&gt;. MCP clients can discover and use the same protected&#10;infrastructure and administration operations as the REST API without exposing a separate tool for every route.&lt;/p&gt;&#10;&lt;h2 id="create-a-token"&gt;Create a token&lt;a class="anchor" href="#create-a-token" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Create an API token through &lt;strong&gt;API tokens&lt;/strong&gt; in the user menu, as described in &lt;a href="../api-access/"&gt;API access and tokens&lt;/a&gt;.&#10;Copy the secret when it is shown. Any token can discover operations and read data. Changing objects requires the&#10;&lt;code&gt;write&lt;/code&gt; grant; scheduling diffs, imports and syncs or cancelling jobs requires &lt;code&gt;workflows&lt;/code&gt;; applying a reviewed plan&#10;requires &lt;code&gt;apply&lt;/code&gt;. Tokens cannot be created, listed, read, or revoked through MCP.&lt;/p&gt;</description></item><item><title>Permissions reference</title><link>https://infrabuffet.pages.dev/guide/advanced/permissions/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/advanced/permissions/</guid><description>&lt;h1 id="permissions-reference"&gt;Permissions reference&lt;a class="anchor" href="#permissions-reference" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;Find the action you want in the tables below to see who can do it. There is no per-block permission list: access&#10;comes from team membership, infrastructure ownership, and scope grants.&lt;/p&gt;&#10;&lt;h2 id="roles"&gt;Roles&lt;a class="anchor" href="#roles" 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;Role&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;How you get it&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;strong&gt;Superuser&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;A user with superuser status. Bypasses all team checks.&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;strong&gt;Infra owner&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Member of the infrastructure&amp;rsquo;s owning team.&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;strong&gt;Scope consumer&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Member of the team a scope is granted to. Infra owners have this access automatically.&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;strong&gt;Data source owner&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Member of the data source&amp;rsquo;s owning team.&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;strong&gt;Job team member&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Member of a team recorded on the job when it was scheduled.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;A user can belong to several teams. A scope is granted to one consumer team. Data sources used by templates must&#10;belong to the infrastructure&amp;rsquo;s owning team.&lt;/p&gt;</description></item></channel></rss>