{"id":13589331,"url":"https://github.com/sorah/itamae-secrets","last_synced_at":"2025-09-17T15:53:58.318Z","repository":{"id":51289969,"uuid":"41384438","full_name":"sorah/itamae-secrets","owner":"sorah","description":"Encrypted Data Bag for Itamae","archived":false,"fork":false,"pushed_at":"2023-11-26T04:21:05.000Z","size":26,"stargazers_count":76,"open_issues_count":0,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-08-30T00:27:12.438Z","etag":null,"topics":["infrastructure-as-code","itamae","security"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/sorah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","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":"2015-08-25T19:47:16.000Z","updated_at":"2025-01-20T19:27:07.000Z","dependencies_parsed_at":"2024-06-20T23:26:25.869Z","dependency_job_id":"44b86a5c-ea3b-41f1-8ece-1272f3e2d621","html_url":"https://github.com/sorah/itamae-secrets","commit_stats":{"total_commits":23,"total_committers":7,"mean_commits":"3.2857142857142856","dds":"0.34782608695652173","last_synced_commit":"6b922589304ef2938c3096265bf0b09b20e99fcb"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/sorah/itamae-secrets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorah%2Fitamae-secrets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorah%2Fitamae-secrets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorah%2Fitamae-secrets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorah%2Fitamae-secrets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sorah","download_url":"https://codeload.github.com/sorah/itamae-secrets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorah%2Fitamae-secrets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275622180,"owners_count":25498323,"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-09-17T02:00:09.119Z","response_time":84,"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":["infrastructure-as-code","itamae","security"],"created_at":"2024-08-01T16:00:28.157Z","updated_at":"2025-09-17T15:53:58.286Z","avatar_url":"https://github.com/sorah.png","language":"Ruby","funding_links":[],"categories":["Tools"],"sub_categories":["Resources"],"readme":"# Itamae::Secrets - Encrypted Data Bag for Itamae\n\nThis is [itamae](https://github.com/itamae-kitchen/itamae) plugin that provides store for secrets, like encrypted data bag in chef.\n\n## Installation\n\n```ruby\ngem 'itamae-secrets'\n```\n\nor\n\n```\n$ gem install itamae-secrets\n```\n\n## Basic\n\n- `itamae-secrets` command for storing data or manually reading\n- `Itamae::Secrets` interface for itamae recipes\n- Data are stored in _base directory._\n  - You must avoid `${base}/keys` from checked into VCS. (`.gitignore` it!)\n\n## Walkthrough\n\n### Generate a key\n\n##### randomly\n\n```\n$ itamae-secrets newkey --base=./secret --method=aes-random\n```\n\n##### from passphrase\n\n```\n$ itamae-secrets newkey --base=./secret --method=aes-passphrase\n```\n\nBoth generates `./secret/keys/default`. Make sure `./secret/keys` be excluded from VCS.\n\n### Store value\n\n```\n$ itamae-secrets set --base=./secret awesome_secret value\n```\n\n(when omit `value`, it'll read from STDIN until EOF. You can also use `--noecho` if you want hide value in your terminal's buffer completely.)\n\n### Reading data from itamae\n\non your itamae recipe, do:\n\n``` ruby\nrequire 'itamae/secrets'\nnode[:secrets] = Itamae::Secrets(File.join(__dir__, 'secret'))\n\n# Use it\np node[:secrets][:awesome_secret]\n```\n\n### Reading data from CLI\n\n```\n$ itamae-secrets get --base=./secret awesome_secret\n```\n\n### Remembering `--base`\n\n```\n$ echo 'base: ./secret' \u003e\u003e .itamae-secrets.yml\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/sorah/itamae-secrets.\n\n__Security issues?__ Send me directly at `security@sorah.jp`. My GPG key is available here: \u003chttp://sorah.jp/id.html\u003e ([SSL](https://github.com/sorah/sorah.jp/tree/master/source/pgp-pubkeys))\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n## To-dos\n\n- [ ] Missing test :(\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsorah%2Fitamae-secrets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsorah%2Fitamae-secrets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsorah%2Fitamae-secrets/lists"}