Infralink Ops
BLUF
This repo packages the public controller runtime for managed hosts. Deployment intent, private templates, and secret aliases remain in the environment registry; live-service acceptance remains environment-owned operational state.
Use it when you need bounded host primitives for registry checkout, template rendering, config projection, Docker image retention, Compose consumer activation, firewall verification, secret rendering, or host doctor evidence.
Do not use this repo to select fleet desired state. Registry revisions, service definitions, image pins, hostnames, and secret bindings come from the environment registry.
Reader Paths
| Goal | Start here |
|---|---|
| Understand the runtime boundary | Controller runtime guide |
| Safely inspect an installed host controller | Installed CLI quickstart |
| Promote, verify, or roll back a Registry change | Registry rollout runbook |
| Diagnose stale controller or host evidence | Stale-host triage runbook |
| Identify the right controller command and its authority | Controller CLI reference |
| Debug a stale RelayOS staging rollout | Controller runtime guide |
| Check available CLIs | pyproject.toml |
| Inspect host-installed launcher assets | src/infralink_ops/assets/ |
| Review controller behavior | src/infralink_ops/ and tests/ |
How It Fits
flowchart LR
registry["configured registry revision"] --> checkout["/var/lib/infralink/registry"]
checkout --> render["template render and static config projection"]
render --> consumers["Compose consumer validate/activate"]
consumers --> evidence["doctor, metrics, and logs"]
evidence --> operator["environment-owned acceptance"]
This repo implements the bounded primitives in the middle of the flow. It does not own the registry data model or the environment-specific acceptance result.
Main CLIs
| Command | Purpose |
|---|---|
infralink-controller-registry-checkout fetch |
Fetch a declared registry ref into an existing clean checkout. |
infralink-controller-template-render |
Render registry-declared templates from explicit inputs. |
| Controller-internal config-consumer activation | Validate or recreate services affected by rendered config changes. |
infralink-controller-render-secrets |
Resolve registry-declared render-secret bindings through BWS. |
infralink-controller-firewall render|verify |
Render or verify declared nftables policy. |
infralink-controller-doctor |
Read-only host-runtime check for registry, reconcile, Compose, firewall, and metrics evidence. |
infralink-host doctor|reconcile|bootstrap --apply |
Host launcher installed from src/infralink_ops/assets/infralink-host. |
Each command is intentionally narrow. Commands receive explicit inputs and return bounded machine-readable envelopes where possible.
Authority Boundary
| This repo owns | This repo does not own |
|---|---|
| Controller image build recipe. | Which registry revision a host should run. |
| Host launcher and systemd unit assets. | Service definitions, hostnames, DNS, certificates, or image pins. |
| Runtime primitives with bounded inputs and outputs. | Tenant or application policy. |
| Doctor and evidence helpers. | Live-service acceptance criteria. |
| BWS resolution primitive. | BWS secret values or registry secret declarations. |
For RelayOS IRC, source/config/image repos feed the registry first:
flowchart LR
deploy["relayos-deploy docs and deploy contract"]
config["relayos-irc-config"]
modules["custom-modules"]
images["relayos-irc-containers"]
registry["infra-registry"]
ops["infralink-ops controller"]
host["managed host"]
config --> registry
modules --> images
images --> deploy
deploy --> registry
registry --> ops
ops --> host
GHCR and BWS
The controller image publishes to
cyberstorm-dev packages as
ghcr.io/cyberstorm-dev/infralink-ops-controller.
BWS access is runtime-only. This repo contains the resolver and tests for the resolver contract; the token and secret object names belong to the environment registry and host runtime.
Verify Changes
Run the same checks Woodpecker runs:
python -m pip install --disable-pip-version-check \
'infralink>=0.6.22,<0.7'
python -m pip install --disable-pip-version-check -e '.[dev]'
python -m ruff check src tests
python -m ruff format --check src tests
python -m pytest -q
python -m build
Infralink Ops declares compatibility with Infralink >=0.6,<0.7. Until
Infralink is published to PyPI, bootstrap a released, checksum-pinned wheel
before installing Ops so a clean environment does not attempt an unavailable
index resolution.
The controller image publish step runs only on main pushes. Pull requests use
Docker buildx dry-run validation.
Triage A Stale Host
Check in this order:
- Confirm the environment selected the intended registry revision.
- Confirm
/var/lib/infralink/registryhas the expected checkout. - Run
infralink-host doctorfor read-only host evidence. - Inspect
/var/lib/infralink/reconcile-result.ymlas the last reconcile result, not as desired state. - Check whether
infralink-host-reconcile.timerran after the registry change. - Check rendered files under
/opt/services/config. - Check the affected Compose service or application-specific behavior.
Do not repair desired-state drift by editing /opt/services directly. Fix the
registry or source repo that owns the value, then let the controller reconcile.
Development Contract
- Keep commands agent-friendly: explicit inputs, bounded output, stable exit behavior, and machine-readable evidence.
- Keep provider-specific policy out of generic primitives unless the command name says it is provider-specific.
- Add tests for every command contract, runtime boundary, and failure mode.
- Keep README-level docs focused on operator entrypoints; put command-specific details in focused guides or tests.
Metadata
Release files for infralink-ops 0.2.83
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| infralink_ops-0.2.83.tar.gz | 142.2 kB | With provenance | Details for infralink_ops-0.2.83.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| infralink_ops-0.2.83-py3-none-any.whl | Python 3 | none | any | Details for infralink_ops-0.2.83-py3-none-any.whl |
Total release size: 244.9 kB
Release files / infralink_ops-0.2.83.tar.gz
| Download URL | infralink_ops-0.2.83.tar.gz |
|---|---|
| Size | 142.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
427ad26fd8fe1ae271b825381396d0cd470b6b736f5e31ab6212fbc977ba968d
|
|
BLAKE2b-256 checksum How to use checksums |
c22b7439d93609386497e954a0dfc7bd8d42fb6527c783b69294b92d43cf1563
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.
Transparency logRelease files / infralink_ops-0.2.83-py3-none-any.whl
| Download URL | infralink_ops-0.2.83-py3-none-any.whl |
|---|---|
| Size | 102.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3511a52926f6926914b132eba9a6c933c07485ba50173cbf35d308d62624a8b8
|
|
BLAKE2b-256 checksum How to use checksums |
41d972434b65e5b27eca562e50d9e1d5c2f9f5c575c782c2957231a55f171a74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.
Transparency logSecurity for infralink-ops 0.2.83
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for infralink_ops-0.2.83.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.