{"id":47229013,"url":"https://github.com/vmvarela/ghoten","last_synced_at":"2026-03-13T20:01:36.000Z","repository":{"id":340507522,"uuid":"1166530399","full_name":"vmvarela/ghoten","owner":"vmvarela","description":"OpenTofu fork with a native ORAS backend for storing infrastructure state in OCI registries (GHCR). Includes atomic locking, state versioning, compression, retry, and a GitHub Action for plan/apply with PR comments.","archived":false,"fork":false,"pushed_at":"2026-03-05T23:33:07.000Z","size":4342,"stargazers_count":1,"open_issues_count":30,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-05T23:40:37.409Z","etag":null,"topics":["ghcr","github-action","golang","infrastructure-as-code","oci","opentofu","oras","state-backend","terraform"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/ghoten-action","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vmvarela.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-25T10:19:41.000Z","updated_at":"2026-03-05T22:32:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/vmvarela/ghoten","commit_stats":null,"previous_names":["vmvarela/ghoten"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/vmvarela/ghoten","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmvarela%2Fghoten","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmvarela%2Fghoten/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmvarela%2Fghoten/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmvarela%2Fghoten/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmvarela","download_url":"https://codeload.github.com/vmvarela/ghoten/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmvarela%2Fghoten/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30473967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T17:15:31.527Z","status":"ssl_error","status_checked_at":"2026-03-13T17:15:22.394Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ghcr","github-action","golang","infrastructure-as-code","oci","opentofu","oras","state-backend","terraform"],"created_at":"2026-03-13T20:01:21.632Z","updated_at":"2026-03-13T20:01:35.990Z","avatar_url":"https://github.com/vmvarela.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ghoten\n\n\u003e **Name origin:** *Ghoten* blends **G**it**H**ub and **O**pen**T**ofu, with a nod to [Goten](https://dragonball.fandom.com/wiki/Goten) from *Dragon Ball Z*.\n\n[![Test](https://github.com/vmvarela/ghoten/actions/workflows/test.yaml/badge.svg)](https://github.com/vmvarela/ghoten/actions/workflows/test.yaml)\n[![Release](https://img.shields.io/github/v/release/vmvarela/ghoten?logo=github)](https://github.com/vmvarela/ghoten/releases/latest)\n[![License: MPL 2.0](https://img.shields.io/github/license/vmvarela/ghoten)](LICENSE)\n\n## What is this?\n\nGhoten is an [OpenTofu](https://opentofu.org/) fork that adds one opinionated thing: a native `oras` backend for storing state in OCI registries (like GHCR), without extra services.\n\nWe built it for teams that already trust container registries and want fewer moving parts in Terraform/OpenTofu state management. Instead of running a custom HTTP backend, you can reuse registry auth, permissions, and auditing you already have.\n\n\u003e **Upstream policy:** Ghoten tracks [OpenTofu](https://github.com/opentofu/opentofu) and keeps changes focused on the ORAS backend and related automation.\n\n## Quick Start\n\nBuild and run `ghoten` locally:\n\n```bash\ngit clone https://github.com/vmvarela/ghoten.git\ncd ghoten\nmake build\n./ghoten version\n```\n\nUse ORAS backend in your HCL:\n\n```hcl\nterraform {\n  backend \"oras\" {\n    repository = \"ghcr.io/acme/infra-state\"\n  }\n}\n```\n\nAuthenticate and initialize with GHCR:\n\n```bash\necho \"$GITHUB_TOKEN\" | docker login ghcr.io -u YOUR_GITHUB_USER --password-stdin\n./ghoten init\n./ghoten plan\n```\n\n## Why this approach?\n\n- **Registry-first state**: state, locks, and versions are OCI artifacts.\n- **Operationally simple**: no separate backend service to deploy and maintain.\n- **Safe by default**: locking, retries, and optional compression are built in.\n- **Works in GitHub Actions**: action handles install, auth, init, PR comments, and summaries.\n\n## Documentation\n\n- [Quickstart \u0026 installation](docs/quickstart.md)\n- [GitHub Action guide](docs/github-action.md)\n- [ORAS backend guide](docs/oras-backend.md)\n- [Testing guide](docs/testing.md)\n- [Contributing](CONTRIBUTING.md)\n- [Security policy](SECURITY.md)\n\n## Limitations\n\n- Validated against GHCR and [Zot](https://zotregistry.dev/); other OCI registries are expected to work but have not been tested yet. See the [compatibility matrix](docs/oras-backend.md#verified-oci-registries).\n- If you need advanced backend workflows (multi-region replication policies, custom APIs), dedicated backend platforms may be a better fit.\n\n## License\n\n[Mozilla Public License 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmvarela%2Fghoten","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmvarela%2Fghoten","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmvarela%2Fghoten/lists"}