{"id":20791479,"url":"https://github.com/kvtools/consul","last_synced_at":"2026-04-02T02:02:39.729Z","repository":{"id":58891232,"uuid":"533847605","full_name":"kvtools/consul","owner":"kvtools","description":"Valkeyrie: consul","archived":false,"fork":false,"pushed_at":"2025-03-27T22:40:05.000Z","size":147,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-05T21:26:16.923Z","etag":null,"topics":["consul","go","golang","kv-store","valkeyrie"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kvtools.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},"funding":{"github":"ldez","ko_fi":"ldez_oss","liberapay":"ldez","thanks_dev":"u/gh/ldez"}},"created_at":"2022-09-07T16:25:07.000Z","updated_at":"2025-03-27T22:40:08.000Z","dependencies_parsed_at":"2024-11-17T15:47:28.835Z","dependency_job_id":"9c3e8567-9033-4a13-964e-fabf16c21da4","html_url":"https://github.com/kvtools/consul","commit_stats":{"total_commits":93,"total_committers":18,"mean_commits":5.166666666666667,"dds":0.5913978494623655,"last_synced_commit":"3ecbcd9ed6a613e61eeb067fa6b8e0e1b94e885b"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/kvtools/consul","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvtools%2Fconsul","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvtools%2Fconsul/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvtools%2Fconsul/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvtools%2Fconsul/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kvtools","download_url":"https://codeload.github.com/kvtools/consul/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvtools%2Fconsul/sbom","scorecard":{"id":574600,"data":{"date":"2025-08-11","repo":{"name":"github.com/kvtools/consul","commit":"7e538a74317e6afaba49371f8524b870122f34bc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.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":"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":"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":"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/build.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/kvtools/consul/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/kvtools/consul/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/kvtools/consul/build.yml/main?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/build.yml:29","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 downloadThenRun 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":"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":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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.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":"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: Apache License 2.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":"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":"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":"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-20T17:18:59.205Z","repository_id":58891232,"created_at":"2025-08-20T17:18:59.205Z","updated_at":"2025-08-20T17:18:59.205Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["consul","go","golang","kv-store","valkeyrie"],"created_at":"2024-11-17T15:45:02.675Z","updated_at":"2026-04-02T02:02:39.673Z","avatar_url":"https://github.com/kvtools.png","language":"Go","funding_links":["https://github.com/sponsors/ldez","https://ko-fi.com/ldez_oss","https://liberapay.com/ldez","https://thanks.dev/u/gh/ldez"],"categories":[],"sub_categories":[],"readme":"# Valkeyrie Consul\n\n[![GoDoc](https://godoc.org/github.com/kvtools/consul?status.png)](https://godoc.org/github.com/kvtools/consul)\n[![Build Status](https://github.com/kvtools/consul/actions/workflows/build.yml/badge.svg)](https://github.com/kvtools/consul/actions/workflows/build.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/kvtools/consul)](https://goreportcard.com/report/github.com/kvtools/consul)\n\n[`valkeyrie`](https://github.com/kvtools/valkeyrie) provides a Go native library to store metadata using Distributed Key/Value stores (or common databases).\n\n## Compatibility\n\nA **storage backend** in `valkeyrie` implements (fully or partially) the [Store](https://github.com/kvtools/valkeyrie/blob/master/store/store.go#L69) interface.\n\n| Calls                 | Consul |\n|-----------------------|:------:|\n| Put                   |  🟢️   |\n| Get                   |  🟢️   |\n| Delete                |  🟢️   |\n| Exists                |  🟢️   |\n| Watch                 |  🟢️   |\n| WatchTree             |  🟢️   |\n| NewLock (Lock/Unlock) |  🟢️   |\n| List                  |  🟢️   |\n| DeleteTree            |  🟢️   |\n| AtomicPut             |  🟢️   |\n| AtomicDelete          |  🟢️   |\n\n## Supported Versions\n\nConsul versions \u003e= `0.5.1` because it uses Sessions with `Delete` behavior for the use of `TTLs` (mimics zookeeper's Ephemeral node support).\nIf you don't plan to use `TTLs`: you can use Consul version `0.4.0+`.\n\n## Examples\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"log\"\n\t\"time\"\n\n\t\"github.com/kvtools/consul\"\n\t\"github.com/kvtools/valkeyrie\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\n\tconfig := \u0026consul.Config{\n\t\tConnectionTimeout: 10 * time.Second,\n\t}\n\n\tkv, err := valkeyrie.NewStore(ctx, consul.StoreName, []string{\"localhost:8500\"}, config)\n\tif err != nil {\n\t\tlog.Fatal(\"Cannot create store\")\n\t}\n\n\tkey := \"foo\"\n\n\terr = kv.Put(ctx, key, []byte(\"bar\"), nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"Error trying to put value at key: %v\", key)\n\t}\n\n\tpair, err := kv.Get(ctx, key, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"Error trying accessing value at key: %v\", key)\n\t}\n\n\tlog.Printf(\"value: %s\", string(pair.Value))\n\t\n\terr = kv.Delete(ctx, key)\n\tif err != nil {\n\t\tlog.Fatalf(\"Error trying to delete key %v\", key)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkvtools%2Fconsul","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkvtools%2Fconsul","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkvtools%2Fconsul/lists"}