-
v0.3.0-dev.29
Pre-releasereleased this
2026-11-19 03:50:25 +00:00 | 102 commits to main since this releaseChanged
-
xyops: provider tofu-provider-xyops 0.1.2-dev.7, published onregistry.yawn.dev(deployer-attested, GPG-signedSHA256SUMS); provider code identical to 0.1.2-dev.6. -
yawn app-verify -mode attestaccepts publish runs started byworkflow_dispatchat a release tag (release workflows dispatch publish);AllowManualnow 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 failstofu 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 defaultArtifacttoimage. -
yawn app-verifyrefuses deploy requests for provider slots; attest results name<address>@<digest>. -
xyopspackage: 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) andNewSecret(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) andAttestAudience(yawn-attest:<slot>); one publish or deploy workflow per slot. -
yawn app-verifychecks attest requests (yawn-attest:<slot>, slot's publish workflow) as well as deploy requests (yawn-app:<slot>, slot's deploy workflow);-modepins the purpose. -
appspackage: 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 (audienceyawn-app:<slot>), digest format and replay guard; prints slot, tag andimage@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 cleanorigin/mainand 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()andStack.Credentials(names...), recorded in the manifest (bootstrap,credentials).
Changed
- Breaking: the
giteapackage is removed. Forgejo replaced Gitea and has no OpenTofu state registry, and the forked Gitea provider targeted settings Forgejo lacks. - Breaking:
Stack.Encryptrequires 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'stimeout_startdefault (300): left unset, the first import planned a console change on every container, which the provider applies with a reboot (caught byyawn plan-guardin arch plan run 583; nothing applied).proxmox:Network.NoGatewaydeclares 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.Disruptionsandyawn plan-guard [-allow CTID,...] < plan.json: readtofu show -jsonof 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:NewContainerfor Proxmox VE LXC containers on bpg/proxmox 0.122.0 (pinned by SHA-256 and h1; hashes match OpenTofu's verified install). Import bynode/ctidor 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; rawlxc.*lines untouched. TLS always verified; token only fromPROXMOX_VE_API_TOKEN.Container.Fleet()returns thefleet.Containeridentity (DHCP interfaces name theirReservedIP). Guide in the wiki;examples/containersis validated by OpenTofu in CI.forgejo.Repository.DeployKey: SSH deploy key, read-only unlessWrite; accepts only an OpenSSH ed25519 public key without a comment, so private keys never pass through cdk.oidc.Policy.Audiences(andaudiencesin theyawn oidc-verifypolicy 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 verifiedClaims.Audience. Set eitheraudienceoraudiences.fleet.Observed.MAC: net0 hwaddr (lowercase), so DHCP reservations can be written from discovery.fleet.ParseUpdateEntrypointalso reads older community-scripts entrypoints (thect/<name>.shthey download).fleet.Observed.DHCP: containers whose net0 usesip=dhcp(the observer then reports the live address);Checkwarns, because a lease change would break the identity check.forgejo:NewRepositoryandProtectfor 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.UnreadSettingslists 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, andApp.Attachfor data-only documents synthesized next to the stacks (listed inmanifest.jsonasdocuments).fleet: declares which Proxmox container runs which service (fleet.json), parsespct list/pct configand 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-checkandyawn fleet-difffor 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
321af7c6c037d699b459fda1529d64ddf8d7c440.Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-