Infra

Infrastructure tree

This tree contains infrastructure as code. Each top-level project README must declare its creation date as date: YYYY-MM-DD and a concise description of the project’s purpose in front matter. The homepage and the Infra index at /infra/ list projects newest first, and the index displays their descriptions. Routine edits preserve the creation date. Tracked source follows the repository’s public-source policy. Infrastructure facts are not confidential merely because they are operational, generated, or live. Reports may include them unless they contain credentials, other secrets, or personal information. Inspect raw state, plans, inventories, and decrypted configuration because those artifacts can contain prohibited content; do not track the artifacts themselves.

Each infrastructure project owns its specifications and maintained changes in <project>/openspec/. Use the pinned OpenSpec workflow with that project selected. These specifications describe checked-in definitions; they do not establish deployed state or authorize infrastructure operations.

Requirements

  • Bazel targets MUST use repository-internal visibility.
  • Infrastructure definitions MUST NOT be published as production artifacts.
  • Infrastructure targets MUST NOT be dependencies of production build targets.
  • Public checked-in documentation MAY be included in the repository documentation site, including non-secret, non-personal operational facts.

Transitive dependency enforcement

//infra:transitive_consumers allows internal infrastructure and developer trees, website documentation, and the explicitly listed developer consumers. The inherited Gazelle directive generates the package declarations. Ordinary project packages, including projects/ansible_collection/roles/traefik, cannot depend directly on infrastructure artifacts. Bazel 9.3.1 has an observed indirect enforcement limitation when an intermediary declares its own policy; do not treat this as a complete transitive audit. An exception grants access to every target in the consuming package; targets sharing a package cannot have different transitive policies.

Shared AL helpers

infra_xo_login(name = ..., labels = ..., oidc_provider = ...) from al_config.bzl declares a configuration target for the Xen Orchestra login plugin with the shared XO and Vault endpoints. The caller must supply the Vault OIDC provider name; the helper constructs its discovery URL. The helper declares the //infra/xcp_ng/cmd/xo_login executable dependency. Consumers select its labels in their command wrapper. Registration does not authenticate until a matching command selects the plugin.

Public target macros in al_config.bzl use the infra_ namespace, including infra_dns and infra_ansible_keys. Backend calls use vault_tf_backend from //tools/vault/tf_backend:defs.bzl, which owns their shared argument structure.

New project

The commands below are state-changing operator examples. An agent must use bazel, apply the repository Terraform and secret-handling procedures, and receive explicit authority for the exact operation and environment before running an equivalent command.

  • Create and apply the component’s standalone AppRole root. See Grafana’s AppRole for an example.
  • Add it to approles: example
  • Run apply:
    bazel run //infra/vault/tf:tf.apply
    
  • Update Yandex Cloud folders:
    bazel run //infra/yandex_cloud/org1/tf:tf.apply
    
  • Update Proxmox resource pools:
    bazel run //infra/pve/tf:tf.apply
    
  • Update Xen Orchestra AppRole resource sets:
    bazel run //infra/xcp_ng/tf:tf.apply
    
  • Set up al config: example
  • Configure the component’s Terraform state through the existing Vault HTTP backend flow. The tf_backend plugin creates state and lock KV entries on first use.

F-Droid

Android apps distributed through the Alwaldend F-Droid repository

Airflow

Airflow workflow scheduling infrastructure in DC1

MLflow

MLflow tracking and Vast.ai project execution

Grafana

DC1 monitoring dashboards backed by VictoriaMetrics with Vault sign-in

VictoriaMetrics

Single-node metrics storage and scraping for DC1 services

OpenCanary

Network honeypot on XCP-ng with protocol decoys and SMB auditing

Image generation

Vast.ai ComfyUI rental with Vault-managed HTTPS credentials

Printers

Printer DNS and network access in dc1

Vast.ai

Account, team, and rental infrastructure with Vault authentication

Local inference

Independent GPU provisioning, DNS, and local coding host configuration

Host security maintenance

Repeatable security scans and package updates without automatic reboot

Archived infrastructure

Historical architectures without maintained component projects

Download

Public static files and websites on XCP-ng and Yandex Cloud

Nexus

Planned native Nexus Repository deployment on XCP-ng

GitLab

GitLab groups, memberships, repository imports, and forks

Repositories

Shared organization, repository, and access configuration

OpenHands

Hosting for Agent Canvas, the OpenHands agent server, and automations

Source repository

Repository evolution specifications and workflow history

Cloud-init

Shared PVE-based infrastructure VM bootstrap configuration

XCP-ng

Xen Orchestra resource sets, VM templates, and XCP-ng hosts

GitHub

GitHub organization, repositories, access, and Pages configuration

Development hosts

Shared deployment for development and runner hosts

Nas

TrueNAS pools, datasets, and storage namespaces

ingress

Traefik ingress and backend routing for public services

threexui

3x-ui control plane and Xray proxy nodes

Ceph

Ceph storage configuration and CRUSH map maintenance for Proxmox

flux

Flux cluster bootstrap and workload deployment

forgejo

Self-hosted Git forge, CI runners, and repository mirrors

harbor

Harbor container registry configuration on Proxmox and K3s

Pve

Proxmox cluster configuration, resource pools, and VM bootstrap

Yandex Cloud

Yandex Cloud organization folders and infrastructure access

Vault

Vault deployment, secrets management, and certificate issuance

Dns

Project-owned DNS declarations for alwaldend.com

Mikrotik

DC1 RouterOS configuration, router DNS, and service accounts