• v0.1.2-dev.7 7a890f582a

    v0.1.2-dev.7
    All checks were successful
    CI / release-check-1 (push) Successful in 13s
    CI / release-check (push) Successful in 0s
    Release / release-1 (push) Successful in 19s
    Release / release (push) Successful in 0s
    CI / check (push) Successful in 3m46s
    Pre-release

    john released this 2026-11-18 09:25:10 +00:00 | 25 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_plugin uid and gid are 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_file is now optional, since stock plugins have no script; when omitted, the script is unmanaged.
    • xyops_config can be imported with the ID global. Destroying it, or removing it from configuration, now only removes it from state: xyOps keeps its job_universal_actions. It used to reset them to empty, which silently removed every global job action.
    • 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

    • Releases are published on registry.yawn.dev/john/xyops (0.1.2-dev.7): the deployer GPG-signs SHA256SUMS after checking the release tag is on main with green checks, so tofu init installs the provider without a local mirror.

    • Fields xyOps stores that the provider could not represent, found on a live instance: xyops_plugin icon, notes, kill (none/parent/all), runner and read-only stock; xyops_monitor sort_order and divide_by_delta; xyops_alert limit_jobs; xyops_category sort_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 (without url, headers, body), xyops_category, xyops_plugin, xyops_monitor, xyops_role, xyops_secret (metadata only; never values) and xyops_config. Each returns title, enabled and the full object as normalised json.

    • xyops_event.icon. Left unmanaged when omitted, so existing configurations see no change.

    • forge 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.

    Fixed

    • Reading plugins no longer fails on what live xyOps returns: enabled as 0/1, and uid/gid as text or empty. Unconfigured empty plugin groups stay null instead of causing a permanent diff.

    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.7"
    }
    

    Source commit 7a890f582a024db2a7b3dc62e856bd4b69c568ec. Built with go1.27.4. Installed with a plain tofu init from registry.yawn.dev; OpenTofu verifies the GPG-signed SHA256SUMS.

    Downloads