• v0.1.2-dev.4 8047999763

    v0.1.2-dev.4 Pre-release

    john released this 2026-11-16 23:32:42 +00:00 | 46 commits to main since this release

    First 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.privileges is a map of booleans ({ create_events = true }), matching what xyOps stores; it was a map of numbers. Existing state upgrades automatically (non-zero becomes true), and 0/1 numbers from the API are still read. Update configurations from = 1 to = 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_tag and xyops_workflow (previously only events and web hooks). Importing an object whose configuration matches xyOps gives an empty plan.
    • xyops_plugin.type also accepts action and scheduler; xyops_webhook.method also accepts PATCH and OPTIONS.
    • Breaking: xyops_secret now matches the xyOps vault API. Secret variables go in the write-only fields_wo map (never stored in plans or state; requires OpenTofu 1.11+), sent on create and whenever fields_wo_version changes. New assignment sets events, categories, plugins and web_hooks (who may use the secret) and computed names. The old value, category and params attributes are removed; they did not match the API. Existing state upgrades automatically and the stored value is 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 path code.yawn.dev/john/tofu-provider-xyops, served address registry.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, rc and stable channels, with linux_amd64 and linux_arm64 zips, SHA256SUMS and a manifest.
    • request_timeout_seconds provider setting and XYOPS_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-After up 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-Key onto redirected requests, even to another host.
    • endpoint must use https://; 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 to 0.1.2-dev.1 or 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