{"id":50547271,"url":"https://github.com/launchdarkly/go-server-sdk-consul","last_synced_at":"2026-06-04T00:01:03.697Z","repository":{"id":42045636,"uuid":"277624152","full_name":"launchdarkly/go-server-sdk-consul","owner":"launchdarkly","description":"Consul integration for the LaunchDarkly SDK for Server-side Go","archived":false,"fork":false,"pushed_at":"2026-05-27T17:38:50.000Z","size":93,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":36,"default_branch":"v3","last_synced_at":"2026-05-27T19:24:11.896Z","etag":null,"topics":["consul","feature-flags","feature-toggles","go","golang","launchdarkly","launchdarkly-sdk","launchdarkly-sdk-component","managed-by-terraform"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/launchdarkly.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-07-06T18:55:11.000Z","updated_at":"2026-05-07T17:08:20.000Z","dependencies_parsed_at":"2025-07-08T18:55:20.438Z","dependency_job_id":null,"html_url":"https://github.com/launchdarkly/go-server-sdk-consul","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/launchdarkly/go-server-sdk-consul","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fgo-server-sdk-consul","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fgo-server-sdk-consul/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fgo-server-sdk-consul/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fgo-server-sdk-consul/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/launchdarkly","download_url":"https://codeload.github.com/launchdarkly/go-server-sdk-consul/tar.gz/refs/heads/v3","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fgo-server-sdk-consul/sbom","scorecard":{"id":579927,"data":{"date":"2025-08-11","repo":{"name":"github.com/launchdarkly/go-server-sdk-consul","commit":"071c883e8d1b02df2a31174e9684ece4ee99c94d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"checks":[{"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":"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":3,"reason":"Found 7/20 approved changesets -- score normalized to 3","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":"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":"Security-Policy","score":9,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Warn: One or no descriptive hints of disclosure, vulnerability, and/or timelines in security policy","Info: Found text in security policy: SECURITY.md:1"],"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":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-go-versions.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk-consul/check-go-versions.yml/v3?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-go-versions.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk-consul/check-go-versions.yml/v3?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-go-versions.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk-consul/check-go-versions.yml/v3?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk-consul/ci.yml/v3?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk-consul/ci.yml/v3?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/common_ci.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk-consul/common_ci.yml/v3?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/common_ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk-consul/common_ci.yml/v3?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go-versions.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk-consul/go-versions.yml/v3?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-please.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk-consul/release-please.yml/v3?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/stale.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/launchdarkly/go-server-sdk-consul/stale.yml/v3?enable=pin","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   4 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: jobLevel 'contents' permission set to 'write': .github/workflows/check-go-versions.yml:34","Warn: no topLevel permission defined: .github/workflows/check-go-versions.yml:1","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/common_ci.yml:1","Warn: no topLevel permission defined: .github/workflows/go-versions.yml:1","Warn: no topLevel permission defined: .github/workflows/release-please.yml:1","Warn: no topLevel permission defined: .github/workflows/stale.yml: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":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Warn: project license file does not contain an FSF or OSI license."],"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 17 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"}}]},"last_synced_at":"2025-08-20T18:56:01.128Z","repository_id":42045636,"created_at":"2025-08-20T18:56:01.128Z","updated_at":"2025-08-20T18:56:01.128Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33884734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-03T02:00:06.370Z","response_time":59,"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","feature-flags","feature-toggles","go","golang","launchdarkly","launchdarkly-sdk","launchdarkly-sdk-component","managed-by-terraform"],"created_at":"2026-06-04T00:01:02.285Z","updated_at":"2026-06-04T00:01:03.682Z","avatar_url":"https://github.com/launchdarkly.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LaunchDarkly Server-side SDK for Go - Consul integration\n\n[![Actions Status](https://github.com/launchdarkly/go-server-sdk-consul/actions/workflows/ci.yml/badge.svg?branch=v3)](https://github.com/launchdarkly/go-server-sdk-consul/actions/workflows/ci.yml)\n[![Documentation](https://img.shields.io/static/v1?label=go.dev\u0026message=reference\u0026color=00add8)](https://pkg.go.dev/github.com/launchdarkly/go-server-sdk-consul/v3)\n\nThis library provides a [Consul](https://www.consul.io/)-backed persistence mechanism (data store) for the [LaunchDarkly Go SDK](https://github.com/launchdarkly/go-server-sdk), replacing the default in-memory data store. It uses the standard [Consul Go client](https://github.com/hashicorp/consul).\n\nThis version of the library requires at least version 6.0.0 of the LaunchDarkly Go SDK; for versions of the library to use with earlier SDK versions, see the changelog.\n\nThe minimum Go version is 1.18.\n\nFor more information, see also: [Using Consul as a persistent feature store](https://docs.launchdarkly.com/sdk/features/storing-data/consul#go).\n\n## Quick setup\n\nThis assumes that you have already installed the LaunchDarkly Go SDK.\n\n1. Import the LaunchDarkly SDK packages and the package for this library:\n\n```go\nimport (\n    ld \"github.com/launchdarkly/go-server-sdk/v7\"\n    \"github.com/launchdarkly/go-server-sdk/v7/ldcomponents\"\n    ldconsul \"github.com/launchdarkly/go-server-sdk-consul/v3\"\n)\n```\n\n2. When configuring your SDK client, add the Consul data store as a `PersistentDataStore`. You may specify any custom Consul options using the methods of `ConsulDataStoreBuilder`. For instance, to customize the Consul hostname:\n\n```go\n    var config ld.Config{}\n    config.DataStore = ldcomponents.PersistentDataStore(\n        ldconsul.DataStore().Address(\"my-consul-host\"),\n    )\n```\n\nBy default, the store will try to connect to a local Consul instance on port 8500.\n\n## Caching behavior\n\nThe LaunchDarkly SDK has a standard caching mechanism for any persistent data store, to reduce database traffic. This is configured through the SDK's `PersistentDataStoreBuilder` class as described the SDK documentation. For instance, to specify a cache TTL of 5 minutes:\n\n```go\n    var config ld.Config{}\n    config.DataStore = ldcomponents.PersistentDataStore(\n        ldconsul.DataStore(),\n    ).CacheMinutes(5)\n```\n\n## Data size limitation\n\nConsul does not support storing values greater than 512KB. Therefore, this integration will not work if the JSON representation of any feature flag or user segment exceeds that size.\n\nTo see the JSON representations of all flags and segments, query `https://app.launchdarkly.com/sdk/latest-all` with your SDK key in an `Authorization` header.\n\n## LaunchDarkly overview\n\n[LaunchDarkly](https://www.launchdarkly.com) is a feature management platform that serves trillions of feature flags daily to help teams build better software, faster. [Get started](https://docs.launchdarkly.com/docs/getting-started) using LaunchDarkly today!\n\n## About LaunchDarkly\n\n* LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard.  With LaunchDarkly, you can:\n    * Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group), gathering feedback and bug reports from real-world use cases.\n    * Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).\n    * Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.\n    * Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan). Disable parts of your application to facilitate maintenance, without taking everything offline.\n* LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Read [our documentation](https://docs.launchdarkly.com/sdk) for a complete list.\n* Explore LaunchDarkly\n    * [launchdarkly.com](https://www.launchdarkly.com/ \"LaunchDarkly Main Website\") for more information\n    * [docs.launchdarkly.com](https://docs.launchdarkly.com/  \"LaunchDarkly Documentation\") for our documentation and SDK reference guides\n    * [apidocs.launchdarkly.com](https://apidocs.launchdarkly.com/  \"LaunchDarkly API Documentation\") for our API documentation\n    * [blog.launchdarkly.com](https://blog.launchdarkly.com/  \"LaunchDarkly Blog Documentation\") for the latest product updates\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchdarkly%2Fgo-server-sdk-consul","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaunchdarkly%2Fgo-server-sdk-consul","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchdarkly%2Fgo-server-sdk-consul/lists"}