-
v0.1.2-dev.8
Pre-releasereleased this
2026-11-18 11:46:37 +00:00 | 20 commits to main since this releaseFirst releases from this repository, john/tofu-provider-xyops, a fork of santos-edu/terraform-provider-xyops v0.1.1 (
091fa9f) by Eduardo Santos.Changed
- Breaking:
xyops_pluginuidandgidare strings, because xyOps stores either a numeric id or an account name. Numeric values are still sent as numbers. Existing state upgrades automatically (1000 becomes "1000").script_fileis now optional, since stock plugins have no script; when omitted, the script is unmanaged. xyops_configcan be imported with the IDglobal. Destroying it, or removing it from configuration, now only removes it from state: xyOps keeps itsjob_universal_actions. It used to reset them to empty, which silently removed every global job action.- Breaking:
xyops_role.privilegesis a map of booleans ({ create_events = true }), matching what xyOps stores; it was a map of numbers. Existing state upgrades automatically (non-zero becomestrue), and 0/1 numbers from the API are still read. Update configurations from= 1to= true. - Import now fills in every resource's optional attributes from xyOps, including JSON ones, for
xyops_alert,xyops_api_key,xyops_bucket,xyops_category,xyops_channel,xyops_group,xyops_monitor,xyops_plugin,xyops_role,xyops_tagandxyops_workflow(previously only events and web hooks). Importing an object whose configuration matches xyOps gives an empty plan. xyops_plugin.typealso acceptsactionandscheduler;xyops_webhook.methodalso acceptsPATCHandOPTIONS.- Breaking:
xyops_secretnow matches the xyOps vault API. Secret variables go in the write-onlyfields_womap (never stored in plans or state; requires OpenTofu 1.11+), sent on create and wheneverfields_wo_versionchanges. New assignment setsevents,categories,pluginsandweb_hooks(who may use the secret) and computednames. The oldvalue,categoryandparamsattributes are removed; they did not match the API. Existing state upgrades automatically and the storedvalueis deleted from state. Import now hydrates all metadata, and Read never fetches values. - Event and web hook import state is hydrated through Read; JSON attributes are compared semantically.
- Forked as
tofu-provider-xyops: module pathcode.yawn.dev/john/tofu-provider-xyops, served addressregistry.yawn.dev/john/xyops, OpenTofu only. - Built with Go 1.27.4, which clears GO-2026-6859 in
net/http. - Release binaries are stripped and reproducible (
-trimpath -s -w, fixed build ID and timestamps).
Added
-
Releases are published on
registry.yawn.dev/john/xyops(0.1.2-dev.7): the deployer GPG-signsSHA256SUMSafter checking the release tag is on main with green checks, sotofu initinstalls the provider without a local mirror. -
Fields xyOps stores that the provider could not represent, found on a live instance:
xyops_pluginicon,notes,kill(none/parent/all),runnerand read-onlystock;xyops_monitorsort_orderanddivide_by_delta;xyops_alertlimit_jobs;xyops_categorysort_order. Each is unmanaged while omitted, so existing configurations see no change. Import fills them in only when xyOps holds them. -
Read-only lookup data sources by ID:
xyops_event,xyops_web_hook(withouturl,headers,body),xyops_category,xyops_plugin,xyops_monitor,xyops_role,xyops_secret(metadata only; never values) andxyops_config. Each returnstitle,enabledand the full object as normalisedjson. -
xyops_event.icon. Left unmanaged when omitted, so existing configurations see no change. -
xyops_workflowparams(JSON object of defaults),fields(JSON array of runtime inputs),notesandicon(0.1.2-dev.8). Each is unmanaged while omitted; removing a configured value clears it; import fills them in. Native graph data (nodedata, controllers, actions, extension fields) is preserved as given. -
forge CI: gofmt,
go mod verify, vet, tests, govulncheck and a byte-identical double build. -
Tag-driven releases on the
dev,preview,rcand stable channels, withlinux_amd64andlinux_arm64zips,SHA256SUMSand a manifest. -
request_timeout_secondsprovider setting andXYOPS_REQUEST_TIMEOUT_SECONDS(1-600, default 30). -
GET requests are retried up to 3 times on HTTP 429/502/503/504 and connection errors, honouring
Retry-Afterup to 10 seconds. POST requests are never retried. -
Requests send
User-Agent: tofu-provider-xyops/<version>and are cancelled with the OpenTofu operation.
Fixed
-
xyops_workflowvalidates the graph on create and update, before anything is sent: nodes need unique ids, a type and numeric coordinates; connection ids must be unique and connections may not dangle (0.1.2-dev.8). Previously an invalid graph could be sent on update. -
Reading plugins no longer fails on what live xyOps returns:
enabledas 0/1, anduid/gidas text or empty. Unconfigured empty plugingroupsstay null instead of causing a permanent diff.
Security
- The API client never follows redirects. Go copies custom headers such as
X-API-Keyonto redirected requests, even to another host. endpointmust usehttps://;http://is accepted only for loopback hosts.- Response bodies are limited to 32 MiB. Error messages quote at most 256 bytes of server text, with control characters removed, and never include request bodies.
- The HTTP status is checked before the body is decoded, so a proxy error page reports its status instead of a JSON decode error.
Notes
- Before this repository existed, john/ops built the same import fix as the private version
0.1.1-yawn.1. That version is retired; consumers move to0.1.2-dev.1or later.
Pin
xyops = { source = "registry.yawn.dev/john/xyops" version = "= 0.1.2-dev.8" }Source commit
0b9cec3926276c6d2ecf9b7312f5fd7f65dd771d. Built with go1.27.4. Installed with a plaintofu initfrom registry.yawn.dev; OpenTofu verifies the GPG-signed SHA256SUMS.Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Breaking: