{"id":19701807,"url":"https://github.com/joelvoss/skm-lit","last_synced_at":"2026-02-01T02:31:26.160Z","repository":{"id":41983182,"uuid":"226677360","full_name":"joelvoss/skm-lit","owner":"joelvoss","description":"skm-lit is a library for retrieving secrets stored in Cloud Storage","archived":false,"fork":false,"pushed_at":"2025-08-06T17:15:27.000Z","size":3003,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-29T01:34:46.622Z","etag":null,"topics":["bucket","cloud-sdk","cloud-storage-bucket","gcp","google-cloud","google-cloud-platform","google-cloud-storage","retrieving-secrets-stored","secret"],"latest_commit_sha":null,"homepage":"","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/joelvoss.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,"zenodo":null}},"created_at":"2019-12-08T14:07:29.000Z","updated_at":"2025-07-28T13:39:59.000Z","dependencies_parsed_at":"2023-10-16T04:23:35.253Z","dependency_job_id":"b9a1db0e-6a6c-4244-b4e6-ed91e438deaa","html_url":"https://github.com/joelvoss/skm-lit","commit_stats":{"total_commits":116,"total_committers":3,"mean_commits":"38.666666666666664","dds":"0.051724137931034475","last_synced_commit":"e196d7b3319f535de2b04ba904548712d0656d48"},"previous_names":[],"tags_count":51,"template":false,"template_full_name":null,"purl":"pkg:github/joelvoss/skm-lit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelvoss%2Fskm-lit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelvoss%2Fskm-lit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelvoss%2Fskm-lit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelvoss%2Fskm-lit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joelvoss","download_url":"https://codeload.github.com/joelvoss/skm-lit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelvoss%2Fskm-lit/sbom","scorecard":{"id":527111,"data":{"date":"2025-08-11","repo":{"name":"github.com/joelvoss/skm-lit","commit":"f895fe36196a472506d4ef23067953c897cfc968"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Maintained","score":0,"reason":"1 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":"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":"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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/validate.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":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/joelvoss/skm-lit/validate.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/joelvoss/skm-lit/validate.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand 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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"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-20T04:41:31.572Z","repository_id":41983182,"created_at":"2025-08-20T04:41:31.572Z","updated_at":"2025-08-20T04:41:31.572Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28965338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T02:14:24.993Z","status":"ssl_error","status_checked_at":"2026-02-01T02:13:55.706Z","response_time":56,"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":["bucket","cloud-sdk","cloud-storage-bucket","gcp","google-cloud","google-cloud-platform","google-cloud-storage","retrieving-secrets-stored","secret"],"created_at":"2024-11-11T21:10:44.166Z","updated_at":"2026-02-01T02:31:26.145Z","avatar_url":"https://github.com/joelvoss.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# skm-lit\n\n**skm-lit** _(secret key manager)_ is a library for retrieving secrets stored\nin a Cloud Storage bucket.\n\n\u003e Watch out: This library is Node.js only!\n\n## Installation\n\n```bash\nnpm install skm-lit\n```\n\n## Usage\n\nRequire **skm-lit** as early as possible:\n\n```js\nrequire(`skm-lit`);\n```\n\nNext, define an environment variable that references your secret stored in\na Google Storage bucket using **skm-lit's** special URL syntax.\nConsult the [reference syntax](#reference-syntax) section for details.\n\n```bash\n# inside .env\nMY_SECRET:skm-lit://mybucket/my-secret\n```\n\nAfter that you can access your secret through the corresponding environment\nvariable. In this case `MY_SECRET`.\n\n## Setup a Cloud Storage bucket\n\nThis section describes the steps required to create a Cloud Storage bucket\nmanually and setting up the correct permissions.\n\n\u003e This is not required on order to use **skm-lit**. If you already have a\n\u003e Cloud Storage bucket provisioned, you can skip this section.\n\n1. Install the [Google Cloud SDK][cloud-sdk]. If you are running from your local\n   machine, you also need to set _Default Application Credentials_:\n\n   ```bash\n   gcloud auth application-default login\n   ```\n\n   This will open a web browser and prompt for a login to your Google account.\n   After a successful login, the gcloud SDK has set your user account\n   as the Default Application Credentials for your machine.\n\n   To revoke the credentials, run `gcloud auth application-default revoke`.\n\n2. Export your project ID as an environment variable. The rest of this setup\n   guide assumes this environment variable is set:\n\n   ```bash\n   export PROJECT_ID=my-gcp-project-id\n   ```\n\n   Please note, this is the project _ID_, not the project _name_ or project\n   _number_. You can find the project ID by running `gcloud projects list` or\n   in the web UI.\n\n3. Enable required services on the project:\n\n   ```bash\n   gcloud services enable --project ${PROJECT_ID} \\\n     storage-api.googleapis.com \\\n     storage-component.googleapis.com\n   ```\n\n4. Create a [Cloud Storage][cloud-storage] bucket for storing secrets:\n\n   ```bash\n   export BUCKET_ID=my-secrets\n   ```\n\n   Replace `my-secrets` with the name of your bucket. Bucket names must be\n   globally unique across all of Google Cloud. You can also create a bucket\n   using the Google Cloud Console from the web.\n\n   ```bash\n   gsutil mb -c standard -l europe-west3 -p ${PROJECT_ID} \\\n     gs://${BUCKET_ID}\n   ```\n\n   \u003e It is strongly recommended that you create a new bucket instead of using\n   \u003e an existing one. **skm-lit** should be the only entity managing IAM\n   \u003e permissions on the bucket.\n\n5. Set the default ACL permissions on the bucket to private:\n\n   ```bash\n   gsutil defacl set private gs://${BUCKET_ID}\n   ```\n\n   ```bash\n   gsutil acl set private gs://${BUCKET_ID}\n   ```\n\n   The default permissions grant anyone with Owner/Editor access on the project\n   access to the bucket and its objects. These commands restrict access to the\n   bucket to project owners and access to bucket objects to only their owner.\n   Everyone else must be granted explicit access via IAM to an object inside\n   the bucket.\n\n## Reference Syntax\n\nThis section describes the syntax for referencing a secret entity. These\nreferences will live in environment variables and **skm-lit** will parse\nthem on library startup.\n\n### Syntax\n\n```text\nskm-lit://[BUCKET]/[SECRET]?[OPTIONS]\n```\n\n- `BUCKET` - name of the Cloud Storage bucket where the secret is stored\n\n- `SECRET` - name of the secret in the Cloud Storage bucket\n\n- `OPTIONS` - options specified as URL query parameters\n\n### Options\n\n- `destination` - when specified as a URL query parameter, this controls how the\n  secret is resolved:\n\n  - `tempfile` - resolve the secret and write the contents to a tempfile,\n    replacing the environment variable with the path to the tempfile\n\n  - `[PATH]` - resolve the secret and write the contents to the specified file\n    path\n\n### Examples\n\nRead a secret:\n\n```text\nskm-lit://my-bucket/my-secret\n```\n\nRead a secret into a tempfile:\n\n```text\nskm-lit://my-bucket/path/to/my-secret?destination=tempfile\n```\n\nRead a secret into `[project-root]/path/to/file` relative to the project root:\n\n```text\nskm-lit://my-bucket/path/to/my-secret?destination=path/to/file\n```\n\nRead a secret into `/path/to/file` absolute to the filesystem:\n\n```text\nskm-lit://my-bucket/path/to/my-secret?destination=/path/to/file\n```\n\n---\n\n[cloud-sdk]: https://cloud.google.com/sdk\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoelvoss%2Fskm-lit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoelvoss%2Fskm-lit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoelvoss%2Fskm-lit/lists"}