{"id":42339981,"url":"https://github.com/nikogura/vault-authenticator","last_synced_at":"2026-01-27T14:44:13.621Z","repository":{"id":43832702,"uuid":"221787448","full_name":"nikogura/vault-authenticator","owner":"nikogura","description":"Managed Secrets Client Libraries","archived":false,"fork":false,"pushed_at":"2024-12-11T22:16:53.000Z","size":122,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-14T23:43:12.040Z","etag":null,"topics":["security"],"latest_commit_sha":null,"homepage":"https://github.com/nikogura/vault-authenticator","language":"Go","has_issues":false,"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/nikogura.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-11-14T21:10:51.000Z","updated_at":"2025-02-20T15:00:31.000Z","dependencies_parsed_at":"2024-03-30T20:21:22.771Z","dependency_job_id":"64928fe2-ae01-45af-bd1b-c51e88183c28","html_url":"https://github.com/nikogura/vault-authenticator","commit_stats":null,"previous_names":["nikogura/vault-authenticator","scribd/vault-authenticator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nikogura/vault-authenticator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikogura%2Fvault-authenticator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikogura%2Fvault-authenticator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikogura%2Fvault-authenticator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikogura%2Fvault-authenticator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikogura","download_url":"https://codeload.github.com/nikogura/vault-authenticator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikogura%2Fvault-authenticator/sbom","scorecard":{"id":687536,"data":{"date":"2025-08-11","repo":{"name":"github.com/nikogura/vault-authenticator","commit":"f2684bc686ee343759dd42c8a8d956f80e0e0f48"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"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":"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":"Code-Review","score":1,"reason":"Found 3/23 approved changesets -- score normalized to 1","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":"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:9: update your workflow using https://app.stepsecurity.io/secureworkflow/nikogura/vault-authenticator/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/nikogura/vault-authenticator/ci.yml/master?enable=pin","Info:   0 out of   1 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":"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":"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":"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 '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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0635","Warn: Project is vulnerable to: GO-2022-0646","Warn: Project is vulnerable to: GO-2021-0227 / GHSA-3vm4-22fp-5rfm","Warn: Project is vulnerable to: GO-2022-0968 / GHSA-gwc9-m7rh-j2ww","Warn: Project is vulnerable to: GO-2021-0356 / GHSA-8c26-wmh5-6g9v","Warn: Project is vulnerable to: GO-2024-2961","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77"],"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-22T01:20:02.800Z","repository_id":43832702,"created_at":"2025-08-22T01:20:02.800Z","updated_at":"2025-08-22T01:20:02.800Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28815379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","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":["security"],"created_at":"2026-01-27T14:44:12.841Z","updated_at":"2026-01-27T14:44:13.614Z","avatar_url":"https://github.com/nikogura.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vault-authenticator\n[![Go Report Card](https://goreportcard.com/badge/github.com/nikogura/vault-authenticator)](https://goreportcard.com/report/github.com/nikogura/vault-authenticator)\n\n[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/nikogura/vault-authenticator/pkg/vault-authenticator)\n\nUseful golang functions for interacting with Vault.\n\nVault is a great tool, but programming against it sometimes requires one to go more deeply than one wants to in order to navigate these waters.\n\nThis library abstracts some of the work and provided some high level bindings so that the author of a tool that _uses_ Vault doesn't need to be an expert in Vault.\n\nThe crown jewel is the `authenticator` object which has has one main method: Auth().  This method tries to authenticate to Vault in a number of ways and returns an authenticated Vault client for the first one that succeeds.\n\n## Configuration\n\nTo configure `authenticator`, create the object via it's constructor:\n\n    auth = authenticator.NewAuthenticator()\n    \n    \nThen set the address of the Vault server:\n\n\tauth.SetAddress(\"https://vault.example.com\")\n\t\n\t\nSet a private CA if you're using one:\n\n\tauth.SetCACertificate(`-----BEGIN CERTIFICATE-----\n\t...\n    -----END CERTIFICATE-----\n    `)\n\n\nSet Auth methods.  These will be tried in order:\n\n\tauth.SetAuthMethods([]string{\n\t\t\"iam\",\n\t\t\"k8s\",\n\t\t\"tls\",\n\t\t\"ldap\",\n\t})\n\t\nIf your usernames don't necessarily map to posix users on the system:\n\n\tauth.SetUsernameFunc(somelib.GetUsername)\n\t\n\nFinally, if using TLS Auth, set the locations of the client certs:\n\n\tauth.SetTlsClientCrtPath(\"/path/to/cert.crt\")\n\tauth.SetTlsClientKeyPath(\"/path/to/key.key\")\n\t\n\t\nAfter that, simply run:\n\n    client, err := auth.Auth()\n    if err != nil {\n      log.Fatalf(\"Auth failed: %s\", err)\n    }\n    \n    path := \"/secret/foo\n    \n    secret, err := authenticator.GetSecret(client, path)\n    if err != nil {\n      log.Fatalf(\"Failed getting secret from %s: %s\", path, err)\n    }\n    \n    ... do something with secret ...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikogura%2Fvault-authenticator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikogura%2Fvault-authenticator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikogura%2Fvault-authenticator/lists"}