{"id":18524505,"url":"https://github.com/stelligent/keystore","last_synced_at":"2025-04-09T12:30:52.832Z","repository":{"id":33057456,"uuid":"36693908","full_name":"stelligent/keystore","owner":"stelligent","description":"Secure storage of secrets using Amazon Web Services","archived":false,"fork":false,"pushed_at":"2020-01-07T21:32:25.000Z","size":68,"stargazers_count":10,"open_issues_count":4,"forks_count":8,"subscribers_count":61,"default_branch":"master","last_synced_at":"2025-03-24T05:26:33.798Z","etag":null,"topics":[],"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/stelligent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-01T22:57:56.000Z","updated_at":"2024-08-02T02:18:15.000Z","dependencies_parsed_at":"2022-09-12T17:22:33.952Z","dependency_job_id":null,"html_url":"https://github.com/stelligent/keystore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fkeystore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fkeystore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fkeystore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fkeystore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stelligent","download_url":"https://codeload.github.com/stelligent/keystore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248040088,"owners_count":21037813,"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-06T17:42:06.811Z","updated_at":"2025-04-09T12:30:52.537Z","avatar_url":"https://github.com/stelligent.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# keystore :key:\n\nWhile building applications and continuous delivery pipelines, secret management is usually one of the first non-trivial problems you run across. The Keystore utility pairs to AWS services to handle encryption and storage of secret data.\n\nThe Keystore stores all data in a DynamoDB table, indexed on the key's name. All data is encrypted using the Key Management Service. Both this services have costs associated with them, but even at moderate use will still be cheaper than running an EC2 instance with key management software on it.\n\n# usage :key:\n\n## tests\n\nYou have rspec, cucumber, and rubocop installed right? (Also the nyan-cat rspec formatter because we are all very serious no-nonsense programmer types here.)\n\n    gem install rspec cucumber rubocop nyan-cat-formatter\n  \nOkay, now from the the root of the repo you can do these things.\n\n* To run the unit tests:\n\n        rspec \n\n* To run static analysis:\n\n        rubocop\n\n* To run the integration tests, you'll need to set up a KMS Key manually and write down the key_id. Then, you'll need to set up a DynamoDB, but you can use the included cfn template for that.\n\n        export AWS_ACCESS_KEY_ID=YOURACCESSKEY\n        export AWS_SECRET_ACCESS_KEY=YOURSECRETKEY\n        aws cloudformation create-stack --stack-name keystore-test-db --template-body file://config/dynamo.json\n        echo \"This takes a minute, so go get yourself a coffee.\" \u0026\u0026 sleep 60\n        export table_name=`aws cloudformation describe-stacks --stack-name keystore-test-db --query Stacks[*].Outputs[*].OutputValue --output text`\n        \n* Then to run the integration tests\n\n        cucumber region=\"us-east-1\" table_name=\"$table_name\" key_id=\"your-iam-kms-key-id\" \n\n## api\n\n    keystore = Keystore.new dynamo: Aws::DyanmoDB::Client.new, table_name: dynamo_db_table_name, kms: Aws::KMS::Client.new, key_id: your_kms_key_id\n    \n    keystore.store key: \"key\", value: \"value\"\n    \n    result = keystore.retrieve key: \"key\"\n\n## cli \n\n    ruby bin/keystore.rb store --table dynamoTableName --keyname keyname --kmsid kmsKeyId --value valueToStore\n\n    ruby bin/keystore.rb retrieve --table dyanmoTableName --keyname keyname \n\n# license :key:\n\nCopyright (c) 2014 Stelligent Systems LLC\n\nMIT LICENSE\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstelligent%2Fkeystore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstelligent%2Fkeystore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstelligent%2Fkeystore/lists"}