{"id":19382729,"url":"https://github.com/authzed/consistent","last_synced_at":"2025-10-13T08:06:07.836Z","repository":{"id":185209298,"uuid":"672781412","full_name":"authzed/consistent","owner":"authzed","description":"gRPC Balancer that routes requests using a consistent hashring","archived":false,"fork":false,"pushed_at":"2025-08-27T18:47:41.000Z","size":142,"stargazers_count":45,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-29T12:52:51.018Z","etag":null,"topics":["consistent-hash-ring","grpc","grpc-client","grpc-go","load-balancer"],"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/authzed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE-OF-CONDUCT.md","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":"2023-07-31T06:44:52.000Z","updated_at":"2025-08-27T18:46:48.000Z","dependencies_parsed_at":"2024-06-19T00:02:52.539Z","dependency_job_id":"21fd56b8-5534-4b4e-a436-f2b0762fbc29","html_url":"https://github.com/authzed/consistent","commit_stats":null,"previous_names":["authzed/consistent"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/authzed/consistent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/authzed%2Fconsistent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/authzed%2Fconsistent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/authzed%2Fconsistent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/authzed%2Fconsistent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/authzed","download_url":"https://codeload.github.com/authzed/consistent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/authzed%2Fconsistent/sbom","scorecard":{"id":217128,"data":{"date":"2025-08-11","repo":{"name":"github.com/authzed/consistent","commit":"d840d6006d8459687282bd2f6887044ac80962e6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"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":"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":"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":"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":"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: third-party GitHubAction not pinned by hash: .github/workflows/cla.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/authzed/consistent/cla.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint-test.yaml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/authzed/consistent/lint-test.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint-test.yaml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/authzed/consistent/lint-test.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint-test.yaml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/authzed/consistent/lint-test.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint-test.yaml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/authzed/consistent/lint-test.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint-test.yaml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/authzed/consistent/lint-test.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint-test.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/authzed/consistent/lint-test.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint-test.yaml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/authzed/consistent/lint-test.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint-test.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/authzed/consistent/lint-test.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint-test.yaml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/authzed/consistent/lint-test.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint-test.yaml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/authzed/consistent/lint-test.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint-test.yaml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/authzed/consistent/lint-test.yaml/main?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   9 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":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/lint-test.yaml:38","Info: jobLevel 'contents' permission set to 'read': .github/workflows/lint-test.yaml:39","Warn: jobLevel 'security-events' permission set to 'write': .github/workflows/lint-test.yaml:40","Warn: no topLevel permission defined: .github/workflows/cla.yaml:1","Warn: no topLevel permission defined: .github/workflows/lint-test.yaml:1"],"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":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":"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":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2023-2153 / GHSA-m425-mq94-257g / GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2611 / GHSA-8r3f-844c-mc37"],"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-17T01:51:57.942Z","repository_id":185209298,"created_at":"2025-08-17T01:51:57.942Z","updated_at":"2025-08-17T01:51:57.942Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014290,"owners_count":26085489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"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":["consistent-hash-ring","grpc","grpc-client","grpc-go","load-balancer"],"created_at":"2024-11-10T09:23:00.526Z","updated_at":"2025-10-13T08:06:07.807Z","avatar_url":"https://github.com/authzed.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# consistent\n\n[![GoDoc](https://godoc.org/github.com/authzed/consistent?status.svg)](https://godoc.org/github.com/authzed/consistent)\n[![Discord Server](https://img.shields.io/discord/844600078504951838?color=7289da\u0026logo=discord \"Discord Server\")](https://authzed.com/discord)\n[![Twitter](https://img.shields.io/badge/twitter-%40authzed-1D8EEE?logo=twitter \"@authzed on Twitter\")](https://twitter.com/authzed)\n\nThis package implements a gRPC Balancer that routes requests based upon a consistent hashring.\nThe hashing algorithm is customizable, but xxhash is recommended.\nIt was originally built to serve [SpiceDB](https://github.com/authzed/spicedb), but has been extracted from that repository to be made available for other projects.\n\nIn order to use this balancer, you must:\n\n1. Register the balancer (typically in `main`):\n\n```go\nbalancer.Register(consistent.NewBuilder(xxhash.Sum64))\n```\n\n2. Configure the connections:\n\n```go\n// This is using the defaults, but you can create your own config.\ngrpc.Dial(addr, grpc.WithDefaultServiceConfig(consistent.DefaultServiceConfigJSON))\n```\n\n## Acknowledgements\n\nThis project is a community effort fueled by contributions from both organizations and individuals.\nWe appreciate all contributions, large and small, and would like to thank all those involved.\n\nA large portion of the structure of this library is based off of the example implementation in [grpc-go](https://github.com/grpc/grpc-go).\nThat original work is copyrighted by the gRPC authors and licensed under the Apache License, Version 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauthzed%2Fconsistent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fauthzed%2Fconsistent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauthzed%2Fconsistent/lists"}