{"id":26610545,"url":"https://github.com/oxplot/terraform-credentials-gpg","last_synced_at":"2025-10-04T06:33:00.712Z","repository":{"id":142061913,"uuid":"311859125","full_name":"oxplot/terraform-credentials-gpg","owner":"oxplot","description":"Terraform Cloud GPG Credentials Helper","archived":false,"fork":false,"pushed_at":"2022-11-25T11:26:30.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-22T00:03:51.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oxplot.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-11-11T04:07:56.000Z","updated_at":"2023-09-08T18:14:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"0285b66a-a406-4948-bd94-f73bbfd2c396","html_url":"https://github.com/oxplot/terraform-credentials-gpg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oxplot/terraform-credentials-gpg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxplot%2Fterraform-credentials-gpg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxplot%2Fterraform-credentials-gpg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxplot%2Fterraform-credentials-gpg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxplot%2Fterraform-credentials-gpg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oxplot","download_url":"https://codeload.github.com/oxplot/terraform-credentials-gpg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxplot%2Fterraform-credentials-gpg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278277378,"owners_count":25960424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-03-24T01:48:34.917Z","updated_at":"2025-10-04T06:33:00.706Z","avatar_url":"https://github.com/oxplot.png","language":"Shell","readme":"Store your Terraform Cloud API token encrypted by GPG.\n\n## Requirements\n\n- GPG tools\n- terraform CLI tool\n- A key pair\n- Terraform Cloud account with org and a workspace setup\n\n## Getting started\n\nGet a copy of the code:\n\n```\ncd ~\ngit clone https://github.com/oxplot/terraform-credentials-gpg\ncd terraform-credentials-gpg\n```\n\nCopy or link to `terraform-credentials-gpg` in your terraform plugins\ndirectory:\n\n```\ncp terraform-credentials-gpg ~/.terraform.d/plugins/\n#ln -s ~/terraform-credentials-gpg/terraform-credentials-gpg ~/.terraform.d/plugins/\n```\n\nConfigure your terraform to use the GPG credential helper:\n\n```\ncat \u003c\u003cEOF \u003e\u003e ~/.terraformrc\n\ncredentials_helper \"gpg\" {\n  args = [\"1122334455667788\", \"/home/bobby/.terraform-cloud-token\"]\n}\n\nEOF\n```\n\n*`1122334455667788` is your key ID. Alternatively, you can use the email\naddress associated with that key.*\n\n*`.terraform-cloud-token` will store gpg encrypted token*\n\nLogin to terraform:\n\n```\nterraform login\n```\n\nSetup a new terraform project:\n\n```\ncd ~\nmkdir tf-cloud-test\ncd tf-cloud-test\ncat \u003c\u003cEOF \u003e backend.tf\n\nterraform {\n  backend \"remote\" {\n    organization = \"your-org-name\"\n    workspaces {\n      name = \"your-workspace\"\n    }\n  }\n}\n\nEOF\n```\n\nInit it:\n\n```\nterraform init\n```\n\nabove command should pop up the password dialog to decrypt your token file - (or may do so automatically if you have your GPG agent running).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxplot%2Fterraform-credentials-gpg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foxplot%2Fterraform-credentials-gpg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxplot%2Fterraform-credentials-gpg/lists"}