Core concepts and entity relationships

InfraBuffet helps infrastructure owners build a self-service portal for the infrastructure they manage. Owners decide what teams can provision and set the forms and validation rules. Consumers use that portal to provision and manage resources for their applications, within the boundaries the owners define.

Unlike many other projects that let you bind a script to an UI form, InfraBuffet manages the full resource lifecycle, letting users review and apply changes to create, update, and remove resources.

Main entities

EntityPurpose
TeamGroups users. Can own infrastructure and data sources, or receive access to use infrastructure.
Data sourceSupplies files for IaC modules and complex validation. Files are kept locally or synchronized from Git.
Infrastructure (infra)Groups providers, templates, and scopes. Represents infrastructure a team manages.
Provider typeDefines an IaC provider plugin and version. Its schema defines the settings it accepts.
ProviderConfigures a provider type for use. Connects to an external service, cloud or appliance, such as DNS-server or a network switch.
Block templateDefines an item on the self-service menu. Pairs an IaC module with a validated form.
ScopeGives a team a workspace within an infrastructure. Holds its blocks and separate IaC state.
BlockSaves a template’s inputs in a scope. One module instance can manage several resources.
Nested ownership hierarchy and entity references

A team can own several infrastructures and data sources. Each infrastructure shares its providers and templates across its scopes; each scope contains its own blocks. Solid rectangles show containment, and dashed arrows show references or access grants.

Permissions

Access is based on team membership:

  • Owners manage shared infrastructure definitions and grant scopes to consumer teams. They retain access to those scopes.
  • Consumers manage blocks and run diff/apply in granted scopes. They cannot change shared templates or providers.
  • Users can belong to several teams and be owners in one infrastructure and consumers in another.

See the permissions reference for administrative and read-access rules.

Intended configuration, real resources, and state

The saved blocks describe the intended configuration. Creating or editing a block updates that configuration. It does not immediately change the real infrastructure.

A diff runs an IaC plan to compare the intended configuration with the managed infrastructure. An apply runs the reviewed changes. If the underlying infrastructure changes between diff and apply, InfraBuffet stops without applying the changes.

The scope’s IaC state records the resources managed by that scope. InfraBuffet stores it for subsequent jobs. State tracks managed resources; saved blocks define what you want.

A block stays with its resources throughout their lifecycle: save it and review/apply a diff to create resources, then edit its values and repeat to update them. Deleting the block removes its intended configuration; a subsequent whole-scope diff and apply removes the resources still tracked in state. Keep the scope’s state and required providers until that work is complete. See provision → diff → apply for the workflow.

Block statusMeaning
NewNew block not yet reconciled to a clean plan.
ChangedThe block has pending changes.
AppliedThe latest reconciliation recorded no pending changes.

A recorded status is not a continuous check of external infrastructure. Calculate a new diff when you need to see the current proposed changes. A diff can mark a block Applied when it finds no changes, even without an apply job.

Example: self-service DNS with InfraBuffet

The platform team runs the authoritative DNS server. It prepares an infrastructure with a DNS provider, a data source holding a module and a validator, and a dns_record template. It creates an apps scope and grants it to the app team.

The app team enters a DNS name and its IPv4 addresses, then saves a block. The validator checks that the name is allowed and not already used. A diff shows the record the DNS server will receive. Once a consumer applies the reviewed plan, the record exists on the server and is recorded in the scope’s state. The platform team maintains the menu; the application team serves itself within the granted scope.

Follow the Quick start to build this example.