Skip to content

Terraform/OpenTofu provider: build and release terraform-provider-solidping (Step 2 of #965) #970

Closed

Description

@fclairamb

Step 2 of spec 2026-11-21-04-terraform-provider-repo (from #965), moved out of the batch PR #969 because it needs operator setup and lives in another repo. Step 1 (API audit of maintenance windows) shipped in #969.

Prerequisites (Florent): create fclairamb/terraform-provider-solidping, generate the GPG key in gopass (personal/solidping/terraform-provider/gpg-*), add it to the repo secrets and to registry.terraform.io and the OpenTofu registry.

Step 2, in fclairamb/terraform-provider-solidping (after the prerequisites)

  • Terraform Plugin Framework, handwritten thin client. Provider config endpoint / org /
    token with SOLIDPING_ENDPOINT / SOLIDPING_ORG / SOLIDPING_TOKEN fallbacks.
    Resource id = uid, terraform import org/uid, 404 on read → removed from state,
    {title, code, detail} → diagnostics, secret config keys sensitive and write-only so
    read-back placeholders never diff.
  • v1 resources: solidping_check, solidping_channel (non-Slack; Slack stays install-flow
    only, documented), solidping_status_page (sections as solidping_status_page_section if
    time allows, else v1.1), solidping_maintenance_window (with check_uids). Data sources
    by uid or slug for checks, channels, status pages. Escalation policies and on-call
    schedules in v1.1.
  • Release: GoReleaser + HashiCorp's scaffolding-framework release workflow (GPG-signed
    SHA256SUMS), registry.terraform.io, and an opentofu/registry PR with the provider and
    its GPG key.
  • Acceptance tests (TF_ACC=1) against SolidPing started in CI from the published Docker
    image: create, update, import, second plan empty, destroy, per resource.
  • Link the provider from the SolidPing docs once published.

Activity

  1. self-assigned this
    on Nov 21, 2026
  2. fclairamb commented on Nov 21, 2026

    @fclairamb
    OwnerAuthor

    autopilot: I can't start this one yet: the prerequisites listed above are not met. fclairamb/terraform-provider-solidping doesn't exist, and gopass has no personal/solidping/terraform-provider/gpg-* key. The work also lives outside this repo, so it can't go into a solidping batch PR.

    Two ways forward, tell me which one and put the label back:

    1. You create the repo and the GPG key (plus the repo secrets and the registry accounts), and I write the provider, its acceptance tests and the release workflow there.
    2. You let me create the repo myself (private until the first release?) and write the code. Publishing to registry.terraform.io / OpenTofu (GPG key, registry sign-in) stays with you.
  3. fclairamb commented on Nov 21, 2026

    @fclairamb
    OwnerAuthor

    Going with option 2 (Florent's call).

    The repo exists, private until the first release: fclairamb/terraform-provider-solidping. The provider is in its PR #1: solidping_check, solidping_channel (non-Slack), solidping_status_page, solidping_status_page_section, solidping_maintenance_window, the three data sources, acceptance tests against the published Docker image (Terraform and OpenTofu), and the GoReleaser release workflow.

    Still to do, by Florent: the GPG key, the GPG_PRIVATE_KEY / PASSPHRASE repository secrets, making the repo public, registry.terraform.io and the opentofu/registry submission (steps in the provider README, "Releasing"). Then: link the provider from the SolidPing docs once it is published.

    Not in v1: escalation policies and on-call schedules (v1.1, as planned).

  4. fclairamb commented on Nov 22, 2026

    @fclairamb
    OwnerAuthor

    Status: the provider is public and released.

    Left before closing: the Terraform Registry publication, then the link from the SolidPing docs once source = "fclairamb/solidping" resolves on a registry.

  5. fclairamb commented on Nov 22, 2026

    @fclairamb
    OwnerAuthor

    Docs link: #981 (draft) adds /docs/terraform and links it from the intro and config-as-code pages. It stays a draft until source = "fclairamb/solidping" resolves on a registry.

    Still blocking the close:

    • Terraform Registry: registry.terraform.io now pushes publishing through HCP Terraform; the legacy GitHub sign-in still works. Its GitHub OAuth grant (read:org, write:repo_hook) needs Florent's click. Then add the public key (personal/solidping/terraform-provider/gpg-public-key) under GPG keys, and Publish → Provider → fclairamb/terraform-provider-solidping.
    • OpenTofu: Provider: fclairamb/terraform-provider-solidping opentofu/registry#6629 and #6631, still waiting on the maintainers.
  6. fclairamb commented on Nov 22, 2026

    @fclairamb
    OwnerAuthor

    Terraform Registry: published. https://registry.terraform.io/providers/fclairamb/solidping (v0.1.0, category Logging & Monitoring, GPG key 570240C901B2C885 on the fclairamb namespace). terraform init installs it and verifies the signature. Later releases are picked up automatically.

    OpenTofu: tofu init already works with source = "registry.terraform.io/fclairamb/solidping". The short form waits for opentofu/registry#6629 and #6631.

    #981 (docs page) is ready for review and closes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions