-
v0.1.2-dev.4 Pre-release
released this
2026-11-16 23:32:42 +00:00 | 46 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_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
xyops_event.icon. Left unmanaged when omitted, so existing configurations see no change.- Gitea 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.
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.4" }Source commit
80479997631b8979a88da92cb7b88479cfd8bf5a. Built with go1.27.4; verify zips against the SHA256SUMS asset.Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Breaking: