• v0.3.0-dev.56 8abe1511c6

    v0.3.0-dev.56
    All checks were successful
    CI / release-check-1 (push) Successful in 14s
    CI / release-check (push) Successful in 0s
    Release / release-1 (push) Successful in 18s
    Release / release (push) Successful in 0s
    CI / checks (push) Successful in 1m59s
    Pre-release

    john released this 2026-11-23 23:19:56 +00:00 | 32 commits to main since this release

    Changed

    • xyops: provider tofu-provider-xyops 0.1.2-dev.7, published on registry.yawn.dev (deployer-attested, GPG-signed SHA256SUMS); provider code identical to 0.1.2-dev.6.

    • yawn app-verify -mode attest accepts publish runs started by workflow_dispatch at a release tag (release workflows dispatch publish); AllowManual now governs deploys only.

    Added

    • core.Literal(s): escapes OpenTofu template introducers (${ → $${, %{ → %%{) so text reaches the provider verbatim.

    Fixed

    • xyops: event params (scripts), fields, triggers, limits, actions, title and notes are written as literals; shell ${var} in a script no longer fails tofu validate (JSON-syntax strings are templates).

    • apps: provider slots (Artifact: ArtifactProvider, Provider{Address, FilePrefix, Platforms, Protocols}) for OpenTofu provider releases: attested (the digest is sha256 of the release's SHA256SUMS) and published to a registry, never deployed (no workflow, image, target, health or secrets). Image slots default Artifact to image.

    • yawn app-verify refuses deploy requests for provider slots; attest results name <address>@<digest>.

    • xyops package: pinned john/tofu-provider-xyops (0.1.2-dev.6, SHA-256 + h1), NewEvent (shell events: fields, manual/magic triggers with only the key's hash, limits, failure web hook; JSON encoded exactly like OpenTofu's jsonencode so imports plan clean) and NewSecret (record and event grants only; values never written). Schema snapshot test against the provider.

    • apps: Source.RequiredChecks, the commit statuses that must be green on a release tag's commit before it is attested (kept in the infrastructure app, not the app repo).

    • apps: Source.Publish (the workflow whose token may get a digest attested) and AttestAudience (yawn-attest:<slot>); one publish or deploy workflow per slot.

    • yawn app-verify checks attest requests (yawn-attest:<slot>, slot's publish workflow) as well as deploy requests (yawn-app:<slot>, slot's deploy workflow); -mode pins the purpose.

    • apps package: application deploy slots (apps.json): source repository by immutable IDs, release tag prefix, exact workflow file, image repository, target (compose-lxc or compose-host), health URL, granted xyOps secrets. One workflow deploys at most one slot.

    • yawn app-verify: verifies an app deploy token against its slot (audience yawn-app:<slot>), digest format and replay guard; prints slot, tag and image@digest.

    • oidc: Policy.TagPrefixes (opt-in release-tag deploys), VerifyWorkflow (workflow_ref must be the workflow at the token's own ref), UnverifiedAudience (slot selection only).

    • yawn bootstrap [-plan] [-allow CTID,...] [-backend-config K=V ...] STACK: break-glass deploy of a bootstrap stack from a trusted machine. Refuses unless the checkout is a clean origin/main and the stack is marked bootstrap; requires every declared credential; passes only those to OpenTofu; saved plan, restart guard, typed stack-name confirmation, convergence check.

    • Stack.Bootstrap() and Stack.Credentials(names...), recorded in the manifest (bootstrap, credentials).

    Changed

    • Breaking: the gitea package is removed. Forgejo replaced Gitea and has no OpenTofu state registry, and the forked Gitea provider targeted settings Forgejo lacks.
    • Breaking: Stack.Encrypt requires the passphrase variable to be sensitive and ephemeral, so the passphrase never appears in saved plans. Generated configuration requires OpenTofu >= 1.11.
    • CI moved to .forgejo/ and uses the mirrored runner image.

    Fixed

    • proxmox: imports plan only state-side differences. The construct now writes Proxmox's console defaults (enabled, tty, 2 TTYs) and the provider's timeout_start default (300): left unset, the first import planned a console change on every container, which the provider applies with a reboot (caught by yawn plan-guard in arch plan run 583; nothing applied).
    • proxmox: Network.NoGateway declares a static interface without a gateway (as Proxmox allows; CT 112 on kratos), instead of refusing it.
    • proxmox: MAC addresses are written exactly as declared (all upper or all lower case) instead of lowercased. bpg/proxmox compares them case-sensitively against what Proxmox stores (usually upper case), so lowercasing would plan a network change, and a network change reboots a running container.

    Added

    • proxmox.Disruptions and yawn plan-guard [-allow CTID,...] < plan.json: read tofu show -json of a saved plan and refuse (exit 3) any replacement, deletion, stop, start or reboot of an existing container that is not approved. Reboot triggers are those of bpg/proxmox 0.122.0 in-place updates of running containers (memory, mounts, devices, network/IP, DNS, hostname, entrypoint, environment, OS type, console, idmap, root mount options). Creates are always allowed. Checked against real OpenTofu plan JSON.
    • proxmox: NewContainer for Proxmox VE LXC containers on bpg/proxmox 0.122.0 (pinned by SHA-256 and h1; hashes match OpenTofu's verified install). Import by node/ctid or create from a template; every attribute decided against a schema snapshot including nested blocks; destroy refused and never purges; template, privilege, root storage, description and the initial user account never reconciled; raw lxc.* lines untouched. TLS always verified; token only from PROXMOX_VE_API_TOKEN. Container.Fleet() returns the fleet.Container identity (DHCP interfaces name their ReservedIP). Guide in the wiki; examples/containers is validated by OpenTofu in CI.
    • forgejo.Repository.DeployKey: SSH deploy key, read-only unless Write; accepts only an OpenSSH ed25519 public key without a comment, so private keys never pass through cdk.
    • oidc.Policy.Audiences (and audiences in the yawn oidc-verify policy file): a set of accepted audiences, so a deploy job can bind its mode to the token (e.g. yawn-deploy:arch:plan / :apply) and read the verified Claims.Audience. Set either audience or audiences.
    • fleet.Observed.MAC: net0 hwaddr (lowercase), so DHCP reservations can be written from discovery.
    • fleet.ParseUpdateEntrypoint also reads older community-scripts entrypoints (the ct/<name>.sh they download).
    • fleet.Observed.DHCP: containers whose net0 uses ip=dhcp (the observer then reports the live address); Check warns, because a lease change would break the identity check.
    • forgejo: NewRepository and Protect for svalabs/forgejo 1.7.0 from the OpenTofu registry, with every attribute decided against a schema snapshot. Wiki options are omitted while the wiki is off; manual-merge settings Forgejo does not support are left alone. UnreadSettings lists the repository settings the provider never reads back.
    • core.S3Backend: S3-compatible state (VersityGW) with native lockfile locking; credentials only from the environment.
    • core.Variable.Ephemeral, and App.Attach for data-only documents synthesized next to the stacks (listed in manifest.json as documents).
    • fleet: declares which Proxmox container runs which service (fleet.json), parses pct list/pct config and the community-scripts update entrypoint, and reports identity mismatches and drift.
    • oidc: verifies Forgejo Actions ID tokens (RS256 only, JWKS from the issuer's host, explicit audience, repository by immutable ID, event, ref, workflow, token age) and refuses runs not newer than the last deploy.
    • yawn oidc-verify, yawn fleet-check and yawn fleet-diff for xyOps deploy jobs; exit status 3 means "checked and refused".
    • Design doc for the deploy control plane in wiki/, published to the repository wiki on release.

    Source commit 8abe1511c6736d0af1ac3a59713b25dd058b7be0.

    Downloads