{"id":37868922,"url":"https://github.com/canidam/libvault","last_synced_at":"2026-01-16T16:39:22.266Z","repository":{"id":57640508,"uuid":"369103910","full_name":"canidam/libvault","owner":"canidam","description":"A lightweight Vault client module written in Go, with no dependencies, that is intuitive and user-friendly","archived":false,"fork":false,"pushed_at":"2021-06-16T15:48:01.000Z","size":50,"stargazers_count":74,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T15:53:37.932Z","etag":null,"topics":["go","golang","hashicorp","hashicorp-vault","secrets","secrets-management","vault-api","vault-client"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/canidam.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":"2021-05-20T06:28:50.000Z","updated_at":"2024-01-03T14:17:29.000Z","dependencies_parsed_at":"2022-09-05T07:40:25.973Z","dependency_job_id":null,"html_url":"https://github.com/canidam/libvault","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/canidam/libvault","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canidam%2Flibvault","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canidam%2Flibvault/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canidam%2Flibvault/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canidam%2Flibvault/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/canidam","download_url":"https://codeload.github.com/canidam/libvault/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canidam%2Flibvault/sbom","scorecard":{"id":264374,"data":{"date":"2025-08-11","repo":{"name":"github.com/canidam/libvault","commit":"77631dd68a7ca94137fc92888e952f654076859a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/7 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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.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":"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":"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":"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/ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/canidam/libvault/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/canidam/libvault/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/canidam/libvault/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/canidam/libvault/ci.yml/master?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party 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":"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: GNU General Public License v3.0: 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":"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":"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 'master'"],"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":10,"reason":"0 existing vulnerabilities detected","details":null,"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-17T11:36:39.485Z","repository_id":57640508,"created_at":"2025-08-17T11:36:39.485Z","updated_at":"2025-08-17T11:36:39.485Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":["go","golang","hashicorp","hashicorp-vault","secrets","secrets-management","vault-api","vault-client"],"created_at":"2026-01-16T16:39:22.181Z","updated_at":"2026-01-16T16:39:22.250Z","avatar_url":"https://github.com/canidam.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libvault\n\n[![libvault CI](https://github.com/canidam/libvault/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/canidam/libvault/actions/workflows/ci.yml) ![](https://img.shields.io/badge/Go-1.14%2B-informational) ![](https://img.shields.io/github/license/canidam/libvault) ![](https://img.shields.io/twitter/url?style=social\u0026url=https%3A%2F%2Fgithub.com%2Fcanidam%2Flibvault)\n\nA *lightweight* Hashicorp Vault client written in Go, with no dependencies.\nIt aims to provide an *intuitive, simple API* that is easy to use. Just like with the CLI.\n\nUsing the module, you currently can only *read* secrets from a Vault engine. This is an *ongoing project*,\nfeel free to open FRs, PRs or issues.\n\n## Features\n\n- Supported [Auth Methods](https://www.vaultproject.io/docs/auth):\n    - Tokens\n    - AppRole\n    - AwsRole (EC2 method)\n    \n\n- Supported [Secrets Engines](https://www.vaultproject.io/docs/secrets):\n    - [KV v2.0](https://www.vaultproject.io/docs/secrets/kv/kv-v2)\n    \n\n- Supports self-signed CA certificates\n- By default, the Vault API secrets are consumed using environment variables. You can provide them to the client if you prefer. Check the tests file for examples.\n\n\n## Installation\n```bash\ngo get -d -v github.com/canidam/libvault\n```\n\n## Usage\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/canidam/libvault\"\n\t\"os\"\n)\n\nfunc main() {\n\t//\n\t// Example using Token\n\t//\n\t\n\t// If env var is not set\n\tos.Setenv(\"VAULT_TOKEN\", \"my_token\")\n\n\ttokenClient, err := libvault.NewClient(SetVaultAddr(\"http://localhost:8200\"))\n\tif err != nil {\n\t\t// handle error\n\t}\n\n\tvar secret_path = \"/my.secrets\"\n\tsecretsUsingToken, err := tokenClient.Read(secret_path)\n\tif err != nil {\n\t\t// handle error\n\t}\n\n\t// secrets is of type map[string]string\n\tfor k, v := range secretsUsingToken {\n\t\tfmt.Printf(\"key %s, secret %s\\n\", k, v)\n\t}\n\t\n\t//\n\t// Example using AppRole\n\t//\n\t\n\t// If env var is not set\n\tos.Setenv(\"VAULT_ROLE_ID\", \"my_role_id\")\t\n\tos.Setenv(\"VAULT_SECRET_ID\", \"my_secret_id\")\t\n\tos.Setenv(\"VAULT_ADDR\", \"http://localhost:8200\")\n\t\n\tapproleClient, err := libvault.NewClient(UseApprole())\n\tif err != nil { \n\t\t// handle error\n\t}\n        \n\tsecretsUsingApprole, err := approleClient.Read(secret_path)\n\tif err != nil {\n\t\t// handle error\n\t}\n  \n\t// secrets is of type map[string]string\n\tfor k, v := range secretsUsingApprole {\n\t\tfmt.Printf(\"key %s, secret %s\\n\", k, v)\n\t}\n}\n```\n## Documentation\nCan be found [here](docs/DOCS.md)\n\n## Tests\nCheckout the project and run\n```bash\ngo test -v ./...\n```\n\n`testdata/` is a special directory containing raw data for unit-tests.\n\n`tests/` includes scripts (and it's own README) for starting a dev Vault server for development.\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nIf you'd like to contribute, please fork the repository and make changes as you'd like. Pull requests are warmly welcome.\nPlease make sure to update tests as appropriate.\n\n\n## Roadmap\nTBD\n\n## License\n[GPLv3.0](https://choosealicense.com/licenses/gpl-3.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanidam%2Flibvault","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcanidam%2Flibvault","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanidam%2Flibvault/lists"}