{"id":19956455,"url":"https://github.com/drudge/node-aws-kms-decrypt-env","last_synced_at":"2025-07-26T11:36:17.980Z","repository":{"id":42395737,"uuid":"79388960","full_name":"drudge/node-aws-kms-decrypt-env","owner":"drudge","description":"Helper to decrypt KMS encrypted environment variables","archived":false,"fork":false,"pushed_at":"2022-04-07T02:45:52.000Z","size":3,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T04:32:29.027Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/drudge.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}},"created_at":"2017-01-18T21:59:08.000Z","updated_at":"2017-01-18T22:02:26.000Z","dependencies_parsed_at":"2022-08-24T18:50:32.925Z","dependency_job_id":null,"html_url":"https://github.com/drudge/node-aws-kms-decrypt-env","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/drudge%2Fnode-aws-kms-decrypt-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudge%2Fnode-aws-kms-decrypt-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudge%2Fnode-aws-kms-decrypt-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drudge%2Fnode-aws-kms-decrypt-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drudge","download_url":"https://codeload.github.com/drudge/node-aws-kms-decrypt-env/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241389108,"owners_count":19955105,"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-13T01:34:23.227Z","updated_at":"2025-03-01T15:43:44.173Z","avatar_url":"https://github.com/drudge.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Installation\n\n      $ npm install aws-kms-decrypt-env --save\n\n## Usage\n\n```js\nconst decryptEnvVars = require('aws-kms-decrypt-env');\n\nconst decrypted = {};\n\nexports.handler = function(event, context, callback) {\n  // if decryption of all environment variables succeeds, an ok\n  // boolean property is added to the decrypted object.\n  if (decrypted.ok) return processEvent(event, context, callback);\n\n  decryptEnvVars([\n    'REDSHIFT_CONNECTION',\n    'SECRET_ACCESS_KEY'\n  ], decrypted, err =\u003e {\n    if (err) return callback(err);\n    processEvent(event, context, callback);\n  });\n};\n\nfunction processEvent(event, context, callback) {\n  // here you can access decrypted environment variables via:\n  //   decrypted.REDSHIFT_CONNECTION\n  //   decrypted.SECRET_ACCESS_KEY\n}\n```\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2017 Nicholas Penree \u003cnick@penree.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrudge%2Fnode-aws-kms-decrypt-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrudge%2Fnode-aws-kms-decrypt-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrudge%2Fnode-aws-kms-decrypt-env/lists"}