{"id":42252002,"url":"https://github.com/secretary/node","last_synced_at":"2026-01-27T05:12:09.684Z","repository":{"id":34314479,"uuid":"176868099","full_name":"secretary/node","owner":"secretary","description":"Core repo for the nodejs Secretary library","archived":false,"fork":false,"pushed_at":"2023-03-30T22:01:09.000Z","size":1762,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-24T09:48:50.880Z","etag":null,"topics":["credstash","hashicorp-vault","nodejs","secrets","secrets-management","secrets-manager","secretsmanager","vault"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/secretary.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":"2019-03-21T04:09:59.000Z","updated_at":"2023-08-18T09:10:36.000Z","dependencies_parsed_at":"2024-06-19T01:38:46.910Z","dependency_job_id":"0dee0dce-1623-4e35-87f4-e9d01cb62f4c","html_url":"https://github.com/secretary/node","commit_stats":{"total_commits":149,"total_committers":3,"mean_commits":"49.666666666666664","dds":"0.020134228187919434","last_synced_commit":"f3b1afdbc2f856f5e90bb09031d85540f3662485"},"previous_names":["secretarysecrets/node"],"tags_count":41,"template":false,"template_full_name":null,"purl":"pkg:github/secretary/node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secretary%2Fnode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secretary%2Fnode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secretary%2Fnode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secretary%2Fnode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/secretary","download_url":"https://codeload.github.com/secretary/node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/secretary%2Fnode/sbom","scorecard":{"id":809118,"data":{"date":"2025-08-11","repo":{"name":"github.com/secretary/node","commit":"f3b1afdbc2f856f5e90bb09031d85540f3662485"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/monorepo.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/monorepo.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/secretary/node/monorepo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/monorepo.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/secretary/node/monorepo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/monorepo.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/secretary/node/monorepo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/monorepo.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/secretary/node/monorepo.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"30 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-8hc4-vh64-cxmj","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6","Warn: Project is vulnerable to: GHSA-x3cc-x39p-42qx","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T12:37:33.787Z","repository_id":34314479,"created_at":"2025-08-23T12:37:33.787Z","updated_at":"2025-08-23T12:37:33.787Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28803648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T03:44:14.111Z","status":"ssl_error","status_checked_at":"2026-01-27T03:43:33.507Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["credstash","hashicorp-vault","nodejs","secrets","secrets-management","secrets-manager","secretsmanager","vault"],"created_at":"2026-01-27T05:12:07.807Z","updated_at":"2026-01-27T05:12:09.673Z","avatar_url":"https://github.com/secretary.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secretary - NodeJS Secrets Management\n\n[![Build Stats](https://img.shields.io/github/actions/workflow/status/secretary/node/monorepo?branch=master\u0026style=for-the-badge)](https://github.com/secretary/node)\n[![codecov](https://img.shields.io/codecov/c/github/secretary/node?style=for-the-badge)](https://codecov.io/gh/secretary/node)\n\n[![Downloads/week](https://img.shields.io/npm/dm/@secretary/core?style=for-the-badge)](https://npmjs.org/package/secretary/node)\n[![License](https://img.shields.io/npm/l/@secretary/core.svg?style=for-the-badge)](https://github.com/secretary/node/blob/master/package.json)\n\n___\n\nSecretary (etymology: Keeper of secrets) provides an abstract way to manage secrets.\n\nCurrently supports the following adapters:\n\n* [AWS Secrets Manager](https://github.com/secretary/node/tree/master/packages/aws-secrets-manager-adapter)\n* [Azure Key Vault](https://github.com/secretary/node/tree/master/packages/azure-key-vault-adapter)\n* [Hashicorp Vault](https://github.com/secretary/node/tree/master/packages/hashicorp-vault-adater)\n* [JSON File](https://github.com/secretary/node/tree/master/packages/json-file-adapter)\n\n## Cli Tool\n\nThere is also a [CLI package](https://github.com/secretary/node/tree/master/packages/cli) that can be used to inject\nsecrets as environment variables into a script\n\nAll it takes is install the package with:\n\n```shell\nyarn global add @secretary/cli\n```\n\nor\n\n```shell\nnpm i -g @secretary/cli\n```\n\nand then place a config file (`.secretaryrc.js`) in your root directory:\n\n```javascript\nconst {Adapter} = require(\"@secretary/aws-secrets-manager-adapter\");\nconst {SecretsManager} = require('@aws-sdk/client-secrets-manager');\n\n// You can specify an object here as the export, or a function\n// if you need to do some async calls in here\nmodule.exports = async (manager) =\u003e ({\n    sources: {\n        aws: new Adapter(new SecretsManager({\n            region: 'us-east-1',\n        })),\n    },\n    secrets: [\n        {\n            name: 'BOT_TOKEN',\n            secret: 'bot/development',\n            property: 'token',\n            source: 'aws',\n            callback(value) {\n                return value.replace(/^Bot /, '');\n            }\n        }\n    ]\n})\n\n```\n\nThen run the following:\n\n```shell\n$ secretary inject yarn build\n```\n\nYour build script will then have a `BOT_TOKEN` environment variable set with the secret value's.\n\n## Installation\n\n```bash\n// If you want to use AWS Secrets Manager\n$ npm install @secretary/core @secretary/aws-secrets-manager-adapter\n\n// If you want to use Hashicorp Vault\n$ npm install @secretary/core @secretary/hashicorp-vault-adapter\n```\n\nCheck the install docs of the adapter you want to use for specific instructions.\n\n## Usage\n\n```typescript\nimport {Manager} from '@secretary/core';\nimport {Adapter} from '@secretary/aws-secrets-manager';\n// Or: import {Adapter} from '@secretary/hashicorp-vault-adapter';\n// Or: import {Adapter} from '@secretary/json-file-adapter'; // Note: this is not for production\nimport {SecretsManager} from '@aws-sdk/client-secrets-manager';\n\nconst manager = new Manager({aws: new Adapter(new SecretsManager())});\n```\n\n### Fetch Secrets\n\n```typescript\nconst someSecret = await manager.getSecret('some/database/secret', 'aws');\n// or, aws as the first (and only) adapter in the manager, `default` is another key that works,\n// which is what source getSecret defaults to\nconst someSecret = await manager.getSecret('some/database/secret');\n\nconsole.log(someSecret.value.dsn); // redis://localhost:6379\n```\n\n### Create Secrets\n\n```typescript\nconst secret = new Secret('some/database/secret', {dsn: 'redis://localhost:6379'});\nawait manager.putSecret(secret, 'aws');\n\nconsole.log(someSecret.value.dsn); // redis://localhost:6379\n```\n\n### Delete Secrets\n\n```typescript\nconst secret = await manager.getSecret('some/database/secret');\n\nawait manager.deleteSecret(secret, 'aws');\n```\n\nCheck the usage docs of the adapter you want to use for specific instructions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecretary%2Fnode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsecretary%2Fnode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecretary%2Fnode/lists"}