{"id":19301332,"url":"https://github.com/dmpe/rage-sops","last_synced_at":"2026-06-12T22:31:18.686Z","repository":{"id":226776618,"uuid":"769618523","full_name":"dmpe/rage-sops","owner":"dmpe","description":"Prototype for (R)AGE-SOPS integration","archived":false,"fork":false,"pushed_at":"2024-03-09T15:35:30.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T01:39:54.411Z","etag":null,"topics":["age-encryption","encryption","encryption-tool","rage","rust","sops"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmpe.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-03-09T15:31:29.000Z","updated_at":"2024-03-09T15:37:19.000Z","dependencies_parsed_at":"2024-03-16T00:52:10.015Z","dependency_job_id":null,"html_url":"https://github.com/dmpe/rage-sops","commit_stats":null,"previous_names":["dmpe/rage-sops"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dmpe/rage-sops","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmpe%2Frage-sops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmpe%2Frage-sops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmpe%2Frage-sops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmpe%2Frage-sops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmpe","download_url":"https://codeload.github.com/dmpe/rage-sops/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmpe%2Frage-sops/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34265491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":["age-encryption","encryption","encryption-tool","rage","rust","sops"],"created_at":"2024-11-09T23:17:34.214Z","updated_at":"2026-06-12T22:31:18.640Z","avatar_url":"https://github.com/dmpe.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust based AGE - with SOPS integration\n\nDocuments how to use `rage` for encrypting/decrypting file using `SOPS`.\n\n- https://github.com/getsops/sops/issues/1103#issuecomment-1866390434\n- https://github.com/FiloSottile/age/\n- https://github.com/str4d/rage\n\n## 1. Prepare to encrypt\n\nGenerate identity (private) and recipient (public) with password - will ask for it interactively\n\nSee also \u003chttps://htmlpreview.github.io/?https://github.com/FiloSottile/age/blob/main/doc/age.1.html#RECIPIENTS-AND-IDENTITIES\u003e\n\n```bash\n$ rage-keygen | rage -p - \u003e key.enc\nPublic key: age1lzffdzg65h3edyrwssnu388ny0vkgmswy8047j8fghas9fw4syas67rr9j\n```\n## 2. Encrypt\n\nEncrypt the text file with sops\n\n```bash\nsops -e --age age1lzffdzg65h3edyrwssnu388ny0vkgmswy8047j8fghas9fw4syas67rr9j text-clear.yaml \u003e secret.yaml\n```\n\n## 3. Prepare to decrypt\n\nUses key.enc which was generated in the first step.\nThis will ask for password again, interactively\n\n```bash\nSOPS_AGE_KEY=$(rage -d key.enc)\n```\n\nthis will also print\n\n```\n# created: 2024-03-09T16:00:50+01:00\n# public key: age1lzffdzg65h3edyrwssnu388ny0vkgmswy8047j8fghas9fw4syas67rr9j\nAGE-SECRET-KEY-1MUAJZM5AEKU0VFDJLX3G8WKQ7FQXL8UNCA86USQLFPEQ2870ZX8Q3MHGAX\n```\n\n```\n$ echo $SOPS_AGE_KEY\n# created: 2024-03-09T16:00:50+01:00 # public key: age1lzffdzg65h3edyrwssnu388ny0vkgmswy8047j8fghas9fw4syas67rr9j AGE-SECRET-KEY-1MUAJZM5AEKU0VFDJLX3G8WKQ7FQXL8UNCA86USQLFPEQ2870ZX8Q3MHGAX\n```\n\n## 4. Decrypt\n\n`SOPS` for whatever reason requires `~/.config/sops/age/keys.txt` on my local Linux Mint. \nSetting env variable `SOPS_AGE_KEY_FILE` or `SOPS_AGE_KEY` did not work out out of the box...\n\n```bash\n$ cat ~/.config/sops/age/keys.txt\nAGE-SECRET-KEY-1MUAJZM5AEKU0VFDJLX3G8WKQ7FQXL8UNCA86USQLFPEQ2870ZX8Q3MHGAX\n\n# Now decrypt secret file - works\nsops -d secret.yaml \u003e clear2.yaml\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmpe%2Frage-sops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmpe%2Frage-sops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmpe%2Frage-sops/lists"}