{"id":21405359,"url":"https://github.com/karimsa/secrets","last_synced_at":"2025-03-16T16:51:03.941Z","repository":{"id":57549468,"uuid":"305474704","full_name":"karimsa/secrets","owner":"karimsa","description":"Manage secrets in config files.","archived":false,"fork":false,"pushed_at":"2023-09-25T21:24:49.000Z","size":2855,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T21:03:58.315Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karimsa.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}},"created_at":"2020-10-19T18:15:50.000Z","updated_at":"2022-01-23T20:35:22.000Z","dependencies_parsed_at":"2024-06-20T04:23:05.187Z","dependency_job_id":"78a059ee-0034-4712-b9ef-6ccc595eb56e","html_url":"https://github.com/karimsa/secrets","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fsecrets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fsecrets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fsecrets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fsecrets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karimsa","download_url":"https://codeload.github.com/karimsa/secrets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902293,"owners_count":20366259,"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","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":"2024-11-22T16:24:46.001Z","updated_at":"2025-03-16T16:51:03.873Z","avatar_url":"https://github.com/karimsa.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\".github/logo.png\" alt=\"Logo for secrets\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003esecrets\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/karimsa/secrets/actions\"\u003e\n        \u003cimg src=\"https://github.com/karimsa/secrets/workflows/CI/badge.svg\" alt=\"Build status\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/karimsa/secrets/tags\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/v/tag/karimsa/secrets?color=blue\u0026label=latest\u0026sort=semver\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nManage secrets in configuration files.\n\n## Installation\n\n```sh\ncurl -sf https://gobinaries.com/karimsa/secrets/cmd/secrets | sh\n```\n\n## Features\n\n * Encrypt/decrypt selective values\n * Supports yaml, json, and .env files\n * Editor mode to selectively re-encrypt secrets (better git diffs)\n\n## Usage\n\n**Encrypting secrets in a .env file**\n\n![Encrypt example gif](.github/examples/encrypt.gif)\n\n```sh\n$ cat .env\nHELLO=SECURE-WORLD\nHI=INSECURE-WORLD\n$ secrets encrypt --in .env --out .env --key .HELLO\nPassphrase: ******\n$ cat .env\nHELLO=64745a1f754b45bb60c40e14c04ead39afb0d774e9f25f90459de9f714da3ed19c94063e79649d38b0ebb5cc3eaf06554476cbf7bc65ef0cd472c28370bcdb57105343180700523771733f8cfe2e7222\nHI=INSECURE-WORLD\n```\n\n**Reveal secrets from .env file**\n\n![Decrypt example gif](.github/examples/decrypt.gif)\n\n```sh\n$ cat .env\nHELLO=64745a1f754b45bb60c40e14c04ead39afb0d774e9f25f90459de9f714da3ed19c94063e79649d38b0ebb5cc3eaf06554476cbf7bc65ef0cd472c28370bcdb57105343180700523771733f8cfe2e7222\nHI=INSECURE-WORLD\n$ secrets decrypt --in .env --key .HELLO\nPassphrase: ******\nHELLO=SECURE-WORLD\nHI=INSECURE-WORLD\n$ cat .env\nHELLO=64745a1f754b45bb60c40e14c04ead39afb0d774e9f25f90459de9f714da3ed19c94063e79649d38b0ebb5cc3eaf06554476cbf7bc65ef0cd472c28370bcdb57105343180700523771733f8cfe2e7222\nHI=INSECURE-WORLD\n```\n\n**Edit config file then re-encrypt changed values**\n\n![Edit example gif](.github/examples/edit.gif)\n\n## License\n\nLicensed under [MIT](LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarimsa%2Fsecrets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarimsa%2Fsecrets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarimsa%2Fsecrets/lists"}