From 64dc44c913568b2023224044351f2a3d02fdd63b Mon Sep 17 00:00:00 2001 From: LaunchDarklyReleaseBot <86431345+LaunchDarklyReleaseBot@users.noreply.github.com> Date: Mon, 6 Feb 2023 12:37:19 -0800 Subject: [PATCH] prepare 7.0.3 release (#219) * Migrate transitive dep (jwt-go) to use modern version without vulnerability. * Edit doc * move Relay release logic to .ldrelease script * suppress SDK big segments status query if we've never synced big segments * dump Relay logs including debug logs if integration test fails * include environment prefix in BigSegmentSynchronizer logging * increase big segment integration test timeout (#274) * generate client-side stream pings if big segments have changed * clear big segments cache as needed + simplify state management * fix tests and simplify component creation * use GA releases of SDK packages * disable CI package-build-test in Go 1.16+ * Migrate Relay release to Releaser v2 and support dry run (#278) * Adding degraded doc blurb for big segments (#280) * respect Redis password & TLS options for big segments; add Redis password integration tests * redact Redis URL password in logs and status resource * update go-server-sdk-redis-redigo to 1.2.1 for Redis URL logging fix * Part 1, add the config and the documentation for the new config * Part 2, Add the configuration validation and test * Part 3, the actual logic to include the headers in the CORS Access-Control-Allow-Headers * Linter * update Alpine version to 3.14.2 to fix openssl CVEs * Fix the global variable modification * Go format * turn off unnecessary metrics integrations in config for Docker smoke test * rename test.env to smoke-test.env to clarify what it's for * fix setting of custom Access-Control-Allow-Origin and add test (#285) * add more explanatory test output and more verbose debugging for big segments integration tests (#287) * update to Go 1.16.10 + Alpine 3.14.3; add some docs about releases (#288) * update go-server-sdk-consul version for Consul API version update * override x/crypto dependency version for CVE-2020-29652 * bump Prometheus dependency to eliminate jwt-go vulnerability * drop support for Go 1.14 & 1.15 * make sure defaults are always applied for base URL properties * rm unused * rm unnecessary linter directive * add separate configuration for server-side/client-side SDK base URLs & update the defaults * remove Whitesource CI job + remove obsolete dependency issue note * don't include any big segment status info in status resource unless that feature is active (#296) * don't include any big segment status info in status resource unless that feature is active * fix Big Segments staleness logic in status resource * documentation * update x/text package for vulnerability GO-2021-0113 * add Trivy security scan to CI (#297) * add daily re-scan with Trivy * use long timeout when awaiting changes related to file mod watching * update Go version to 1.17.6 (#301) * always terminate if auto-config stream fails with a fatal error * pass along tags header when proxying events * comments, rm debugging * fix auth header logic * fix auth header logic some more * comments * add tags header to CORS header whitelist (#304) * update to Alpine 3.14.4 for CVE-2022-0778 fix * minimal changes for using prerelease Go SDK v6 (#306) * revise "summarizing" event proxy logic to use new event processor * comments * force upgrade of openssl in Alpine * also upgrade libretls * fix it in both files * update to Alpine 3.14.5 for CVE-2022-0778/CVE-2018-25032 (#308) * update to Alpine 3.14.5 for CVE-2022-0778 * revert patches that are now included in Alpine 3.14.5 * add scripts for checking and updating Go/Alpine versions (#309) * update to Alpine 3.14.5 for CVE-2022-0778 * add scripts for checking and updating Go/Alpine versions * also make sure the Docker images really exist * update CONTRIBUTING.md * fix file rename * revert patches that are now included in Alpine 3.14.5 * add support & tests for handling any kind of context in eval endpoints * move some constants and test code out of internal/core/internal/... * use a clearer import alias * refactoring * move packages from core/ and core/internal/ to internal/ * fix linting * update Alpine to 3.14.6 for CVE-2022-28391 * merge RelayCore logic into Relay and remove the core package (#315) * merge RelayCore logic into Relay and remove the core package * don't export these fields * fix tests * comment * update SDK packages (includes sc-136333 fix) * don't include "v" prefix in Docker image version * update go-server-sdk-dynamodb for data size error fix & add docs (#316) * update builds to use Go 1.17.9 and fix the update script * update go-server-sdk-consul to latest release * update remote Docker version * update golang.org/x/crypto for CVE-2022-27191 (#321) * update golang.org/x/crypto for CVE-2022-27191 * fix go.sum * update eventsource for SSE output efficiency fix (#322) * Cache the replay event in case we get multiple new client connections (#189) * Cache the replay event in case we get multiple new client connections * Use singleflight to ensure only one replay event is generated at a time Co-authored-by: Moshe Good * don't install curl in Docker images * fix makefile logic for lint step * remove indirect curl-based request logic in integration tests * fix linter installation * update Go to 1.17.11, Alpine to 3.16.0 * improve concurrency test to verify that the data is or isn't from a separate query * fix lint warnings and remove unnecessary error return * use latest prerelease packages, update for misc SDK API changes (interfaces package) * update libssl & libcrypto versions for CVE-2022-2097 * add security scan of already-published Docker image (#328) * update Alpine version and some Go libraries to address CVEs (#329) * use Alpine 3.16.1 * update golang.org/x/net and golang.org/x/sync patch versions for CVEs * update golang.org/x/sys patch version for CVE * update Prometheus client library for CVE-2022-21698 * ensure that DynamoDB config is consistent between Big Segments and regular data store * comment * update Alpine to 3.16.2 * update golangci-lint and go-junit-report * fix CI * prevent traversal of directories outside target path when expanding archive * enforce TLS >= 1.2 for secure Redis * misc linter updates * fix test message * add Go 1.18 & 1.19 jobs * make test expectation less Go-version-dependent * linting * revert unnecessary change * fix installation of test coverage tool * add "context" URL paths for evaluations, update endpoint docs * fix tests * bump minimum Go to 1.18, build images in 1.19 * linter + misc fixes * "latest" Go image is no longer a thing * fix TLS test * fix command to run coverage enforcer * fix vulnerable dependencies * migrate to AWS Go SDK v2 for DynamoDB (#333) * remove obsolete "eval" endpoints superseded by "evalx" (#338) * remove obsolete "eval" endpoints superseded by "evalx" * fix tests & examples * fix more tests * update AWS SDK and related packages on u2c branch (#341) * update to Go 1.19.2 * update golang.org/x/net for CVE-2022-27664 * update golang.org/x/text for CVE-2022-32149 * update Consul API dependency to avoid false report of CVE-2022-40716 * switch to fork of Stackdriver metrics client to remove AWS transitive dependency (#343) * use latest Go SDK prerelease packages, update for API changes * lint * streamline test code using go-test-helpers v3 * remove some more unnecessary helpers * fix test app * use latest SDK packages * use Go SDK v6.0.0 and latest releases of database integrations * update to Go 1.19.4 and Alpine 3.16.3 * override golang.org/x/net for CVE-2022-41717 (even though the fix is also bundled in Go 1.19.4) * update to Go 1.19.4 and Alpine 3.16.3 * override golang.org/x/net for CVE-2022-41717 only when building executables for release * prepare 6.7.15 release (#212) * don't return 503 if SDK initialization has timed out * add in-repo docs about error/503 behavior (#249) * [ch102255] BigSegments DynamoDB (#245) * add init timeout config option + better test coverage + misc refactoring (#250) * fix example build command * use public prerelease tags instead of private dependencies * fix Go installation in CI * update SDK dependencies for JSON number parsing bugfix * update gorilla/mux to 1.8.0 * update OpenCensus packages * add Go 1.16 CI + "latest Go" CI + use latest 1.15 patch for release * cimg images use "current", not "latest" * seems there isn't any cimg/go "latest" or "current" * add daily package build test in CI * job names * bump SDK version for traffic allocation feature * [ch113491] update alpine base image (#258) * use latest prerelease SDK * fix enabling of test tags in CI * add DynamoDB docker image in CI * set a polling base URI in end-to-end tests since big segments logic will use it * fix initialization logic so SDK client creation errors aren't lost when big segments are enabled * fix use of prefix key in DynamoDB + improve tests (#260) * more debug logging, less info logging for big segments logic * make logging of big segments patch version mismatch clearer and use Warn level * fix log parameter * fix DynamoDB updates for big segments metadata * add test to make sure sync time and cursor can be updated independently * only start big seg synchronizer if necessary * use SDK GA releases * change applyPatch to exit early on version mismatch; go back to restarting stream in this case * add unit tests for version mismatch behavior + DRY tests * add log assertion * fix retry logic on big segments stream failure * add more logging for big segments connection status * fix logging assertion * add more big segments integration tests * fix overly-time-sensitive file data tests * fix more flaky tests * run big segments tests with DynamoDB too * Migrate transitive dep (jwt-go) to use modern version without vulnerability. * Edit doc * move Relay release logic to .ldrelease script * suppress SDK big segments status query if we've never synced big segments * dump Relay logs including debug logs if integration test fails * include environment prefix in BigSegmentSynchronizer logging * increase big segment integration test timeout (#274) * generate client-side stream pings if big segments have changed * clear big segments cache as needed + simplify state management * fix tests and simplify component creation * use GA releases of SDK packages * disable CI package-build-test in Go 1.16+ * Migrate Relay release to Releaser v2 and support dry run (#278) * Adding degraded doc blurb for big segments (#280) * respect Redis password & TLS options for big segments; add Redis password integration tests * redact Redis URL password in logs and status resource * update go-server-sdk-redis-redigo to 1.2.1 for Redis URL logging fix * Part 1, add the config and the documentation for the new config * Part 2, Add the configuration validation and test * Part 3, the actual logic to include the headers in the CORS Access-Control-Allow-Headers * Linter * update Alpine version to 3.14.2 to fix openssl CVEs * Fix the global variable modification * Go format * turn off unnecessary metrics integrations in config for Docker smoke test * rename test.env to smoke-test.env to clarify what it's for * fix setting of custom Access-Control-Allow-Origin and add test (#285) * add more explanatory test output and more verbose debugging for big segments integration tests (#287) * update to Go 1.16.10 + Alpine 3.14.3; add some docs about releases (#288) * update go-server-sdk-consul version for Consul API version update * override x/crypto dependency version for CVE-2020-29652 * bump Prometheus dependency to eliminate jwt-go vulnerability * drop support for Go 1.14 & 1.15 * make sure defaults are always applied for base URL properties * rm unused * rm unnecessary linter directive * add separate configuration for server-side/client-side SDK base URLs & update the defaults * remove Whitesource CI job + remove obsolete dependency issue note * don't include any big segment status info in status resource unless that feature is active (#296) * don't include any big segment status info in status resource unless that feature is active * fix Big Segments staleness logic in status resource * documentation * update x/text package for vulnerability GO-2021-0113 * add Trivy security scan to CI (#297) * add daily re-scan with Trivy * use long timeout when awaiting changes related to file mod watching * update Go version to 1.17.6 (#301) * always terminate if auto-config stream fails with a fatal error * pass along tags header when proxying events * comments, rm debugging * fix auth header logic * fix auth header logic some more * comments * add tags header to CORS header whitelist (#304) * update to Alpine 3.14.4 for CVE-2022-0778 fix * force upgrade of openssl in Alpine * also upgrade libretls * fix it in both files * update to Alpine 3.14.5 for CVE-2022-0778/CVE-2018-25032 (#308) * update to Alpine 3.14.5 for CVE-2022-0778 * revert patches that are now included in Alpine 3.14.5 * add scripts for checking and updating Go/Alpine versions (#309) * update to Alpine 3.14.5 for CVE-2022-0778 * add scripts for checking and updating Go/Alpine versions * also make sure the Docker images really exist * update CONTRIBUTING.md * fix file rename * revert patches that are now included in Alpine 3.14.5 * update Alpine to 3.14.6 for CVE-2022-28391 * update SDK packages (includes sc-136333 fix) * don't include "v" prefix in Docker image version * update go-server-sdk-dynamodb for data size error fix & add docs (#316) * update builds to use Go 1.17.9 and fix the update script * update go-server-sdk-consul to latest release * update remote Docker version * update golang.org/x/crypto for CVE-2022-27191 (#321) * update golang.org/x/crypto for CVE-2022-27191 * fix go.sum * update eventsource for SSE output efficiency fix (#322) * Cache the replay event in case we get multiple new client connections (#189) * Cache the replay event in case we get multiple new client connections * Use singleflight to ensure only one replay event is generated at a time Co-authored-by: Moshe Good * don't install curl in Docker images * fix makefile logic for lint step * remove indirect curl-based request logic in integration tests * fix linter installation * update Go to 1.17.11, Alpine to 3.16.0 * improve concurrency test to verify that the data is or isn't from a separate query * fix lint warnings and remove unnecessary error return * update libssl & libcrypto versions for CVE-2022-2097 * add security scan of already-published Docker image (#328) * update Alpine version and some Go libraries to address CVEs (#329) * use Alpine 3.16.1 * update golang.org/x/net and golang.org/x/sync patch versions for CVEs * update golang.org/x/sys patch version for CVE * update Prometheus client library for CVE-2022-21698 * ensure that DynamoDB config is consistent between Big Segments and regular data store * comment * update Alpine to 3.16.2 * update golangci-lint and go-junit-report * fix CI * prevent traversal of directories outside target path when expanding archive * enforce TLS >= 1.2 for secure Redis * misc linter updates * fix test message * add Go 1.18 & 1.19 jobs * make test expectation less Go-version-dependent * linting * revert unnecessary change * fix installation of test coverage tool * migrate to AWS Go SDK v2 for DynamoDB (#333) * update to Go 1.19.2 * update golang.org/x/net for CVE-2022-27664 * update golang.org/x/text for CVE-2022-32149 * update Consul API dependency to avoid false report of CVE-2022-40716 * switch to fork of Stackdriver metrics client to remove AWS transitive dependency (#343) * update to Go 1.19.4 and Alpine 3.16.3 * override golang.org/x/net for CVE-2022-41717 only when building executables for release Co-authored-by: Eli Bishop Co-authored-by: LaunchDarklyCI Co-authored-by: hroederld Co-authored-by: LaunchDarklyReleaseBot Co-authored-by: Dan Richelson Co-authored-by: Dan Richelson Co-authored-by: Ben Woskow <48036130+bwoskow-ld@users.noreply.github.com> Co-authored-by: Ben Woskow Co-authored-by: Louis Chan Co-authored-by: Louis Chan <91093020+louis-launchdarkly@users.noreply.github.com> Co-authored-by: Moshe Good Co-authored-by: Moshe Good * Releasing version 6.7.15 * redo the security patch by updating go.mod for all builds; drop Go 1.16 * prepare 6.7.16 release (#214) * [ch102255] BigSegments DynamoDB (#245) * add init timeout config option + better test coverage + misc refactoring (#250) * fix example build command * use public prerelease tags instead of private dependencies * fix Go installation in CI * update SDK dependencies for JSON number parsing bugfix * update gorilla/mux to 1.8.0 * update OpenCensus packages * add Go 1.16 CI + "latest Go" CI + use latest 1.15 patch for release * cimg images use "current", not "latest" * seems there isn't any cimg/go "latest" or "current" * add daily package build test in CI * job names * bump SDK version for traffic allocation feature * [ch113491] update alpine base image (#258) * use latest prerelease SDK * fix enabling of test tags in CI * add DynamoDB docker image in CI * set a polling base URI in end-to-end tests since big segments logic will use it * fix initialization logic so SDK client creation errors aren't lost when big segments are enabled * fix use of prefix key in DynamoDB + improve tests (#260) * more debug logging, less info logging for big segments logic * make logging of big segments patch version mismatch clearer and use Warn level * fix log parameter * fix DynamoDB updates for big segments metadata * add test to make sure sync time and cursor can be updated independently * only start big seg synchronizer if necessary * use SDK GA releases * change applyPatch to exit early on version mismatch; go back to restarting stream in this case * add unit tests for version mismatch behavior + DRY tests * add log assertion * fix retry logic on big segments stream failure * add more logging for big segments connection status * fix logging assertion * add more big segments integration tests * fix overly-time-sensitive file data tests * fix more flaky tests * run big segments tests with DynamoDB too * Migrate transitive dep (jwt-go) to use modern version without vulnerability. * Edit doc * move Relay release logic to .ldrelease script * suppress SDK big segments status query if we've never synced big segments * dump Relay logs including debug logs if integration test fails * include environment prefix in BigSegmentSynchronizer logging * increase big segment integration test timeout (#274) * generate client-side stream pings if big segments have changed * clear big segments cache as needed + simplify state management * fix tests and simplify component creation * use GA releases of SDK packages * disable CI package-build-test in Go 1.16+ * Migrate Relay release to Releaser v2 and support dry run (#278) * Adding degraded doc blurb for big segments (#280) * respect Redis password & TLS options for big segments; add Redis password integration tests * redact Redis URL password in logs and status resource * update go-server-sdk-redis-redigo to 1.2.1 for Redis URL logging fix * Part 1, add the config and the documentation for the new config * Part 2, Add the configuration validation and test * Part 3, the actual logic to include the headers in the CORS Access-Control-Allow-Headers * Linter * update Alpine version to 3.14.2 to fix openssl CVEs * Fix the global variable modification * Go format * turn off unnecessary metrics integrations in config for Docker smoke test * rename test.env to smoke-test.env to clarify what it's for * fix setting of custom Access-Control-Allow-Origin and add test (#285) * add more explanatory test output and more verbose debugging for big segments integration tests (#287) * update to Go 1.16.10 + Alpine 3.14.3; add some docs about releases (#288) * update go-server-sdk-consul version for Consul API version update * override x/crypto dependency version for CVE-2020-29652 * bump Prometheus dependency to eliminate jwt-go vulnerability * drop support for Go 1.14 & 1.15 * make sure defaults are always applied for base URL properties * rm unused * rm unnecessary linter directive * add separate configuration for server-side/client-side SDK base URLs & update the defaults * remove Whitesource CI job + remove obsolete dependency issue note * don't include any big segment status info in status resource unless that feature is active (#296) * don't include any big segment status info in status resource unless that feature is active * fix Big Segments staleness logic in status resource * documentation * update x/text package for vulnerability GO-2021-0113 * add Trivy security scan to CI (#297) * add daily re-scan with Trivy * use long timeout when awaiting changes related to file mod watching * update Go version to 1.17.6 (#301) * always terminate if auto-config stream fails with a fatal error * pass along tags header when proxying events * comments, rm debugging * fix auth header logic * fix auth header logic some more * comments * add tags header to CORS header whitelist (#304) * update to Alpine 3.14.4 for CVE-2022-0778 fix * force upgrade of openssl in Alpine * also upgrade libretls * fix it in both files * update to Alpine 3.14.5 for CVE-2022-0778/CVE-2018-25032 (#308) * update to Alpine 3.14.5 for CVE-2022-0778 * revert patches that are now included in Alpine 3.14.5 * add scripts for checking and updating Go/Alpine versions (#309) * update to Alpine 3.14.5 for CVE-2022-0778 * add scripts for checking and updating Go/Alpine versions * also make sure the Docker images really exist * update CONTRIBUTING.md * fix file rename * revert patches that are now included in Alpine 3.14.5 * update Alpine to 3.14.6 for CVE-2022-28391 * update SDK packages (includes sc-136333 fix) * don't include "v" prefix in Docker image version * update go-server-sdk-dynamodb for data size error fix & add docs (#316) * update builds to use Go 1.17.9 and fix the update script * update go-server-sdk-consul to latest release * update remote Docker version * update golang.org/x/crypto for CVE-2022-27191 (#321) * update golang.org/x/crypto for CVE-2022-27191 * fix go.sum * update eventsource for SSE output efficiency fix (#322) * Cache the replay event in case we get multiple new client connections (#189) * Cache the replay event in case we get multiple new client connections * Use singleflight to ensure only one replay event is generated at a time Co-authored-by: Moshe Good * don't install curl in Docker images * fix makefile logic for lint step * remove indirect curl-based request logic in integration tests * fix linter installation * update Go to 1.17.11, Alpine to 3.16.0 * improve concurrency test to verify that the data is or isn't from a separate query * fix lint warnings and remove unnecessary error return * update libssl & libcrypto versions for CVE-2022-2097 * add security scan of already-published Docker image (#328) * update Alpine version and some Go libraries to address CVEs (#329) * use Alpine 3.16.1 * update golang.org/x/net and golang.org/x/sync patch versions for CVEs * update golang.org/x/sys patch version for CVE * update Prometheus client library for CVE-2022-21698 * ensure that DynamoDB config is consistent between Big Segments and regular data store * comment * update Alpine to 3.16.2 * update golangci-lint and go-junit-report * fix CI * prevent traversal of directories outside target path when expanding archive * enforce TLS >= 1.2 for secure Redis * misc linter updates * fix test message * add Go 1.18 & 1.19 jobs * make test expectation less Go-version-dependent * linting * revert unnecessary change * fix installation of test coverage tool * migrate to AWS Go SDK v2 for DynamoDB (#333) * update to Go 1.19.2 * update golang.org/x/net for CVE-2022-27664 * update golang.org/x/text for CVE-2022-32149 * update Consul API dependency to avoid false report of CVE-2022-40716 * switch to fork of Stackdriver metrics client to remove AWS transitive dependency (#343) * update to Go 1.19.4 and Alpine 3.16.3 * override golang.org/x/net for CVE-2022-41717 only when building executables for release * redo the security patch by updating go.mod for all builds; drop Go 1.16 Co-authored-by: LaunchDarklyCI Co-authored-by: hroederld Co-authored-by: Eli Bishop Co-authored-by: LaunchDarklyReleaseBot Co-authored-by: Dan Richelson Co-authored-by: Dan Richelson Co-authored-by: Ben Woskow <48036130+bwoskow-ld@users.noreply.github.com> Co-authored-by: Ben Woskow Co-authored-by: Louis Chan Co-authored-by: Louis Chan <91093020+louis-launchdarkly@users.noreply.github.com> Co-authored-by: Moshe Good Co-authored-by: Moshe Good * Releasing version 6.7.16 * update Redis/DDB integrations to remove misleading error logging * prepare 6.7.17 release (#215) * fix example build command * use public prerelease tags instead of private dependencies * fix Go installation in CI * update SDK dependencies for JSON number parsing bugfix * update gorilla/mux to 1.8.0 * update OpenCensus packages * add Go 1.16 CI + "latest Go" CI + use latest 1.15 patch for release * cimg images use "current", not "latest" * seems there isn't any cimg/go "latest" or "current" * add daily package build test in CI * job names * bump SDK version for traffic allocation feature * [ch113491] update alpine base image (#258) * use latest prerelease SDK * fix enabling of test tags in CI * add DynamoDB docker image in CI * set a polling base URI in end-to-end tests since big segments logic will use it * fix initialization logic so SDK client creation errors aren't lost when big segments are enabled * fix use of prefix key in DynamoDB + improve tests (#260) * more debug logging, less info logging for big segments logic * make logging of big segments patch version mismatch clearer and use Warn level * fix log parameter * fix DynamoDB updates for big segments metadata * add test to make sure sync time and cursor can be updated independently * only start big seg synchronizer if necessary * use SDK GA releases * change applyPatch to exit early on version mismatch; go back to restarting stream in this case * add unit tests for version mismatch behavior + DRY tests * add log assertion * fix retry logic on big segments stream failure * add more logging for big segments connection status * fix logging assertion * add more big segments integration tests * fix overly-time-sensitive file data tests * fix more flaky tests * run big segments tests with DynamoDB too * Migrate transitive dep (jwt-go) to use modern version without vulnerability. * Edit doc * move Relay release logic to .ldrelease script * suppress SDK big segments status query if we've never synced big segments * dump Relay logs including debug logs if integration test fails * include environment prefix in BigSegmentSynchronizer logging * increase big segment integration test timeout (#274) * generate client-side stream pings if big segments have changed * clear big segments cache as needed + simplify state management * fix tests and simplify component creation * use GA releases of SDK packages * disable CI package-build-test in Go 1.16+ * Migrate Relay release to Releaser v2 and support dry run (#278) * Adding degraded doc blurb for big segments (#280) * respect Redis password & TLS options for big segments; add Redis password integration tests * redact Redis URL password in logs and status resource * update go-server-sdk-redis-redigo to 1.2.1 for Redis URL logging fix * Part 1, add the config and the documentation for the new config * Part 2, Add the configuration validation and test * Part 3, the actual logic to include the headers in the CORS Access-Control-Allow-Headers * Linter * update Alpine version to 3.14.2 to fix openssl CVEs * Fix the global variable modification * Go format * turn off unnecessary metrics integrations in config for Docker smoke test * rename test.env to smoke-test.env to clarify what it's for * fix setting of custom Access-Control-Allow-Origin and add test (#285) * add more explanatory test output and more verbose debugging for big segments integration tests (#287) * update to Go 1.16.10 + Alpine 3.14.3; add some docs about releases (#288) * update go-server-sdk-consul version for Consul API version update * override x/crypto dependency version for CVE-2020-29652 * bump Prometheus dependency to eliminate jwt-go vulnerability * drop support for Go 1.14 & 1.15 * make sure defaults are always applied for base URL properties * rm unused * rm unnecessary linter directive * add separate configuration for server-side/client-side SDK base URLs & update the defaults * remove Whitesource CI job + remove obsolete dependency issue note * don't include any big segment status info in status resource unless that feature is active (#296) * don't include any big segment status info in status resource unless that feature is active * fix Big Segments staleness logic in status resource * documentation * update x/text package for vulnerability GO-2021-0113 * add Trivy security scan to CI (#297) * add daily re-scan with Trivy * use long timeout when awaiting changes related to file mod watching * update Go version to 1.17.6 (#301) * always terminate if auto-config stream fails with a fatal error * pass along tags header when proxying events * comments, rm debugging * fix auth header logic * fix auth header logic some more * comments * add tags header to CORS header whitelist (#304) * update to Alpine 3.14.4 for CVE-2022-0778 fix * force upgrade of openssl in Alpine * also upgrade libretls * fix it in both files * update to Alpine 3.14.5 for CVE-2022-0778/CVE-2018-25032 (#308) * update to Alpine 3.14.5 for CVE-2022-0778 * revert patches that are now included in Alpine 3.14.5 * add scripts for checking and updating Go/Alpine versions (#309) * update to Alpine 3.14.5 for CVE-2022-0778 * add scripts for checking and updating Go/Alpine versions * also make sure the Docker images really exist * update CONTRIBUTING.md * fix file rename * revert patches that are now included in Alpine 3.14.5 * update Alpine to 3.14.6 for CVE-2022-28391 * update SDK packages (includes sc-136333 fix) * don't include "v" prefix in Docker image version * update go-server-sdk-dynamodb for data size error fix & add docs (#316) * update builds to use Go 1.17.9 and fix the update script * update go-server-sdk-consul to latest release * update remote Docker version * update golang.org/x/crypto for CVE-2022-27191 (#321) * update golang.org/x/crypto for CVE-2022-27191 * fix go.sum * update eventsource for SSE output efficiency fix (#322) * Cache the replay event in case we get multiple new client connections (#189) * Cache the replay event in case we get multiple new client connections * Use singleflight to ensure only one replay event is generated at a time Co-authored-by: Moshe Good * don't install curl in Docker images * fix makefile logic for lint step * remove indirect curl-based request logic in integration tests * fix linter installation * update Go to 1.17.11, Alpine to 3.16.0 * improve concurrency test to verify that the data is or isn't from a separate query * fix lint warnings and remove unnecessary error return * update libssl & libcrypto versions for CVE-2022-2097 * add security scan of already-published Docker image (#328) * update Alpine version and some Go libraries to address CVEs (#329) * use Alpine 3.16.1 * update golang.org/x/net and golang.org/x/sync patch versions for CVEs * update golang.org/x/sys patch version for CVE * update Prometheus client library for CVE-2022-21698 * ensure that DynamoDB config is consistent between Big Segments and regular data store * comment * update Alpine to 3.16.2 * update golangci-lint and go-junit-report * fix CI * prevent traversal of directories outside target path when expanding archive * enforce TLS >= 1.2 for secure Redis * misc linter updates * fix test message * add Go 1.18 & 1.19 jobs * make test expectation less Go-version-dependent * linting * revert unnecessary change * fix installation of test coverage tool * migrate to AWS Go SDK v2 for DynamoDB (#333) * update to Go 1.19.2 * update golang.org/x/net for CVE-2022-27664 * update golang.org/x/text for CVE-2022-32149 * update Consul API dependency to avoid false report of CVE-2022-40716 * switch to fork of Stackdriver metrics client to remove AWS transitive dependency (#343) * update to Go 1.19.4 and Alpine 3.16.3 * override golang.org/x/net for CVE-2022-41717 only when building executables for release * redo the security patch by updating go.mod for all builds; drop Go 1.16 * update Redis/DDB integrations to remove misleading error logging Co-authored-by: Eli Bishop Co-authored-by: LaunchDarklyCI Co-authored-by: hroederld Co-authored-by: LaunchDarklyReleaseBot Co-authored-by: Dan Richelson Co-authored-by: Dan Richelson Co-authored-by: Ben Woskow <48036130+bwoskow-ld@users.noreply.github.com> Co-authored-by: Ben Woskow Co-authored-by: Louis Chan Co-authored-by: Louis Chan <91093020+louis-launchdarkly@users.noreply.github.com> Co-authored-by: Moshe Good Co-authored-by: Moshe Good * Releasing version 6.7.17 * chore: update markdown tables to include borders (#351) * update markdown tables to include borders * fix a couple of broken links in docs * fix: update Go module path to github.com/launchdarkly/ld-relay/v7 (#353) --------- Co-authored-by: LaunchDarklyReleaseBot Co-authored-by: Dan Richelson Co-authored-by: Eli Bishop Co-authored-by: Dan Richelson Co-authored-by: Ben Woskow <48036130+bwoskow-ld@users.noreply.github.com> Co-authored-by: Ben Woskow Co-authored-by: Louis Chan Co-authored-by: Louis Chan <91093020+louis-launchdarkly@users.noreply.github.com> Co-authored-by: Moshe Good Co-authored-by: Moshe Good Co-authored-by: LaunchDarklyCI Co-authored-by: hroederld Co-authored-by: Casey Waldren --- .circleci/config.yml | 2 +- README.md | 10 +- config/config.go | 2 +- docs/configuration.md | 212 +++++++++--------- docs/endpoints.md | 88 ++++---- docs/in-app.md | 8 +- go.mod | 2 +- integrationtests/api_helpers_test.go | 2 +- integrationtests/autoconfig_test.go | 4 +- integrationtests/big_segments_test.go | 4 +- integrationtests/build_relay_test.go | 4 +- integrationtests/database_params_test.go | 4 +- integrationtests/database_test.go | 4 +- integrationtests/docker/docker_helpers.go | 2 +- integrationtests/offline_mode_test.go | 2 +- .../projects_and_environments_test.go | 3 +- integrationtests/test_manager_test.go | 8 +- internal/application/server.go | 2 +- internal/application/server_test.go | 2 +- internal/autoconfig/message_handler.go | 4 +- internal/autoconfig/stream_manager.go | 6 +- .../autoconfig/stream_manager_events_test.go | 2 +- .../stream_manager_expiring_key_test.go | 4 +- .../stream_manager_test_base_test.go | 6 +- internal/autoconfig/stream_messages.go | 4 +- internal/bigsegments/store.go | 2 +- internal/bigsegments/store_dynamodb.go | 4 +- internal/bigsegments/store_dynamodb_test.go | 2 +- internal/bigsegments/store_redis.go | 4 +- internal/bigsegments/store_redis_test.go | 2 +- internal/bigsegments/sync.go | 4 +- internal/bigsegments/sync_test.go | 4 +- internal/browser/cors.go | 2 +- internal/envfactory/env_config_factory.go | 2 +- internal/envfactory/env_params.go | 4 +- internal/envfactory/env_rep.go | 4 +- internal/envfactory/env_rep_test.go | 4 +- internal/events/event-relay.go | 10 +- internal/events/event-relay_test.go | 10 +- internal/events/event_publisher.go | 4 +- internal/events/event_publisher_test.go | 4 +- .../events/oldevents/translate_events_test.go | 2 +- internal/events/summarizing-relay.go | 8 +- internal/events/summarizing-relay_test.go | 6 +- internal/filedata/archive_manager.go | 2 +- .../archive_manager_test_base_test.go | 2 +- internal/filedata/archive_reader.go | 4 +- internal/filedata/archive_reader_test.go | 2 +- internal/filedata/testdata_test.go | 4 +- internal/filedata/update_handler.go | 4 +- internal/httpconfig/httpconfig.go | 2 +- internal/httpconfig/httpconfig_test.go | 2 +- internal/metrics/datadog.go | 2 +- internal/metrics/datadog_test.go | 2 +- internal/metrics/events_exporter.go | 2 +- internal/metrics/events_exporter_test.go | 2 +- internal/metrics/exporters.go | 2 +- internal/metrics/exporters_test.go | 2 +- internal/metrics/measures.go | 2 +- internal/metrics/metrics.go | 4 +- internal/metrics/metrics_test.go | 4 +- internal/metrics/prometheus.go | 2 +- internal/metrics/prometheus_test.go | 4 +- internal/metrics/stackdriver.go | 2 +- internal/metrics/stackdriver_test.go | 2 +- internal/metrics/test_utils_test.go | 6 +- internal/middleware/context.go | 4 +- internal/middleware/context_test.go | 4 +- internal/middleware/metrics_middleware.go | 2 +- .../middleware/metrics_middleware_test.go | 10 +- internal/middleware/middleware.go | 10 +- internal/middleware/middleware_test.go | 14 +- internal/relayenv/env_context.go | 10 +- internal/relayenv/env_context_impl.go | 18 +- internal/relayenv/env_context_impl_test.go | 20 +- internal/sdks/big_segments.go | 2 +- internal/sdks/big_segments_test.go | 2 +- internal/sdks/client_factory.go | 2 +- internal/sdks/client_factory_test.go | 2 +- internal/sdks/data_stores.go | 4 +- internal/sdks/data_stores_test.go | 2 +- internal/sdks/sdk_kinds.go | 4 +- internal/sdks/sdk_kinds_test.go | 4 +- internal/sharedtest/configs.go | 4 +- internal/sharedtest/endpoints.go | 2 +- internal/sharedtest/requests.go | 2 +- internal/sharedtest/testclient/fake_client.go | 8 +- internal/sharedtest/testdata_envs.go | 2 +- .../sharedtest/testenv/test_env_context.go | 8 +- internal/store/relay_feature_store.go | 2 +- internal/store/relay_feature_store_test.go | 2 +- .../relay_feature_store_testdata_test.go | 4 +- internal/streams/env_streams.go | 2 +- internal/streams/env_streams_test.go | 4 +- internal/streams/stream_events.go | 2 +- .../streams/stream_events_benchmark_test.go | 2 +- internal/streams/stream_events_test.go | 2 +- internal/streams/stream_provider.go | 4 +- .../stream_provider_client_side_ping.go | 2 +- .../stream_provider_client_side_ping_test.go | 4 +- .../streams/stream_provider_server_side.go | 2 +- .../stream_provider_server_side_flags.go | 2 +- .../stream_provider_server_side_flags_test.go | 4 +- .../stream_provider_server_side_test.go | 4 +- internal/streams/stream_provider_test.go | 4 +- internal/streams/stream_testdata_test.go | 4 +- ld-relay.go | 10 +- relay/autoconfig_actions.go | 4 +- relay/autoconfig_actions_test.go | 4 +- relay/autoconfig_key_change_test.go | 4 +- relay/autoconfig_testdata_test.go | 6 +- relay/client_side_helpers.go | 10 +- relay/endpoint_tests_base_test.go | 4 +- relay/endpoints_eval_test.go | 6 +- relay/endpoints_events_test.go | 8 +- relay/endpoints_js_cors_test.go | 6 +- relay/endpoints_other_test.go | 4 +- relay/endpoints_php_test.go | 4 +- relay/endpoints_status.go | 8 +- relay/endpoints_status_autoconfig_test.go | 12 +- relay/endpoints_status_test.go | 8 +- relay/endpoints_streams_test.go | 8 +- relay/filedata_actions.go | 6 +- relay/filedata_actions_test.go | 8 +- relay/filedata_testdata_test.go | 10 +- relay/relay.go | 22 +- relay/relay_end_to_end_redis_test.go | 4 +- relay/relay_end_to_end_test.go | 6 +- relay/relay_endpoints.go | 12 +- relay/relay_endpoints_benchmark_test.go | 6 +- relay/relay_endpoints_test.go | 10 +- relay/relay_environments_test.go | 14 +- relay/relay_routes.go | 12 +- relay/relay_test.go | 2 +- relay/relay_test_base_test.go | 4 +- relay/request_logging_test.go | 4 +- relay/testutils_test.go | 10 +- 137 files changed, 478 insertions(+), 481 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4de297a4..cbca9f8f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -228,7 +228,7 @@ jobs: steps: - run: go version - - run: go install github.com/launchdarkly/ld-relay/v6@latest + - run: go install github.com/launchdarkly/ld-relay/v7@latest - run: name: verify that executable was built command: ls -l $GOPATH/bin/ld-relay diff --git a/README.md b/README.md index f56fa768..042bcb8b 100644 --- a/README.md +++ b/README.md @@ -53,11 +53,11 @@ Or, you can build the Relay Proxy endpoints into your own application. **To lear ## Command-line arguments -Argument | Description ----------------------- | -------------------- -`--config FILEPATH` | configuration file location -`--allow-missing-file` | if specified, a `--config` option for a nonexistent file will be ignored -`--from-env` | if specified, configuration will be read from environment variables +| Argument | Description | +|------------------------|--------------------------------------------------------------------------| +| `--config FILEPATH` | configuration file location | +| `--allow-missing-file` | if specified, a `--config` option for a nonexistent file will be ignored | +| `--from-env` | if specified, configuration will be read from environment variables | If none of these are specified, the default is `--config /etc/ld-relay.conf`. diff --git a/config/config.go b/config/config.go index 76e53f54..b68af56e 100644 --- a/config/config.go +++ b/config/config.go @@ -4,7 +4,7 @@ import ( "time" ct "github.com/launchdarkly/go-configtypes" - "github.com/launchdarkly/ld-relay/v6/internal/logging" + "github.com/launchdarkly/ld-relay/v7/internal/logging" ) const ( diff --git a/docs/configuration.md b/docs/configuration.md index 2c3e48d1..85bd2f4e 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -43,27 +43,27 @@ For **Duration** settings, the value should be be an integer followed by `ms`, ` ### File section: `[Main]` -Property in file | Environment var | Type | Default | Description ------------------------- | -------------------- | :-----: | :------ | ----------- -`streamUri` | `STREAM_URI` | URI | _(1)_ | URI for the LaunchDarkly streaming service. -`baseUri` | `BASE_URI` | URI | _(1)_ | URI for the LaunchDarkly polling service for server-side SDKs. -`clientSideBaseUri` | `CLIENT_SIDE_BASE_URI` | URI | _(1)_ | URI for the LaunchDarkly polling service for client-side SDKs. -`exitOnError` | `EXIT_ON_ERROR` | Boolean | `false` | Close the Relay Proxy if it encounters any error during initialization. The default behavior is that it will terminate (with a non-zero exit code) if the configuration options are completely invalid, or if there is an incorrect `AutoConfig` key, but will remain running if there is an error specific to one environment (such as an invalid SDK key). Setting this option to `true` makes it terminate in both cases. -`exitAlways` | `EXIT_ALWAYS` | Boolean | `false` | Close the Relay Proxy immediately after initializing all environments (do not start an HTTP server). _(2)_ -`ignoreConnectionErrors` | `IGNORE_CONNECTION_ERRORS` | Boolean | `false` | Ignore any initial connectivity issues with LaunchDarkly. Best used when network connectivity is not reliable. -`port` | `PORT` | Number | `8030` | Port the Relay Proxy should listen on. -`initTimeout` | `INIT_TIMEOUT` | Duration | `10s` | How long the Relay Proxy should wait for an initial connection to LaunchDarkly. If this timeout elapses, the behavior depends on `ignoreConnectionErrors`: by default, it will quit, but if `ignoreConnectionErrors` is true it will go on trying to connect in the background while still allowing clients to connect to the Relay Proxy. See [Proxy mode#how-requests-are-handled-in-error-conditions](./proxy-mode) for more details. -`heartbeatInterval` | `HEARTBEAT_INTERVAL` | Number | `3m` | Interval for heartbeat messages to prevent read timeouts on streaming connections. Assumed to be in seconds if no unit is specified. -`maxClientConnectionTime` | `MAX_CLIENT_CONNECTION_TIME` | Duration | none | Maximum amount of time that Relay will allow a streaming connection from an SDK client to remain open. _(3)_ -`disconnectedStatusTime` | `DISCONNECTED_STATUS_TIME` | Duration | `1m` | How long a stream connection can be interrupted before Relay reports the status as "disconnected". _(4)_ -`disableInternalUsageMetrics` | `DISABLE_INTERNAL_USAGE_METRICS` | Boolean | `false` | Turn off the sending of usage statistics to LaunchDarkly. _(5)_ -`tlsEnabled` | `TLS_ENABLED` | Boolean | `false` | Enable TLS on the Relay Proxy. **See: [Using TLS](./tls.md)** -`tlsCert` | `TLS_CERT` | String | | Required if `tlsEnabled` is true. Path to TLS certificate file. -`tlsKey` | `TLS_KEY` | String | | Required if `tlsEnabled` is true. Path to TLS private key file. -`tlsMinVersion` | `TLS_MIN_VERSION` | String | | Set to "1.2", etc., to enforce a minimum TLS version for secure requests. -`logLevel` | `LOG_LEVEL` | String | `info` | Should be `debug`, `info`, `warn`, `error`, or `none`. **See: [Logging](./logging.md)** -`bigSegmentsStaleAsDegraded` | `BIG_SEGMENTS_STALE_AS_DEGRADED` | Boolean | `false` | Indicates if environments should be considered degraded if big segments are not fully synchronized. -`bigSegmentsStaleThreshold` | `BIG_SEGMENTS_STALE_THRESHOLD` | Duration | `5m` | Indicates how long until big segments should be considered stale. +| Property in file | Environment var | Type | Default | Description | +|-------------------------------|----------------------------------|:--------:|:--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `streamUri` | `STREAM_URI` | URI | _(1)_ | URI for the LaunchDarkly streaming service. | +| `baseUri` | `BASE_URI` | URI | _(1)_ | URI for the LaunchDarkly polling service for server-side SDKs. | +| `clientSideBaseUri` | `CLIENT_SIDE_BASE_URI` | URI | _(1)_ | URI for the LaunchDarkly polling service for client-side SDKs. | +| `exitOnError` | `EXIT_ON_ERROR` | Boolean | `false` | Close the Relay Proxy if it encounters any error during initialization. The default behavior is that it will terminate (with a non-zero exit code) if the configuration options are completely invalid, or if there is an incorrect `AutoConfig` key, but will remain running if there is an error specific to one environment (such as an invalid SDK key). Setting this option to `true` makes it terminate in both cases. | +| `exitAlways` | `EXIT_ALWAYS` | Boolean | `false` | Close the Relay Proxy immediately after initializing all environments (do not start an HTTP server). _(2)_ | +| `ignoreConnectionErrors` | `IGNORE_CONNECTION_ERRORS` | Boolean | `false` | Ignore any initial connectivity issues with LaunchDarkly. Best used when network connectivity is not reliable. | +| `port` | `PORT` | Number | `8030` | Port the Relay Proxy should listen on. | +| `initTimeout` | `INIT_TIMEOUT` | Duration | `10s` | How long the Relay Proxy should wait for an initial connection to LaunchDarkly. If this timeout elapses, the behavior depends on `ignoreConnectionErrors`: by default, it will quit, but if `ignoreConnectionErrors` is true it will go on trying to connect in the background while still allowing clients to connect to the Relay Proxy. See [Proxy mode#how-requests-are-handled-in-error-conditions](./proxy-mode) for more details. | +| `heartbeatInterval` | `HEARTBEAT_INTERVAL` | Number | `3m` | Interval for heartbeat messages to prevent read timeouts on streaming connections. Assumed to be in seconds if no unit is specified. | +| `maxClientConnectionTime` | `MAX_CLIENT_CONNECTION_TIME` | Duration | none | Maximum amount of time that Relay will allow a streaming connection from an SDK client to remain open. _(3)_ | +| `disconnectedStatusTime` | `DISCONNECTED_STATUS_TIME` | Duration | `1m` | How long a stream connection can be interrupted before Relay reports the status as "disconnected". _(4)_ | +| `disableInternalUsageMetrics` | `DISABLE_INTERNAL_USAGE_METRICS` | Boolean | `false` | Turn off the sending of usage statistics to LaunchDarkly. _(5)_ | +| `tlsEnabled` | `TLS_ENABLED` | Boolean | `false` | Enable TLS on the Relay Proxy. **See: [Using TLS](./tls.md)** | +| `tlsCert` | `TLS_CERT` | String | | Required if `tlsEnabled` is true. Path to TLS certificate file. | +| `tlsKey` | `TLS_KEY` | String | | Required if `tlsEnabled` is true. Path to TLS private key file. | +| `tlsMinVersion` | `TLS_MIN_VERSION` | String | | Set to "1.2", etc., to enforce a minimum TLS version for secure requests. | +| `logLevel` | `LOG_LEVEL` | String | `info` | Should be `debug`, `info`, `warn`, `error`, or `none`. **See: [Logging](./logging.md)** | +| `bigSegmentsStaleAsDegraded` | `BIG_SEGMENTS_STALE_AS_DEGRADED` | Boolean | `false` | Indicates if environments should be considered degraded if big segments are not fully synchronized. | +| `bigSegmentsStaleThreshold` | `BIG_SEGMENTS_STALE_THRESHOLD` | Duration | `5m` | Indicates how long until big segments should be considered stale. | _(1)_ The default values for `streamUri`, `baseUri`, and `clientSideBaseUri` are `https://stream.launchdarkly.com`, `https://sdk.launchdarkly.com`, and `https://clientsdk.launchdarkly.com` respectively. You should never need to change these URIs unless a) you are using a special instance of the LaunchDarkly service, in which case support will tell you how to set them, or b) you are accessing LaunchDarkly via a reverse proxy or some other mechanism that rewrites URLs. @@ -80,13 +80,13 @@ _(5)_ The `disableInternalUsageMetrics` option applies to metrics that LaunchDar This section is only applicable if [automatic configuration](https://docs.launchdarkly.com/home/advanced/relay-proxy-enterprise/automatic-configuration) is enabled for your account. -Property in file | Environment var | Type | Default | Description ------------------------- | -------------------------- | :----: | :------ | ----------- -`key` | `AUTO_CONFIG_KEY` | String | | A valid Relay Proxy automatic configuration key. -`envDatastorePrefix` | `ENV_DATASTORE_PREFIX` | String | | If using a Redis, Consul, or DynamoDB store, this string will be added to all database keys to distinguish them from any other environments that are using the database. _(6)_ -`envDatastoreTableName ` | `ENV_DATASTORE_TABLE_NAME` | String | | If using a DynamoDB store, this specifies the table name. _(6)_ -`envAllowedOrigin` | `ENV_ALLOWED_ORIGIN` | URI | | If provided, adds CORS headers to prevent access from other domains. This variable can be provided multiple times per environment (if using the `ENV_ALLOWED_ORIGIN` variable, specify a comma-delimited list). -`envAllowedHeader` | `ENV_ALLOWED_HEADER` | String | | If provided, adds the specify headers to the list of accepted headers for CORS requests. This variable can be provided multiple times per environment (if using the `ENV_ALLOWED_HEADER` variable, specify a comma-delimited list). +| Property in file | Environment var | Type | Default | Description | +|--------------------------|----------------------------|:------:|:--------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `key` | `AUTO_CONFIG_KEY` | String | | A valid Relay Proxy automatic configuration key. | +| `envDatastorePrefix` | `ENV_DATASTORE_PREFIX` | String | | If using a Redis, Consul, or DynamoDB store, this string will be added to all database keys to distinguish them from any other environments that are using the database. _(6)_ | +| `envDatastoreTableName ` | `ENV_DATASTORE_TABLE_NAME` | String | | If using a DynamoDB store, this specifies the table name. _(6)_ | +| `envAllowedOrigin` | `ENV_ALLOWED_ORIGIN` | URI | | If provided, adds CORS headers to prevent access from other domains. This variable can be provided multiple times per environment (if using the `ENV_ALLOWED_ORIGIN` variable, specify a comma-delimited list). | +| `envAllowedHeader` | `ENV_ALLOWED_HEADER` | String | | If provided, adds the specify headers to the list of accepted headers for CORS requests. This variable can be provided multiple times per environment (if using the `ENV_ALLOWED_HEADER` variable, specify a comma-delimited list). | _(6)_ When using a database store, if there are multiple environments, it is necessary to have a different prefix for each environment (or, if using DynamoDB, a different table name). The `envDataStorePrefix` and `envDatastoreTableName` properties support this by recognizing the special symbol `$CID` as a placeholder for the environment's client-side ID. For instance, if an environment's ID is `1234567890abcdef` and you set `envDatastorePrefix` to `ld-flags-$CID`, the actual prefix used for that environment will be `ld-flags-1234567890abcdef`. @@ -95,13 +95,13 @@ _(6)_ When using a database store, if there are multiple environments, it is nec This section is only applicable if [offline mode](https://docs.launchdarkly.com/home/advanced/relay-proxy-enterprise/offline) is enabled for your account. -Property in file | Environment var | Type | Default | Description ------------------------- | -------------------------- | :----: | :------ | ----------- -`fileDataSource` | `FILE_DATA_SOURCE` | String | | Path to the offline mode data file that you have downloaded from LaunchDarkly. -`envDatastorePrefix` | `ENV_DATASTORE_PREFIX` | String | | If using a Redis, Consul, or DynamoDB store, this string will be added to all database keys to distinguish them from any other environments that are using the database. _(6)_ -`envDatastoreTableName ` | `ENV_DATASTORE_TABLE_NAME` | String | | If using a DynamoDB store, this specifies the table name. _(6)_ -`envAllowedOrigin` | `ENV_ALLOWED_ORIGIN` | URI | | If provided, adds CORS headers to prevent access from other domains. This variable can be provided multiple times per environment (if using the `ENV_ALLOWED_ORIGIN` variable, specify a comma-delimited list). -`envAllowedHeader` | `ENV_ALLOWED_HEADER` | String | | If provided, adds the specify headers to the list of accepted headers for CORS requests. This variable can be provided multiple times per environment (if using the `ENV_ALLOWED_HEADER` variable, specify a comma-delimited list). +| Property in file | Environment var | Type | Default | Description | +|--------------------------|----------------------------|:------:|:--------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `fileDataSource` | `FILE_DATA_SOURCE` | String | | Path to the offline mode data file that you have downloaded from LaunchDarkly. | +| `envDatastorePrefix` | `ENV_DATASTORE_PREFIX` | String | | If using a Redis, Consul, or DynamoDB store, this string will be added to all database keys to distinguish them from any other environments that are using the database. _(6)_ | +| `envDatastoreTableName ` | `ENV_DATASTORE_TABLE_NAME` | String | | If using a DynamoDB store, this specifies the table name. _(6)_ | +| `envAllowedOrigin` | `ENV_ALLOWED_ORIGIN` | URI | | If provided, adds CORS headers to prevent access from other domains. This variable can be provided multiple times per environment (if using the `ENV_ALLOWED_ORIGIN` variable, specify a comma-delimited list). | +| `envAllowedHeader` | `ENV_ALLOWED_HEADER` | String | | If provided, adds the specify headers to the list of accepted headers for CORS requests. This variable can be provided multiple times per environment (if using the `ENV_ALLOWED_HEADER` variable, specify a comma-delimited list). | Note that the last three properties have the same meanings and the same environment variables names as the corresponding properties in the `[AutoConfig]` section described above. It is not possible to use `[OfflineMode]` and `[AutoConfig]` at the same time. @@ -110,13 +110,13 @@ Note that the last three properties have the same meanings and the same environm To learn more, read [Forwarding events](./events.md) -Property in file | Environment var | Type | Default | Description -------------------- | -------------------------- | :-----: | :------ | ----------- -`sendEvents` | `USE_EVENTS` | Boolean | `false` | When enabled, the Relay Proxy will send analytic events it receives to LaunchDarkly (unless offline mode is enabled). -`eventsUri` | `EVENTS_HOST` | URI | _(7)_ | URI for the LaunchDarkly events service -`flushInterval` | `EVENTS_FLUSH_INTERVAL` | Duration | `5s` | Controls how long the SDK buffers events before sending them back to our server. If your server generates many events per second, we suggest decreasing the flush interval and/or increasing capacity to meet your needs. -`capacity` | `EVENTS_CAPACITY` | Number | `1000` | Maximum number of events to accumulate for each flush interval. -`inlineUsers` | `EVENTS_INLINE_USERS` | Boolean | `false` | When enabled, individual events (if full event tracking is enabled for the feature flag) will contain all non-private user attributes. +| Property in file | Environment var | Type | Default | Description | +|------------------|-------------------------|:--------:|:--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `sendEvents` | `USE_EVENTS` | Boolean | `false` | When enabled, the Relay Proxy will send analytic events it receives to LaunchDarkly (unless offline mode is enabled). | +| `eventsUri` | `EVENTS_HOST` | URI | _(7)_ | URI for the LaunchDarkly events service | +| `flushInterval` | `EVENTS_FLUSH_INTERVAL` | Duration | `5s` | Controls how long the SDK buffers events before sending them back to our server. If your server generates many events per second, we suggest decreasing the flush interval and/or increasing capacity to meet your needs. | +| `capacity` | `EVENTS_CAPACITY` | Number | `1000` | Maximum number of events to accumulate for each flush interval. | +| `inlineUsers` | `EVENTS_INLINE_USERS` | Boolean | `false` | When enabled, individual events (if full event tracking is enabled for the feature flag) will contain all non-private user attributes. | _(7)_ See note _(1)_ above. The default value for `eventsUri` is `https://events.launchdarkly.com`. @@ -125,18 +125,18 @@ _(7)_ See note _(1)_ above. The default value for `eventsUri` is `https://events The Relay Proxy allows you to proxy any number of LaunchDarkly environments; there must be at least one. In a configuration file, each of these is a separate section in the format `[Environment "MyEnvName"]`, where `MyEnvName` is a unique identifier for the environment (this does not have to match the environment name on your LaunchDarkly dashboard, but it is recommended to). If you are using environment variables, you will add the `MyEnvName` identifier to the variable name prefix for each property. See examples below. -Property in file | Environment var | Type | Description ----------------- | ----------------------------- | :----: | ----------- -`sdkKey` | `LD_ENV_MyEnvName` | String | Server-side SDK key for the environment. Required. -`mobileKey` | `LD_MOBILE_KEY_MyEnvName` | String | Mobile key for the environment. Required if you are proxying mobile SDK functionality. -`envId` | `LD_CLIENT_SIDE_ID_MyEnvName` | String | Client-side ID for the environment. Required if you are proxying client-side JavaScript-based SDK functionality. -`secureMode` | `LD_SECURE_MODE_MyEnvName` | Boolean | True if [secure mode](https://docs.launchdarkly.com/sdk/client-side/javascript#secure-mode) should be required for client-side JS SDK connections. -`prefix` | `LD_PREFIX_MyEnvName` | String | If using a Redis, Consul, or DynamoDB feature store, this string will be added to all database keys to distinguish them from any other environments that are using the database. -`tableName` | `LD_TABLE_NAME_MyEnvName` | String | If using DynamoDB, you can specify a different table for each environment. (Or, specify a single table in the `[DynamoDB]` section and use `prefix` to distinguish the environments.) -`allowedOrigin` | `LD_ALLOWED_ORIGIN_MyEnvName` | URI | If provided, adds CORS headers to prevent access from other domains. This variable can be provided multiple times per environment (if using the `LD_ALLOWED_ORIGIN_MyEnvName` variable, specify a comma-delimited list). -`allowedHeader` | `LD_ALLOWED_HEADER_MyEnvName` | String | If provided, adds the specify headers to the list of accepted headers for CORS requests. This variable can be provided multiple times per environment (if using the `LD_ALLOWED_HEADER_MyEnvName` variable, specify a comma-delimited list). -`logLevel` | `LD_LOG_LEVEL_MyEnvName` | String | Should be `debug`, `info`, `warn`, `error`, or `none`. **See: [Logging](./logging.md)** -`ttl` | `LD_TTL_MyEnvName` | Duration | HTTP caching TTL for the PHP polling endpoints. **See: [Using PHP](./php.md)** +| Property in file | Environment var | Type | Description | +|------------------|-------------------------------|:--------:|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `sdkKey` | `LD_ENV_MyEnvName` | String | Server-side SDK key for the environment. Required. | +| `mobileKey` | `LD_MOBILE_KEY_MyEnvName` | String | Mobile key for the environment. Required if you are proxying mobile SDK functionality. | +| `envId` | `LD_CLIENT_SIDE_ID_MyEnvName` | String | Client-side ID for the environment. Required if you are proxying client-side JavaScript-based SDK functionality. | +| `secureMode` | `LD_SECURE_MODE_MyEnvName` | Boolean | True if [secure mode](https://docs.launchdarkly.com/sdk/client-side/javascript#secure-mode) should be required for client-side JS SDK connections. | +| `prefix` | `LD_PREFIX_MyEnvName` | String | If using a Redis, Consul, or DynamoDB feature store, this string will be added to all database keys to distinguish them from any other environments that are using the database. | +| `tableName` | `LD_TABLE_NAME_MyEnvName` | String | If using DynamoDB, you can specify a different table for each environment. (Or, specify a single table in the `[DynamoDB]` section and use `prefix` to distinguish the environments.) | +| `allowedOrigin` | `LD_ALLOWED_ORIGIN_MyEnvName` | URI | If provided, adds CORS headers to prevent access from other domains. This variable can be provided multiple times per environment (if using the `LD_ALLOWED_ORIGIN_MyEnvName` variable, specify a comma-delimited list). | +| `allowedHeader` | `LD_ALLOWED_HEADER_MyEnvName` | String | If provided, adds the specify headers to the list of accepted headers for CORS requests. This variable can be provided multiple times per environment (if using the `LD_ALLOWED_HEADER_MyEnvName` variable, specify a comma-delimited list). | +| `logLevel` | `LD_LOG_LEVEL_MyEnvName` | String | Should be `debug`, `info`, `warn`, `error`, or `none`. **See: [Logging](./logging.md)** | +| `ttl` | `LD_TTL_MyEnvName` | Duration | HTTP caching TTL for the PHP polling endpoints. **See: [Using PHP](./php.md)** | In the following examples, there are two environments, each of which has a server-side SDK key and a mobile key. Debug-level logging is enabled for the second one. @@ -167,15 +167,15 @@ LD_MOBILE_KEY_Spree_Project_Test=SPREE_TEST_MOBILE_KEY To learn more, read [Persistent storage](./persistent-storage.md). -Property in file | Environment var | Type | Default | Description ----------------- | ---------------- | :-----: | :------ | ----------- -n/a | `USE_REDIS` | Boolean | `false` | If you are using environment variables, set this to enable Redis. -`host` | `REDIS_HOST` | String | `localhost` | Hostname of the Redis database. Redis is enabled if this or `url` is set. -`port` | `REDIS_PORT` | Number | `6379` | Port of the Redis database. Note that if you are using environment variables, setting `REDIS_PORT` to a string like `tcp://host:port` sets both the host and the port; this is used in Docker. -`url` | `REDIS_URL` | String | | URL of the Redis database (overrides `host` & `port`). -`tls` | `REDIS_TLS` | Boolean | `false` | If `true`, will use a secure connection to Redis (not all Redis servers support this). If you specified a `redis://` URL, setting `tls` to `true` will change it to `rediss://`. -`password` | `REDIS_PASSWORD` | String | | Optional password if Redis require authentication. -`localTtl` | `CACHE_TTL` | Duration | `30s` | Length of time that database items can be cached in memory. +| Property in file | Environment var | Type | Default | Description | +|------------------|------------------|:--------:|:------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| n/a | `USE_REDIS` | Boolean | `false` | If you are using environment variables, set this to enable Redis. | +| `host` | `REDIS_HOST` | String | `localhost` | Hostname of the Redis database. Redis is enabled if this or `url` is set. | +| `port` | `REDIS_PORT` | Number | `6379` | Port of the Redis database. Note that if you are using environment variables, setting `REDIS_PORT` to a string like `tcp://host:port` sets both the host and the port; this is used in Docker. | +| `url` | `REDIS_URL` | String | | URL of the Redis database (overrides `host` & `port`). | +| `tls` | `REDIS_TLS` | Boolean | `false` | If `true`, will use a secure connection to Redis (not all Redis servers support this). If you specified a `redis://` URL, setting `tls` to `true` will change it to `rediss://`. | +| `password` | `REDIS_PASSWORD` | String | | Optional password if Redis require authentication. | +| `localTtl` | `CACHE_TTL` | Duration | `30s` | Length of time that database items can be cached in memory. | Note that the TLS and password options can also be specified as part of the URL: `rediss://` instead of `redis://` enables TLS, and `redis://:password@host` instead of `redis://host` sets a password. You may want to use the separate options instead if, for instance, you want your configuration file to contain the basic Redis configuration, but for security reasons you would rather set the password in an environment variable (`REDIS_PASSWORD`). @@ -184,12 +184,12 @@ Note that the TLS and password options can also be specified as part of the URL: To learn more, read [Persistent storage](./persistent-storage.md). -Property in file | Environment var | Type | Default | Description -------------------- | ------------------ | :-----: | :------ | ----------- -`enabled` | `USE_DYNAMODB` | Boolean | `false` | Enables DynamoDB. -`tableName` | `DYNAMODB_TABLE` | String | | The DynamoDB table name, if you are using the same table for all environments. Otherwise, omit this and specify it in each environment section. (Note, credentials and region are controlled by the usual AWS environment variables and/or local AWS configuration files.) -`url` | `DYNAMODB_URL` | String | | The service endpoint if you are using a local DynamoDB instance instead of the regular service. -`localTtl` | `CACHE_TTL` | Duration | `30s` | Length of time that database items can be cached in memory. +| Property in file | Environment var | Type | Default | Description | +|------------------|------------------|:--------:|:--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `enabled` | `USE_DYNAMODB` | Boolean | `false` | Enables DynamoDB. | +| `tableName` | `DYNAMODB_TABLE` | String | | The DynamoDB table name, if you are using the same table for all environments. Otherwise, omit this and specify it in each environment section. (Note, credentials and region are controlled by the usual AWS environment variables and/or local AWS configuration files.) | +| `url` | `DYNAMODB_URL` | String | | The service endpoint if you are using a local DynamoDB instance instead of the regular service. | +| `localTtl` | `CACHE_TTL` | Duration | `30s` | Length of time that database items can be cached in memory. | The AWS credentials and region for DynamoDB are not part of the Relay configuration; they should be set using either the standard AWS environment variables or a local AWS configuration file, as documented for [the AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html). @@ -198,26 +198,25 @@ The AWS credentials and region for DynamoDB are not part of the Relay configurat To learn more, read [Persistent storage](./persistent-storage.md). -Property in file | Environment var | Type | Default | Description ----------------- | ------------------- | :------: | :---------- | ----------- -n/a | `USE_CONSUL` | Boolean | `false` | If you are using environment variables, set this to enable Consul. -`host` | `CONSUL_HOST` | String | `localhost` | Hostname of the Consul server. Consul is enabled if this is set. -`token` | `CONSUL_TOKEN` | String | | ACL token, if the Consul server is configured with ACLs. -`tokenFile` | `CONSUL_TOKEN_FILE` | String | | If you would prefer to keep your ACL token in a separate file rather than in the Relay Proxy configuration, set this to the file path. -`localTtl` | `CACHE_TTL` | Duration | `30s` | Length of time that database items can be cached in memory. - +| Property in file | Environment var | Type | Default | Description | +|------------------|---------------------|:--------:|:------------|----------------------------------------------------------------------------------------------------------------------------------------| +| n/a | `USE_CONSUL` | Boolean | `false` | If you are using environment variables, set this to enable Consul. | +| `host` | `CONSUL_HOST` | String | `localhost` | Hostname of the Consul server. Consul is enabled if this is set. | +| `token` | `CONSUL_TOKEN` | String | | ACL token, if the Consul server is configured with ACLs. | +| `tokenFile` | `CONSUL_TOKEN_FILE` | String | | If you would prefer to keep your ACL token in a separate file rather than in the Relay Proxy configuration, set this to the file path. | +| `localTtl` | `CACHE_TTL` | Duration | `30s` | Length of time that database items can be cached in memory. | ### File section: `[Datadog]` To learn more, read [Metrics integrations](./metrics.md) -Property in file | Environment var | Type | Default | Description ----------------- | --------------------- | :-----: | :------ | ----------- -`enabled` | `USE_DATADOG` | Boolean | false | If true, enables exporting to Datadog. -`statsAddr` | `DATADOG_STATS_ADDR` | URI | | URI of the DogStatsD agent. If not provided, stats will not be collected. Example: `localhost:8125` -`traceAddr` | `DATADOG_TRACE_ADDR` | URI | | URI of the Datadog trace agent. If not provided, traces will not be collected. Example: `localhost:8126` -`tag` | `DATADOG_TAG_TagName` | String | | A tag to be applied to all metrics sent to datadog. This variable can be provided multiple times (see below). -`prefix` | `DATADOG_PREFIX` | String | | The metrics prefix to be used by Datadog. +| Property in file | Environment var | Type | Default | Description | +|------------------|-----------------------|:-------:|:--------|---------------------------------------------------------------------------------------------------------------| +| `enabled` | `USE_DATADOG` | Boolean | false | If true, enables exporting to Datadog. | +| `statsAddr` | `DATADOG_STATS_ADDR` | URI | | URI of the DogStatsD agent. If not provided, stats will not be collected. Example: `localhost:8125` | +| `traceAddr` | `DATADOG_TRACE_ADDR` | URI | | URI of the Datadog trace agent. If not provided, traces will not be collected. Example: `localhost:8126` | +| `tag` | `DATADOG_TAG_TagName` | String | | A tag to be applied to all metrics sent to datadog. This variable can be provided multiple times (see below). | +| `prefix` | `DATADOG_PREFIX` | String | | The metrics prefix to be used by Datadog. | There may be any number of DataDog tags. Use the following format: @@ -243,40 +242,37 @@ DATADOG_TAG_secondTagName=secondTagValue To learn more, read [Metrics integrations](./metrics.md) -Property in file | Environment var | Type | Default | Description ----------------- | ------------------------ | :-----: | :------ | ----------- -`enabled` | `USE_STACKDRIVER` | Boolean | `false` | If true, enables exporting metrics and traces to Stackdriver. -`projectID` | `STACKDRIVER_PROJECT_ID` | String | | Google cloud project ID. -`prefix` | `STACKDRIVER_PREFIX` | String | | The metrics prefix to be used by Stackdriver. - +| Property in file | Environment var | Type | Default | Description | +|------------------|--------------------------|:-------:|:--------|---------------------------------------------------------------| +| `enabled` | `USE_STACKDRIVER` | Boolean | `false` | If true, enables exporting metrics and traces to Stackdriver. | +| `projectID` | `STACKDRIVER_PROJECT_ID` | String | | Google cloud project ID. | +| `prefix` | `STACKDRIVER_PREFIX` | String | | The metrics prefix to be used by Stackdriver. | ### File section: `[Prometheus]` To learn more, read [Metrics integrations](./metrics.md) -Property in file | Environment var | Type | Default | Description ----------------- | ------------------- | :-----: | :------ | ----------- -`enabled` | `USE_PROMETHEUS` | Boolean | `false` | If true, enables exporting traces to Prometheus. -`port` | `PROMETHEUS_PORT` | Number | `8031` | The port that the Relay Proxy will provide the `/metrics` endpoint on. -`prefix` | `PROMETHEUS_PREFIX` | String | | The metrics prefix to be used by Prometheus. - +| Property in file | Environment var | Type | Default | Description | +|------------------|---------------------|:-------:|:--------|------------------------------------------------------------------------| +| `enabled` | `USE_PROMETHEUS` | Boolean | `false` | If true, enables exporting traces to Prometheus. | +| `port` | `PROMETHEUS_PORT` | Number | `8031` | The port that the Relay Proxy will provide the `/metrics` endpoint on. | +| `prefix` | `PROMETHEUS_PREFIX` | String | | The metrics prefix to be used by Prometheus. | ### File section: `[Proxy]` -Property in file | Environment var | Type | Default | Description ----------------- | --------------------- | :-----: | :------ | ----------- -`url` | `PROXY_URL` | String | | All Relay Proxy network traffic will be sent through this HTTP proxy if specified. -`user` | `PROXY_AUTH_USER` | String | | Username for proxy authentication, if applicable. -`password` | `PROXY_AUTH_PASSWORD` | String | | Password for proxy authentication, if applicable. -`domain` | `PROXY_AUTH_DOMAIN` | String | | Domain name for proxy authentication, if applicable. -`caCertFiles` | `PROXY_CA_CERTS` | String | | List of file paths to additional CA certificates that should be trusted (in PEM format). For multiple files, if using a configuration file, you can specify `caCertFiles` multiple times; if using environment variables, you can set `PROXY_CA_CERTS` to a comma-delimited list. -`ntlmAuth` | `PROXY_AUTH_NTLM` | Boolean | `false` | Enables NTLM proxy authentication (requires user, password, and domain). - +| Property in file | Environment var | Type | Default | Description | +|------------------|-----------------------|:-------:|:--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `url` | `PROXY_URL` | String | | All Relay Proxy network traffic will be sent through this HTTP proxy if specified. | +| `user` | `PROXY_AUTH_USER` | String | | Username for proxy authentication, if applicable. | +| `password` | `PROXY_AUTH_PASSWORD` | String | | Password for proxy authentication, if applicable. | +| `domain` | `PROXY_AUTH_DOMAIN` | String | | Domain name for proxy authentication, if applicable. | +| `caCertFiles` | `PROXY_CA_CERTS` | String | | List of file paths to additional CA certificates that should be trusted (in PEM format). For multiple files, if using a configuration file, you can specify `caCertFiles` multiple times; if using environment variables, you can set `PROXY_CA_CERTS` to a comma-delimited list. | +| `ntlmAuth` | `PROXY_AUTH_NTLM` | Boolean | `false` | Enables NTLM proxy authentication (requires user, password, and domain). | ### Experimental/testing variables The current version of the Relay Proxy also supports the following environment variables. These do not have an equivalent in a configuration file; they are not intended for production use; and they are not guaranteed to work in any other Relay Proxy versions. -| Environment var | Type | Default | Description -| --------------------------- | :------: | :------ | ----------- -| `LD_TRACE_LOG_BIG_SEGMENTS` | Boolean | `false` | Enables extra logging at `debug` level, even more verbose than `debug` level normally is, specifically for big segments data. Use this with extreme caution since it may log detailed transactions for big segments which could potentially include millions of users. This option is intended only for debugging issues related to big segments under the guidance of LaunchDarkly support. +| Environment var | Type | Default | Description | +|-----------------------------|:-------:|:--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `LD_TRACE_LOG_BIG_SEGMENTS` | Boolean | `false` | Enables extra logging at `debug` level, even more verbose than `debug` level normally is, specifically for big segments data. Use this with extreme caution since it may log detailed transactions for big segments which could potentially include millions of users. This option is intended only for debugging issues related to big segments under the guidance of LaunchDarkly support. | diff --git a/docs/endpoints.md b/docs/endpoints.md index ca6f59ca..8c61050d 100644 --- a/docs/endpoints.md +++ b/docs/endpoints.md @@ -107,7 +107,7 @@ The status properties are defined as follows: - `potentiallyStale` is a boolean that indicates if Big Segments are potentially not fully synchronized. This might be because initial synchronization has not completed, or due to a networking error. - `lastSynchronizedOn` indicates the last time in Unix milliseconds that Relay can be sure Big Segments were synchronized. Active but incomplete synchronization does not update this timestamp. - The top-level `status` property for the entire Relay Proxy is `"healthy"` if all of the environments are `"connected"`, or `"degraded"` if any of the environments is `"disconnected"`. - - In [automatic configuration mode](../configuration.md#file-section-autoconfig), this value can also be `"degraded"` if the Relay Proxy is still starting up and has not yet received environment configurations from LaunchDarkly. + - In [automatic configuration mode](configuration.md#file-section-autoconfig), this value can also be `"degraded"` if the Relay Proxy is still starting up and has not yet received environment configurations from LaunchDarkly. - When Big Segments are enabled, this value will also be `"degraded"` if the Big Segments status has an `available` property of `false` (indicating a database error), or if `potentiallyStale` is `true` (meaning Big Segments are potentially not fully synchronized) _and_ the configuration setting `bigSegmentsStaleAsDegraded` is enabled. - `version` is the version of the Relay Proxy. - `clientVersion` is the version of the Go SDK that the Relay Proxy is using. @@ -120,12 +120,12 @@ If you're building an SDK for a language which isn't officially supported by Lau These are equivalent to the polling endpoints for client-side/mobile SDKs, except that they use the SDK key as a credential rather than the mobile key or client-side environment ID. -Endpoint | Method | Description ---------------------------------------|:--------:|------------------------------------ -`/sdk/evalx/contexts/{contextBase64}` | `GET` | Evaluates all flag values for the given evaluation context -`/sdk/evalx/context` | `REPORT` | Same as above, but request body is the evaluation context JSON object (not in base64) -`/sdk/evalx/users/{contextBase64}` | `GET` | Alternate name for `/sdk/evalx/contexts/{contextBase64}` -`/sdk/evalx/user` | `REPORT` | Alternate name for `/sdk/evalx/context` +| Endpoint | Method | Description | +|---------------------------------------|:--------:|---------------------------------------------------------------------------------------| +| `/sdk/evalx/contexts/{contextBase64}` | `GET` | Evaluates all flag values for the given evaluation context | +| `/sdk/evalx/context` | `REPORT` | Same as above, but request body is the evaluation context JSON object (not in base64) | +| `/sdk/evalx/users/{contextBase64}` | `GET` | Alternate name for `/sdk/evalx/contexts/{contextBase64}` | +| `/sdk/evalx/user` | `REPORT` | Alternate name for `/sdk/evalx/context` | Example `curl` requests (default local URI and port): @@ -142,40 +142,40 @@ curl -X REPORT localhost:8030/sdk/evalx/context -H "Authorization: YOUR_SDK_KEY" All of these require an `Authorization` header whose value is the SDK key. -Endpoint | Method | Proxied Subdomain | Description ------------------------------|:------:|:---------:|------------------------------------ -`/all` | `GET` | `stream.` | SSE stream for all data -`/bulk` | `POST` | `events.` | Receives analytics events from SDKs -`/diagnostic` | `POST` | `events.` | Receives diagnostic data from SDKs -`/flags` | `GET` | `stream.` | SSE stream for flag data (older SDKs) -`/sdk/flags` | `GET` | `sdk.` | Polling endpoint for [PHP SDK](./php.md) -`/sdk/flags/{flagKey}` | `GET` | `sdk.` | Polling endpoint for [PHP SDK](./php.md) -`/sdk/segments/{segmentKey}` | `GET` | `sdk.` | Polling endpoint for [PHP SDK](./php.md) +| Endpoint | Method | Proxied Subdomain | Description | +|------------------------------|:------:|:-----------------:|------------------------------------------| +| `/all` | `GET` | `stream.` | SSE stream for all data | +| `/bulk` | `POST` | `events.` | Receives analytics events from SDKs | +| `/diagnostic` | `POST` | `events.` | Receives diagnostic data from SDKs | +| `/flags` | `GET` | `stream.` | SSE stream for flag data (older SDKs) | +| `/sdk/flags` | `GET` | `sdk.` | Polling endpoint for [PHP SDK](./php.md) | +| `/sdk/flags/{flagKey}` | `GET` | `sdk.` | Polling endpoint for [PHP SDK](./php.md) | +| `/sdk/segments/{segmentKey}` | `GET` | `sdk.` | Polling endpoint for [PHP SDK](./php.md) | For server-side SDKs other than PHP, the Relay Proxy does not support polling mode, only streaming. -The `GET`/`REPORT` endpoints will return a 401 error if the `Authorization` header does not match an SDK key that is known to the Relay Proxy, just as the actual LaunchDarkly service endpoints would do for an invalid SDK key. They will return a 503 error if the Relay Proxy has not yet successfully obtained feature flag data from LaunchDarkly for the specified environment (either because it is still starting up, or because of a service outage or network interruption). In [automatic configuration mode](../configuration.md#file-section-autoconfig), they will return a 503 error if the Relay Proxy has not yet received its configuration from LaunchDarkly. +The `GET`/`REPORT` endpoints will return a 401 error if the `Authorization` header does not match an SDK key that is known to the Relay Proxy, just as the actual LaunchDarkly service endpoints would do for an invalid SDK key. They will return a 503 error if the Relay Proxy has not yet successfully obtained feature flag data from LaunchDarkly for the specified environment (either because it is still starting up, or because of a service outage or network interruption). In [automatic configuration mode](configuration.md#file-section-autoconfig), they will return a 503 error if the Relay Proxy has not yet received its configuration from LaunchDarkly. ### Endpoints that mobile SDKs use All of these require an `Authorization` header whose value is the mobile key. -Endpoint | Method | Proxied Subdomain | Description ----------------------------------------|:--------:|:---------------:|------------------------------------ -`/meval/{contextBase64}` | `GET` | `clientstream.` | SSE stream of "ping" and other events -`/meval` | `REPORT` | `clientstream.` | Same as above, but request body is the evaluation context JSON object (not in base64) -`/mobile` | `POST` | `events.` | For receiving events from mobile SDKs -`/mobile/events` | `POST` | `events.` | Same as above -`/mobile/events/bulk` | `POST` | `events.` | Same as above -`/mobile/events/diagnostic` | `POST` | `events.` | Same as above -`/mping` | `GET` | `clientstream.` | SSE stream for older SDKs that issues "ping" events when flags have changed -`/msdk/evalx/contexts/{contextBase64}` | `GET` | `clientsdk.` | Polling endpoint, returns flag evaluation results for an evaluation context -`/msdk/evalx/context` | `REPORT` | `clientsdk.` | Same as above but request body is the evaluation context JSON object (not in base64) -`/msdk/evalx/users/{contextBase64}` | `GET` | `clientsdk.` | Alternate name for `/msdk/evalx/contexts/{contextBase64}` used by older SDKs -`/msdk/evalx/user` | `REPORT` | `clientsdk.` | Alternate name for `/msdk/evalx/context` used by older SDKs +| Endpoint | Method | Proxied Subdomain | Description | +|----------------------------------------|:--------:|:-----------------:|---------------------------------------------------------------------------------------| +| `/meval/{contextBase64}` | `GET` | `clientstream.` | SSE stream of "ping" and other events | +| `/meval` | `REPORT` | `clientstream.` | Same as above, but request body is the evaluation context JSON object (not in base64) | +| `/mobile` | `POST` | `events.` | For receiving events from mobile SDKs | +| `/mobile/events` | `POST` | `events.` | Same as above | +| `/mobile/events/bulk` | `POST` | `events.` | Same as above | +| `/mobile/events/diagnostic` | `POST` | `events.` | Same as above | +| `/mping` | `GET` | `clientstream.` | SSE stream for older SDKs that issues "ping" events when flags have changed | +| `/msdk/evalx/contexts/{contextBase64}` | `GET` | `clientsdk.` | Polling endpoint, returns flag evaluation results for an evaluation context | +| `/msdk/evalx/context` | `REPORT` | `clientsdk.` | Same as above but request body is the evaluation context JSON object (not in base64) | +| `/msdk/evalx/users/{contextBase64}` | `GET` | `clientsdk.` | Alternate name for `/msdk/evalx/contexts/{contextBase64}` used by older SDKs | +| `/msdk/evalx/user` | `REPORT` | `clientsdk.` | Alternate name for `/msdk/evalx/context` used by older SDKs | -The `GET`/`REPORT` endpoints will return a 401 error if the `Authorization` header does not match an SDK key that is known to the Relay Proxy, just as the actual LaunchDarkly service endpoints would do for an invalid SDK key. They will return a 503 error if the Relay Proxy has not yet successfully obtained feature flag data from LaunchDarkly for the specified environment (either because it is still starting up, or because of a service outage or network interruption). In [automatic configuration mode](../configuration.md#file-section-autoconfig), they will return a 503 error if the Relay Proxy has not yet received its configuration from LaunchDarkly. +The `GET`/`REPORT` endpoints will return a 401 error if the `Authorization` header does not match an SDK key that is known to the Relay Proxy, just as the actual LaunchDarkly service endpoints would do for an invalid SDK key. They will return a 503 error if the Relay Proxy has not yet successfully obtained feature flag data from LaunchDarkly for the specified environment (either because it is still starting up, or because of a service outage or network interruption). In [automatic configuration mode](configuration.md#file-section-autoconfig), they will return a 503 error if the Relay Proxy has not yet received its configuration from LaunchDarkly. ### Endpoints that client-side JavaScript SDKs use @@ -186,18 +186,18 @@ The `GET`/`REPORT` endpoints will return a 401 error if the `Authorization` head These endpoints also support the `OPTION` method to enable CORS requests from browsers. -Endpoint | Method | Proxied Subdomain | Description -----------------------------------------------|:--------:|:---------------:|------------------------------------ -`/a/{envId}.gif?d=*events*` | `GET` | `events.` | Alternative analytics event mechanism used if browser does not allow CORS -`/eval/{envId}/{contextBase64}` | `GET` | `clientstream.` | SSE stream of "ping" and other events for JS and other client-side SDK listeners -`/eval/{envId}` | `REPORT` | `clientstream.` | Same as above but request body is the evaluation context JSON object (not in base64) -`/events/bulk/{envId}` | `POST` | `events.` | Receives analytics events from SDKs -`/events/diagnostic/{envId}` | `POST` | `events.` | Receives diagnostic data from SDKs -`/ping/{envId}` | `GET` | `clientstream.` | SSE stream for older SDKs that issues "ping" events when flags have changed -`/sdk/evalx/{envId}/contexts/{contextBase64}` | `GET` | `clientsdk.` | Polling endpoint, returns flag evaluation results and additional metadata -`/sdk/evalx/{envId}/contexts` | `REPORT` | `clientsdk.` | Same as above but request body is the evaluation context JSON object (not in base64) -`/sdk/evalx/{envId}/users/{contextBase64}` | `GET` | `clientsdk.` | Alternate name for `/sdk/evalx/{envId}/contexts/{contextBase64}` used by older SDKs -`/sdk/evalx/{envId}/users` | `REPORT` | `clientsdk.` | Alternate name for `/sdk/evalx/{envId}/contexts` used by older SDKs -`/sdk/goals/{envId}` | `GET` | `clientsdk.` | Provides goals data used by JS SDK +| Endpoint | Method | Proxied Subdomain | Description | +|-----------------------------------------------|:--------:|:-----------------:|--------------------------------------------------------------------------------------| +| `/a/{envId}.gif?d=*events*` | `GET` | `events.` | Alternative analytics event mechanism used if browser does not allow CORS | +| `/eval/{envId}/{contextBase64}` | `GET` | `clientstream.` | SSE stream of "ping" and other events for JS and other client-side SDK listeners | +| `/eval/{envId}` | `REPORT` | `clientstream.` | Same as above but request body is the evaluation context JSON object (not in base64) | +| `/events/bulk/{envId}` | `POST` | `events.` | Receives analytics events from SDKs | +| `/events/diagnostic/{envId}` | `POST` | `events.` | Receives diagnostic data from SDKs | +| `/ping/{envId}` | `GET` | `clientstream.` | SSE stream for older SDKs that issues "ping" events when flags have changed | +| `/sdk/evalx/{envId}/contexts/{contextBase64}` | `GET` | `clientsdk.` | Polling endpoint, returns flag evaluation results and additional metadata | +| `/sdk/evalx/{envId}/contexts` | `REPORT` | `clientsdk.` | Same as above but request body is the evaluation context JSON object (not in base64) | +| `/sdk/evalx/{envId}/users/{contextBase64}` | `GET` | `clientsdk.` | Alternate name for `/sdk/evalx/{envId}/contexts/{contextBase64}` used by older SDKs | +| `/sdk/evalx/{envId}/users` | `REPORT` | `clientsdk.` | Alternate name for `/sdk/evalx/{envId}/contexts` used by older SDKs | +| `/sdk/goals/{envId}` | `GET` | `clientsdk.` | Provides goals data used by JS SDK | The `GET`/`REPORT` endpoints return a 404 error if the environment ID is not recognized by Relay. This is different from the server-side and mobile endpoints, which return 401 for an unrecognized credential; it is consistent with the behavior of the corresponding LaunchDarkly service endpoints for client-side JavaScript SDKs. diff --git a/docs/in-app.md b/docs/in-app.md index f55d1ad9..d1856c01 100644 --- a/docs/in-app.md +++ b/docs/in-app.md @@ -11,8 +11,8 @@ Here is an example of how you might run the Relay Proxy endpoints inside your we ```go import ( "github.com/gorilla/mux" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/relay" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/relay" "github.com/launchdarkly/go-sdk-common/v3/ldlog" ) @@ -37,7 +37,7 @@ The above example uses a configuration file. You can also pass in a `config.Conf ```go import ( - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" configtypes "github.com/launchdarkly/go-configtypes" ) @@ -57,7 +57,7 @@ Alternatively, you can parse the configuration from a string that is in the same ```go import ( - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "gopkg.in/gcfg.v1" ) diff --git a/go.mod b/go.mod index 2b6fcb5f..900ebe80 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/launchdarkly/ld-relay/v6 +module github.com/launchdarkly/ld-relay/v7 go 1.18 diff --git a/integrationtests/api_helpers_test.go b/integrationtests/api_helpers_test.go index 8dc6cb9d..9614a029 100644 --- a/integrationtests/api_helpers_test.go +++ b/integrationtests/api_helpers_test.go @@ -9,7 +9,7 @@ import ( "fmt" "time" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" ldapi "github.com/launchdarkly/api-client-go" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/integrationtests/autoconfig_test.go b/integrationtests/autoconfig_test.go index 3c5dff09..1becaa9f 100644 --- a/integrationtests/autoconfig_test.go +++ b/integrationtests/autoconfig_test.go @@ -10,8 +10,8 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/api" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/api" "github.com/stretchr/testify/require" ) diff --git a/integrationtests/big_segments_test.go b/integrationtests/big_segments_test.go index bd7aa166..191ecbce 100644 --- a/integrationtests/big_segments_test.go +++ b/integrationtests/big_segments_test.go @@ -12,8 +12,8 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/integrationtests/docker" - "github.com/launchdarkly/ld-relay/v6/internal/api" + "github.com/launchdarkly/ld-relay/v7/integrationtests/docker" + "github.com/launchdarkly/ld-relay/v7/internal/api" "github.com/launchdarkly/go-sdk-common/v3/ldvalue" diff --git a/integrationtests/build_relay_test.go b/integrationtests/build_relay_test.go index 1d61071c..e9097738 100644 --- a/integrationtests/build_relay_test.go +++ b/integrationtests/build_relay_test.go @@ -10,8 +10,8 @@ import ( "strings" "github.com/launchdarkly/go-sdk-common/v3/ldlog" - "github.com/launchdarkly/ld-relay/v6/integrationtests/docker" - "github.com/launchdarkly/ld-relay/v6/integrationtests/oshelpers" + "github.com/launchdarkly/ld-relay/v7/integrationtests/docker" + "github.com/launchdarkly/ld-relay/v7/integrationtests/oshelpers" ) const ( diff --git a/integrationtests/database_params_test.go b/integrationtests/database_params_test.go index e250e708..084136d1 100644 --- a/integrationtests/database_params_test.go +++ b/integrationtests/database_params_test.go @@ -9,8 +9,8 @@ import ( "reflect" "testing" - "github.com/launchdarkly/ld-relay/v6/integrationtests/docker" - "github.com/launchdarkly/ld-relay/v6/internal/api" + "github.com/launchdarkly/ld-relay/v7/integrationtests/docker" + "github.com/launchdarkly/ld-relay/v7/internal/api" "github.com/stretchr/testify/require" ) diff --git a/integrationtests/database_test.go b/integrationtests/database_test.go index 41e00ce5..7c865c0a 100644 --- a/integrationtests/database_test.go +++ b/integrationtests/database_test.go @@ -6,8 +6,8 @@ package integrationtests import ( "testing" - "github.com/launchdarkly/ld-relay/v6/integrationtests/docker" - "github.com/launchdarkly/ld-relay/v6/internal/api" + "github.com/launchdarkly/ld-relay/v7/integrationtests/docker" + "github.com/launchdarkly/ld-relay/v7/internal/api" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/integrationtests/docker/docker_helpers.go b/integrationtests/docker/docker_helpers.go index 5b249026..66bd9778 100644 --- a/integrationtests/docker/docker_helpers.go +++ b/integrationtests/docker/docker_helpers.go @@ -6,7 +6,7 @@ import ( "os" "strings" - "github.com/launchdarkly/ld-relay/v6/integrationtests/oshelpers" + "github.com/launchdarkly/ld-relay/v7/integrationtests/oshelpers" "github.com/launchdarkly/go-sdk-common/v3/ldvalue" diff --git a/integrationtests/offline_mode_test.go b/integrationtests/offline_mode_test.go index a5e95e59..dac5c33a 100644 --- a/integrationtests/offline_mode_test.go +++ b/integrationtests/offline_mode_test.go @@ -13,7 +13,7 @@ import ( "path/filepath" "testing" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" helpers "github.com/launchdarkly/go-test-helpers/v3" diff --git a/integrationtests/projects_and_environments_test.go b/integrationtests/projects_and_environments_test.go index f6b785d3..04f92bdd 100644 --- a/integrationtests/projects_and_environments_test.go +++ b/integrationtests/projects_and_environments_test.go @@ -1,9 +1,10 @@ +//go:build integrationtests // +build integrationtests package integrationtests import ( - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" ) type projectInfo struct { diff --git a/integrationtests/test_manager_test.go b/integrationtests/test_manager_test.go index ce98f8da..4cce70c2 100644 --- a/integrationtests/test_manager_test.go +++ b/integrationtests/test_manager_test.go @@ -17,10 +17,10 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/integrationtests/docker" - "github.com/launchdarkly/ld-relay/v6/integrationtests/oshelpers" - "github.com/launchdarkly/ld-relay/v6/internal/api" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/integrationtests/docker" + "github.com/launchdarkly/ld-relay/v7/integrationtests/oshelpers" + "github.com/launchdarkly/ld-relay/v7/internal/api" ldapi "github.com/launchdarkly/api-client-go" ct "github.com/launchdarkly/go-configtypes" diff --git a/internal/application/server.go b/internal/application/server.go index 9bed8f26..3216e9e7 100644 --- a/internal/application/server.go +++ b/internal/application/server.go @@ -5,7 +5,7 @@ import ( "fmt" "net/http" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-sdk-common/v3/ldlog" ) diff --git a/internal/application/server_test.go b/internal/application/server_test.go index 5caa89ec..42e14e67 100644 --- a/internal/application/server_test.go +++ b/internal/application/server_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-sdk-common/v3/ldlogtest" diff --git a/internal/autoconfig/message_handler.go b/internal/autoconfig/message_handler.go index cef22291..cf835444 100644 --- a/internal/autoconfig/message_handler.go +++ b/internal/autoconfig/message_handler.go @@ -1,8 +1,8 @@ package autoconfig import ( - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/envfactory" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/envfactory" ) // MessageHandler defines the methods that StreamManager will call when it receives messages diff --git a/internal/autoconfig/stream_manager.go b/internal/autoconfig/stream_manager.go index 9678b0e2..81b4566e 100644 --- a/internal/autoconfig/stream_manager.go +++ b/internal/autoconfig/stream_manager.go @@ -13,9 +13,9 @@ import ( es "github.com/launchdarkly/eventsource" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-sdk-common/v3/ldtime" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/envfactory" - "github.com/launchdarkly/ld-relay/v6/internal/httpconfig" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/envfactory" + "github.com/launchdarkly/ld-relay/v7/internal/httpconfig" ) const ( diff --git a/internal/autoconfig/stream_manager_events_test.go b/internal/autoconfig/stream_manager_events_test.go index cf460bd5..a0e6ef23 100644 --- a/internal/autoconfig/stream_manager_events_test.go +++ b/internal/autoconfig/stream_manager_events_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/require" "github.com/launchdarkly/go-test-helpers/v3/httphelpers" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" ) func TestPutEvent(t *testing.T) { diff --git a/internal/autoconfig/stream_manager_expiring_key_test.go b/internal/autoconfig/stream_manager_expiring_key_test.go index 90000d7b..d3d626f9 100644 --- a/internal/autoconfig/stream_manager_expiring_key_test.go +++ b/internal/autoconfig/stream_manager_expiring_key_test.go @@ -3,8 +3,8 @@ package autoconfig import ( "testing" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/envfactory" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/envfactory" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-sdk-common/v3/ldtime" diff --git a/internal/autoconfig/stream_manager_test_base_test.go b/internal/autoconfig/stream_manager_test_base_test.go index 11783526..0d48a037 100644 --- a/internal/autoconfig/stream_manager_test_base_test.go +++ b/internal/autoconfig/stream_manager_test_base_test.go @@ -8,9 +8,9 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/envfactory" - "github.com/launchdarkly/ld-relay/v6/internal/httpconfig" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/envfactory" + "github.com/launchdarkly/ld-relay/v7/internal/httpconfig" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-sdk-common/v3/ldlogtest" diff --git a/internal/autoconfig/stream_messages.go b/internal/autoconfig/stream_messages.go index 8d83adc8..60940b8a 100644 --- a/internal/autoconfig/stream_messages.go +++ b/internal/autoconfig/stream_messages.go @@ -1,8 +1,8 @@ package autoconfig import ( - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/envfactory" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/envfactory" ) // These SSE message types are exported so that tests in other packages can more easily create diff --git a/internal/bigsegments/store.go b/internal/bigsegments/store.go index 96c84ca2..9cfb6515 100644 --- a/internal/bigsegments/store.go +++ b/internal/bigsegments/store.go @@ -3,7 +3,7 @@ package bigsegments import ( "io" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-sdk-common/v3/ldtime" diff --git a/internal/bigsegments/store_dynamodb.go b/internal/bigsegments/store_dynamodb.go index e29c42fd..072b59d9 100644 --- a/internal/bigsegments/store_dynamodb.go +++ b/internal/bigsegments/store_dynamodb.go @@ -5,8 +5,8 @@ import ( "errors" "strconv" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/sdks" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/sdks" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-sdk-common/v3/ldtime" diff --git a/internal/bigsegments/store_dynamodb_test.go b/internal/bigsegments/store_dynamodb_test.go index f437eb77..6ca5894c 100644 --- a/internal/bigsegments/store_dynamodb_test.go +++ b/internal/bigsegments/store_dynamodb_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/bigsegments/store_redis.go b/internal/bigsegments/store_redis.go index afbb71c6..363a289c 100644 --- a/internal/bigsegments/store_redis.go +++ b/internal/bigsegments/store_redis.go @@ -6,8 +6,8 @@ import ( "fmt" "strconv" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/sdks" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/sdks" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-sdk-common/v3/ldtime" diff --git a/internal/bigsegments/store_redis_test.go b/internal/bigsegments/store_redis_test.go index 912d860e..316e8fb5 100644 --- a/internal/bigsegments/store_redis_test.go +++ b/internal/bigsegments/store_redis_test.go @@ -7,7 +7,7 @@ import ( "context" "testing" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-configtypes" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/bigsegments/sync.go b/internal/bigsegments/sync.go index 0d7906ce..1e3b01c5 100644 --- a/internal/bigsegments/sync.go +++ b/internal/bigsegments/sync.go @@ -9,8 +9,8 @@ import ( "sync" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/httpconfig" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/httpconfig" es "github.com/launchdarkly/eventsource" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/bigsegments/sync_test.go b/internal/bigsegments/sync_test.go index 92f8a990..2b87f95a 100644 --- a/internal/bigsegments/sync_test.go +++ b/internal/bigsegments/sync_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-sdk-common/v3/ldlogtest" diff --git a/internal/browser/cors.go b/internal/browser/cors.go index 5b0d9035..cedcd3a4 100644 --- a/internal/browser/cors.go +++ b/internal/browser/cors.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "github.com/launchdarkly/ld-relay/v6/internal/events" + "github.com/launchdarkly/ld-relay/v7/internal/events" ) const ( diff --git a/internal/envfactory/env_config_factory.go b/internal/envfactory/env_config_factory.go index efb5e8a8..9c166421 100644 --- a/internal/envfactory/env_config_factory.go +++ b/internal/envfactory/env_config_factory.go @@ -3,7 +3,7 @@ package envfactory import ( "strings" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" ct "github.com/launchdarkly/go-configtypes" ) diff --git a/internal/envfactory/env_params.go b/internal/envfactory/env_params.go index c16ac8bf..ee3f47d3 100644 --- a/internal/envfactory/env_params.go +++ b/internal/envfactory/env_params.go @@ -3,8 +3,8 @@ package envfactory import ( "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/relayenv" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/relayenv" ) // EnvironmentParams contains environment-specific information obtained from LaunchDarkly which diff --git a/internal/envfactory/env_rep.go b/internal/envfactory/env_rep.go index 94a62372..4c42459d 100644 --- a/internal/envfactory/env_rep.go +++ b/internal/envfactory/env_rep.go @@ -4,8 +4,8 @@ import ( "time" "github.com/launchdarkly/go-sdk-common/v3/ldtime" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/relayenv" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/relayenv" ) // These representation types are used by both the autoconfig package and the filedata package, diff --git a/internal/envfactory/env_rep_test.go b/internal/envfactory/env_rep_test.go index e50132ea..c857ac9d 100644 --- a/internal/envfactory/env_rep_test.go +++ b/internal/envfactory/env_rep_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/relayenv" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/relayenv" "github.com/launchdarkly/go-sdk-common/v3/ldtime" diff --git a/internal/events/event-relay.go b/internal/events/event-relay.go index 1b60e5df..2c7a7ee8 100644 --- a/internal/events/event-relay.go +++ b/internal/events/event-relay.go @@ -8,11 +8,11 @@ import ( "sync" "time" - c "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" - "github.com/launchdarkly/ld-relay/v6/internal/httpconfig" - "github.com/launchdarkly/ld-relay/v6/internal/store" - "github.com/launchdarkly/ld-relay/v6/internal/util" + c "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/internal/httpconfig" + "github.com/launchdarkly/ld-relay/v7/internal/store" + "github.com/launchdarkly/ld-relay/v7/internal/util" "github.com/launchdarkly/go-configtypes" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/events/event-relay_test.go b/internal/events/event-relay_test.go index e7cb3d6d..7ccce5cb 100644 --- a/internal/events/event-relay_test.go +++ b/internal/events/event-relay_test.go @@ -8,11 +8,11 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" - "github.com/launchdarkly/ld-relay/v6/internal/httpconfig" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" - "github.com/launchdarkly/ld-relay/v6/internal/store" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/internal/httpconfig" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/store" "github.com/launchdarkly/go-configtypes" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/events/event_publisher.go b/internal/events/event_publisher.go index da2deccb..572682df 100644 --- a/internal/events/event_publisher.go +++ b/internal/events/event_publisher.go @@ -10,8 +10,8 @@ import ( "sync" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/httpconfig" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/httpconfig" "github.com/launchdarkly/go-sdk-common/v3/ldlog" ldevents "github.com/launchdarkly/go-sdk-events/v2" diff --git a/internal/events/event_publisher_test.go b/internal/events/event_publisher_test.go index 9fc34842..395c28ea 100644 --- a/internal/events/event_publisher_test.go +++ b/internal/events/event_publisher_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/httpconfig" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/httpconfig" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-sdk-common/v3/ldlogtest" diff --git a/internal/events/oldevents/translate_events_test.go b/internal/events/oldevents/translate_events_test.go index 4694e68a..4349d676 100644 --- a/internal/events/oldevents/translate_events_test.go +++ b/internal/events/oldevents/translate_events_test.go @@ -4,7 +4,7 @@ import ( "errors" "testing" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/go-sdk-common/v3/ldcontext" "github.com/launchdarkly/go-sdk-common/v3/ldtime" diff --git a/internal/events/summarizing-relay.go b/internal/events/summarizing-relay.go index 562dcceb..78546f4d 100644 --- a/internal/events/summarizing-relay.go +++ b/internal/events/summarizing-relay.go @@ -7,10 +7,10 @@ import ( "sync" "time" - c "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/events/oldevents" - "github.com/launchdarkly/ld-relay/v6/internal/httpconfig" - "github.com/launchdarkly/ld-relay/v6/internal/store" + c "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/events/oldevents" + "github.com/launchdarkly/ld-relay/v7/internal/httpconfig" + "github.com/launchdarkly/ld-relay/v7/internal/store" "github.com/launchdarkly/go-sdk-common/v3/ldlog" ldevents "github.com/launchdarkly/go-sdk-events/v2" diff --git a/internal/events/summarizing-relay_test.go b/internal/events/summarizing-relay_test.go index 403aa896..925b1300 100644 --- a/internal/events/summarizing-relay_test.go +++ b/internal/events/summarizing-relay_test.go @@ -8,9 +8,9 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" ldevents "github.com/launchdarkly/go-sdk-events/v2" helpers "github.com/launchdarkly/go-test-helpers/v3" diff --git a/internal/filedata/archive_manager.go b/internal/filedata/archive_manager.go index ad34df1b..c3942efe 100644 --- a/internal/filedata/archive_manager.go +++ b/internal/filedata/archive_manager.go @@ -7,7 +7,7 @@ import ( "time" "github.com/launchdarkly/go-sdk-common/v3/ldlog" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/fsnotify/fsnotify" ) diff --git a/internal/filedata/archive_manager_test_base_test.go b/internal/filedata/archive_manager_test_base_test.go index fccf5393..023daed8 100644 --- a/internal/filedata/archive_manager_test_base_test.go +++ b/internal/filedata/archive_manager_test_base_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-sdk-common/v3/ldlogtest" diff --git a/internal/filedata/archive_reader.go b/internal/filedata/archive_reader.go index 92d10239..8976f7fa 100644 --- a/internal/filedata/archive_reader.go +++ b/internal/filedata/archive_reader.go @@ -15,8 +15,8 @@ import ( "sort" "strings" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/envfactory" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/envfactory" "github.com/launchdarkly/go-server-sdk/v6/subsystems/ldstoreimpl" "github.com/launchdarkly/go-server-sdk/v6/subsystems/ldstoretypes" diff --git a/internal/filedata/archive_reader_test.go b/internal/filedata/archive_reader_test.go index 3255d0df..38054061 100644 --- a/internal/filedata/archive_reader_test.go +++ b/internal/filedata/archive_reader_test.go @@ -5,7 +5,7 @@ import ( "sort" "testing" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" helpers "github.com/launchdarkly/go-test-helpers/v3" diff --git a/internal/filedata/testdata_test.go b/internal/filedata/testdata_test.go index ec5925eb..1c09c47b 100644 --- a/internal/filedata/testdata_test.go +++ b/internal/filedata/testdata_test.go @@ -12,8 +12,8 @@ import ( "sort" "testing" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/envfactory" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/envfactory" "github.com/launchdarkly/go-server-sdk-evaluation/v2/ldbuilders" "github.com/launchdarkly/go-server-sdk/v6/subsystems/ldstoretypes" diff --git a/internal/filedata/update_handler.go b/internal/filedata/update_handler.go index b167ffba..0a87bf7d 100644 --- a/internal/filedata/update_handler.go +++ b/internal/filedata/update_handler.go @@ -1,8 +1,8 @@ package filedata import ( - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/envfactory" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/envfactory" "github.com/launchdarkly/go-server-sdk/v6/subsystems/ldstoretypes" ) diff --git a/internal/httpconfig/httpconfig.go b/internal/httpconfig/httpconfig.go index f4643fa4..a2cb7185 100644 --- a/internal/httpconfig/httpconfig.go +++ b/internal/httpconfig/httpconfig.go @@ -5,7 +5,7 @@ import ( "errors" "net/http" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-server-sdk/v6/ldcomponents" diff --git a/internal/httpconfig/httpconfig_test.go b/internal/httpconfig/httpconfig_test.go index d6911470..72549e30 100644 --- a/internal/httpconfig/httpconfig_test.go +++ b/internal/httpconfig/httpconfig_test.go @@ -7,7 +7,7 @@ import ( "os" "testing" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-configtypes" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/metrics/datadog.go b/internal/metrics/datadog.go index f7215f25..6eed1387 100644 --- a/internal/metrics/datadog.go +++ b/internal/metrics/datadog.go @@ -2,7 +2,7 @@ package metrics import ( "github.com/launchdarkly/go-sdk-common/v3/ldlog" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" datadog "github.com/DataDog/opencensus-go-exporter-datadog" "go.opencensus.io/stats/view" diff --git a/internal/metrics/datadog_test.go b/internal/metrics/datadog_test.go index 270e58ed..f3298288 100644 --- a/internal/metrics/datadog_test.go +++ b/internal/metrics/datadog_test.go @@ -3,7 +3,7 @@ package metrics import ( "testing" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/metrics/events_exporter.go b/internal/metrics/events_exporter.go index 27e26954..cbd4a039 100644 --- a/internal/metrics/events_exporter.go +++ b/internal/metrics/events_exporter.go @@ -5,7 +5,7 @@ import ( "sync" "time" - "github.com/launchdarkly/ld-relay/v6/internal/events" + "github.com/launchdarkly/ld-relay/v7/internal/events" "github.com/launchdarkly/go-sdk-common/v3/ldtime" diff --git a/internal/metrics/events_exporter_test.go b/internal/metrics/events_exporter_test.go index b1986d82..ae2ca62c 100644 --- a/internal/metrics/events_exporter_test.go +++ b/internal/metrics/events_exporter_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/internal/events" + "github.com/launchdarkly/ld-relay/v7/internal/events" "github.com/launchdarkly/go-sdk-common/v3/ldlogtest" "github.com/launchdarkly/go-sdk-common/v3/ldtime" diff --git a/internal/metrics/exporters.go b/internal/metrics/exporters.go index 493d6b5a..6afac7bf 100644 --- a/internal/metrics/exporters.go +++ b/internal/metrics/exporters.go @@ -1,7 +1,7 @@ package metrics import ( - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-sdk-common/v3/ldlog" ) diff --git a/internal/metrics/exporters_test.go b/internal/metrics/exporters_test.go index c4cb3b15..9f5e5a92 100644 --- a/internal/metrics/exporters_test.go +++ b/internal/metrics/exporters_test.go @@ -4,7 +4,7 @@ import ( "errors" "testing" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-sdk-common/v3/ldlogtest" diff --git a/internal/metrics/measures.go b/internal/metrics/measures.go index e098aa25..eb8f29ac 100644 --- a/internal/metrics/measures.go +++ b/internal/metrics/measures.go @@ -3,7 +3,7 @@ package metrics import ( "context" - "github.com/launchdarkly/ld-relay/v6/internal/logging" + "github.com/launchdarkly/ld-relay/v7/internal/logging" "go.opencensus.io/stats" "go.opencensus.io/tag" diff --git a/internal/metrics/metrics.go b/internal/metrics/metrics.go index 7c9d097b..f3458068 100644 --- a/internal/metrics/metrics.go +++ b/internal/metrics/metrics.go @@ -8,8 +8,8 @@ import ( "sync" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/events" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/events" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/metrics/metrics_test.go b/internal/metrics/metrics_test.go index f6b0f0e2..98d5a048 100644 --- a/internal/metrics/metrics_test.go +++ b/internal/metrics/metrics_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/config" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/metrics/prometheus.go b/internal/metrics/prometheus.go index ac808d44..42f3b174 100644 --- a/internal/metrics/prometheus.go +++ b/internal/metrics/prometheus.go @@ -5,7 +5,7 @@ import ( "net" "net/http" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/metrics/prometheus_test.go b/internal/metrics/prometheus_test.go index 73328036..6aebf2d7 100644 --- a/internal/metrics/prometheus_test.go +++ b/internal/metrics/prometheus_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/config" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" ct "github.com/launchdarkly/go-configtypes" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/metrics/stackdriver.go b/internal/metrics/stackdriver.go index 86e6e6c9..b5285e4b 100644 --- a/internal/metrics/stackdriver.go +++ b/internal/metrics/stackdriver.go @@ -1,7 +1,7 @@ package metrics import ( - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/metrics/stackdriver_test.go b/internal/metrics/stackdriver_test.go index 74887a31..8a139e4b 100644 --- a/internal/metrics/stackdriver_test.go +++ b/internal/metrics/stackdriver_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-sdk-common/v3/ldlog" helpers "github.com/launchdarkly/go-test-helpers/v3" diff --git a/internal/metrics/test_utils_test.go b/internal/metrics/test_utils_test.go index 336c2de6..02e49592 100644 --- a/internal/metrics/test_utils_test.go +++ b/internal/metrics/test_utils_test.go @@ -8,9 +8,9 @@ import ( "github.com/pborman/uuid" "github.com/stretchr/testify/require" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/events" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/events" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-sdk-common/v3/ldlogtest" diff --git a/internal/middleware/context.go b/internal/middleware/context.go index 807b6196..4c9f0bb6 100644 --- a/internal/middleware/context.go +++ b/internal/middleware/context.go @@ -3,8 +3,8 @@ package middleware import ( "context" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/relayenv" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/relayenv" ) type contextKeyType string diff --git a/internal/middleware/context_test.go b/internal/middleware/context_test.go index 497d9e4a..18f62b7b 100644 --- a/internal/middleware/context_test.go +++ b/internal/middleware/context_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest/testenv" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest/testenv" "github.com/stretchr/testify/assert" ) diff --git a/internal/middleware/metrics_middleware.go b/internal/middleware/metrics_middleware.go index 900c9c9a..235c1a46 100644 --- a/internal/middleware/metrics_middleware.go +++ b/internal/middleware/metrics_middleware.go @@ -3,7 +3,7 @@ package middleware import ( "net/http" - "github.com/launchdarkly/ld-relay/v6/internal/metrics" + "github.com/launchdarkly/ld-relay/v7/internal/metrics" "github.com/gorilla/mux" ) diff --git a/internal/middleware/metrics_middleware_test.go b/internal/middleware/metrics_middleware_test.go index afdf0fbf..604043b8 100644 --- a/internal/middleware/metrics_middleware_test.go +++ b/internal/middleware/metrics_middleware_test.go @@ -6,11 +6,11 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/metrics" - "github.com/launchdarkly/ld-relay/v6/internal/relayenv" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest/testclient" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/metrics" + "github.com/launchdarkly/ld-relay/v7/internal/relayenv" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest/testclient" "github.com/launchdarkly/go-sdk-common/v3/ldlogtest" diff --git a/internal/middleware/middleware.go b/internal/middleware/middleware.go index 331464eb..ea4a1df4 100644 --- a/internal/middleware/middleware.go +++ b/internal/middleware/middleware.go @@ -6,11 +6,11 @@ import ( "errors" "net/http" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" - "github.com/launchdarkly/ld-relay/v6/internal/browser" - "github.com/launchdarkly/ld-relay/v6/internal/relayenv" - "github.com/launchdarkly/ld-relay/v6/internal/sdks" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/internal/browser" + "github.com/launchdarkly/ld-relay/v7/internal/relayenv" + "github.com/launchdarkly/ld-relay/v7/internal/sdks" "github.com/launchdarkly/go-sdk-common/v3/ldcontext" ld "github.com/launchdarkly/go-server-sdk/v6" diff --git a/internal/middleware/middleware_test.go b/internal/middleware/middleware_test.go index 7982ebbd..7e3c1581 100644 --- a/internal/middleware/middleware_test.go +++ b/internal/middleware/middleware_test.go @@ -8,13 +8,13 @@ import ( "strings" "testing" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" - "github.com/launchdarkly/ld-relay/v6/internal/browser" - "github.com/launchdarkly/ld-relay/v6/internal/relayenv" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest/testclient" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest/testenv" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/internal/browser" + "github.com/launchdarkly/ld-relay/v7/internal/relayenv" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest/testclient" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest/testenv" "github.com/launchdarkly/go-sdk-common/v3/ldcontext" diff --git a/internal/relayenv/env_context.go b/internal/relayenv/env_context.go index ad746324..1d59b209 100644 --- a/internal/relayenv/env_context.go +++ b/internal/relayenv/env_context.go @@ -8,11 +8,11 @@ import ( "time" "github.com/launchdarkly/go-server-sdk/v6/subsystems" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/bigsegments" - "github.com/launchdarkly/ld-relay/v6/internal/events" - "github.com/launchdarkly/ld-relay/v6/internal/sdks" - "github.com/launchdarkly/ld-relay/v6/internal/streams" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/bigsegments" + "github.com/launchdarkly/ld-relay/v7/internal/events" + "github.com/launchdarkly/ld-relay/v7/internal/sdks" + "github.com/launchdarkly/ld-relay/v7/internal/streams" "github.com/launchdarkly/go-sdk-common/v3/ldlog" ldeval "github.com/launchdarkly/go-server-sdk-evaluation/v2" diff --git a/internal/relayenv/env_context_impl.go b/internal/relayenv/env_context_impl.go index e4a394b9..1882ed1c 100644 --- a/internal/relayenv/env_context_impl.go +++ b/internal/relayenv/env_context_impl.go @@ -7,15 +7,15 @@ import ( "sync" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/bigsegments" - "github.com/launchdarkly/ld-relay/v6/internal/events" - "github.com/launchdarkly/ld-relay/v6/internal/httpconfig" - "github.com/launchdarkly/ld-relay/v6/internal/metrics" - "github.com/launchdarkly/ld-relay/v6/internal/sdks" - "github.com/launchdarkly/ld-relay/v6/internal/store" - "github.com/launchdarkly/ld-relay/v6/internal/streams" - "github.com/launchdarkly/ld-relay/v6/internal/util" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/bigsegments" + "github.com/launchdarkly/ld-relay/v7/internal/events" + "github.com/launchdarkly/ld-relay/v7/internal/httpconfig" + "github.com/launchdarkly/ld-relay/v7/internal/metrics" + "github.com/launchdarkly/ld-relay/v7/internal/sdks" + "github.com/launchdarkly/ld-relay/v7/internal/store" + "github.com/launchdarkly/ld-relay/v7/internal/streams" + "github.com/launchdarkly/ld-relay/v7/internal/util" "github.com/launchdarkly/go-sdk-common/v3/ldlog" ldeval "github.com/launchdarkly/go-server-sdk-evaluation/v2" diff --git a/internal/relayenv/env_context_impl_test.go b/internal/relayenv/env_context_impl_test.go index 92fd6163..18c2dd4d 100644 --- a/internal/relayenv/env_context_impl_test.go +++ b/internal/relayenv/env_context_impl_test.go @@ -12,16 +12,16 @@ import ( "time" "github.com/launchdarkly/eventsource" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" - "github.com/launchdarkly/ld-relay/v6/internal/bigsegments" - "github.com/launchdarkly/ld-relay/v6/internal/events" - "github.com/launchdarkly/ld-relay/v6/internal/httpconfig" - "github.com/launchdarkly/ld-relay/v6/internal/metrics" - "github.com/launchdarkly/ld-relay/v6/internal/sdks" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest/testclient" - "github.com/launchdarkly/ld-relay/v6/internal/streams" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/internal/bigsegments" + "github.com/launchdarkly/ld-relay/v7/internal/events" + "github.com/launchdarkly/ld-relay/v7/internal/httpconfig" + "github.com/launchdarkly/ld-relay/v7/internal/metrics" + "github.com/launchdarkly/ld-relay/v7/internal/sdks" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest/testclient" + "github.com/launchdarkly/ld-relay/v7/internal/streams" "github.com/launchdarkly/go-configtypes" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/sdks/big_segments.go b/internal/sdks/big_segments.go index 40c8e9b1..320877fc 100644 --- a/internal/sdks/big_segments.go +++ b/internal/sdks/big_segments.go @@ -1,7 +1,7 @@ package sdks import ( - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-server-sdk/v6/ldcomponents" diff --git a/internal/sdks/big_segments_test.go b/internal/sdks/big_segments_test.go index 1c312ac5..b8dba8ee 100644 --- a/internal/sdks/big_segments_test.go +++ b/internal/sdks/big_segments_test.go @@ -3,7 +3,7 @@ package sdks import ( "testing" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-configtypes" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/sdks/client_factory.go b/internal/sdks/client_factory.go index 60be4326..fea9e704 100644 --- a/internal/sdks/client_factory.go +++ b/internal/sdks/client_factory.go @@ -4,7 +4,7 @@ import ( "sync" "time" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-sdk-common/v3/ldcontext" ld "github.com/launchdarkly/go-server-sdk/v6" diff --git a/internal/sdks/client_factory_test.go b/internal/sdks/client_factory_test.go index 49b7e702..398b6e30 100644 --- a/internal/sdks/client_factory_test.go +++ b/internal/sdks/client_factory_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" ld "github.com/launchdarkly/go-server-sdk/v6" "github.com/launchdarkly/go-server-sdk/v6/interfaces" diff --git a/internal/sdks/data_stores.go b/internal/sdks/data_stores.go index 76ae431b..03033f91 100644 --- a/internal/sdks/data_stores.go +++ b/internal/sdks/data_stores.go @@ -5,8 +5,8 @@ import ( "errors" "strings" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/util" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/util" "github.com/launchdarkly/go-sdk-common/v3/ldlog" ldconsul "github.com/launchdarkly/go-server-sdk-consul/v2" diff --git a/internal/sdks/data_stores_test.go b/internal/sdks/data_stores_test.go index a83c087a..5e88584a 100644 --- a/internal/sdks/data_stores_test.go +++ b/internal/sdks/data_stores_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-configtypes" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/sdks/sdk_kinds.go b/internal/sdks/sdk_kinds.go index e3be445c..479b9920 100644 --- a/internal/sdks/sdk_kinds.go +++ b/internal/sdks/sdk_kinds.go @@ -5,8 +5,8 @@ import ( "net/http" "strings" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" "github.com/gorilla/mux" ) diff --git a/internal/sdks/sdk_kinds_test.go b/internal/sdks/sdk_kinds_test.go index 336598a9..d2174780 100644 --- a/internal/sdks/sdk_kinds_test.go +++ b/internal/sdks/sdk_kinds_test.go @@ -5,8 +5,8 @@ import ( "net/http/httptest" "testing" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" "github.com/gorilla/mux" "github.com/stretchr/testify/assert" diff --git a/internal/sharedtest/configs.go b/internal/sharedtest/configs.go index 768d6eba..c1062318 100644 --- a/internal/sharedtest/configs.go +++ b/internal/sharedtest/configs.go @@ -1,8 +1,8 @@ package sharedtest import ( - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/httpconfig" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/httpconfig" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-server-sdk/v6/subsystems" diff --git a/internal/sharedtest/endpoints.go b/internal/sharedtest/endpoints.go index 4989d33b..79cb8560 100644 --- a/internal/sharedtest/endpoints.go +++ b/internal/sharedtest/endpoints.go @@ -5,7 +5,7 @@ import ( "fmt" "net/http" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" ) // These methods should be used by all test code that makes HTTP requests to Relay endpoints. diff --git a/internal/sharedtest/requests.go b/internal/sharedtest/requests.go index 69bd9ba8..dd38d4e8 100644 --- a/internal/sharedtest/requests.go +++ b/internal/sharedtest/requests.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" helpers "github.com/launchdarkly/go-test-helpers/v3" diff --git a/internal/sharedtest/testclient/fake_client.go b/internal/sharedtest/testclient/fake_client.go index 6339d036..375a1f03 100644 --- a/internal/sharedtest/testclient/fake_client.go +++ b/internal/sharedtest/testclient/fake_client.go @@ -9,10 +9,10 @@ import ( "time" helpers "github.com/launchdarkly/go-test-helpers/v3" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/sdks" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" - "github.com/launchdarkly/ld-relay/v6/internal/store" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/sdks" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/store" "github.com/launchdarkly/go-sdk-common/v3/ldcontext" ld "github.com/launchdarkly/go-server-sdk/v6" diff --git a/internal/sharedtest/testdata_envs.go b/internal/sharedtest/testdata_envs.go index 99bca4e3..dffbb760 100644 --- a/internal/sharedtest/testdata_envs.go +++ b/internal/sharedtest/testdata_envs.go @@ -3,7 +3,7 @@ package sharedtest import ( "time" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" ct "github.com/launchdarkly/go-configtypes" "github.com/launchdarkly/go-sdk-common/v3/ldtime" diff --git a/internal/sharedtest/testenv/test_env_context.go b/internal/sharedtest/testenv/test_env_context.go index ee681219..5870f84b 100644 --- a/internal/sharedtest/testenv/test_env_context.go +++ b/internal/sharedtest/testenv/test_env_context.go @@ -5,10 +5,10 @@ package testenv import ( "time" - "github.com/launchdarkly/ld-relay/v6/internal/relayenv" - "github.com/launchdarkly/ld-relay/v6/internal/sdks" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest/testclient" + "github.com/launchdarkly/ld-relay/v7/internal/relayenv" + "github.com/launchdarkly/ld-relay/v7/internal/sdks" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest/testclient" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-server-sdk/v6/ldcomponents" diff --git a/internal/store/relay_feature_store.go b/internal/store/relay_feature_store.go index 4793838d..08b1e6b3 100644 --- a/internal/store/relay_feature_store.go +++ b/internal/store/relay_feature_store.go @@ -3,7 +3,7 @@ package store import ( "sync" - "github.com/launchdarkly/ld-relay/v6/internal/streams" + "github.com/launchdarkly/ld-relay/v7/internal/streams" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-server-sdk/v6/subsystems" diff --git a/internal/store/relay_feature_store_test.go b/internal/store/relay_feature_store_test.go index bc72ccf3..b51e4bdd 100644 --- a/internal/store/relay_feature_store_test.go +++ b/internal/store/relay_feature_store_test.go @@ -3,7 +3,7 @@ package store import ( "testing" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-server-sdk-evaluation/v2/ldbuilders" diff --git a/internal/store/relay_feature_store_testdata_test.go b/internal/store/relay_feature_store_testdata_test.go index 1180a21b..8d2572b0 100644 --- a/internal/store/relay_feature_store_testdata_test.go +++ b/internal/store/relay_feature_store_testdata_test.go @@ -4,8 +4,8 @@ import ( "errors" "testing" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/go-server-sdk-evaluation/v2/ldbuilders" "github.com/launchdarkly/go-server-sdk/v6/subsystems" diff --git a/internal/streams/env_streams.go b/internal/streams/env_streams.go index dd5985c4..df7a7f35 100644 --- a/internal/streams/env_streams.go +++ b/internal/streams/env_streams.go @@ -4,7 +4,7 @@ import ( "sync" "time" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-server-sdk/v6/subsystems/ldstoretypes" diff --git a/internal/streams/env_streams_test.go b/internal/streams/env_streams_test.go index d29d2886..c22753a8 100644 --- a/internal/streams/env_streams_test.go +++ b/internal/streams/env_streams_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-server-sdk/v6/subsystems/ldstoreimpl" diff --git a/internal/streams/stream_events.go b/internal/streams/stream_events.go index 7b80898a..d82fc94f 100644 --- a/internal/streams/stream_events.go +++ b/internal/streams/stream_events.go @@ -1,7 +1,7 @@ package streams import ( - "github.com/launchdarkly/ld-relay/v6/internal/util" + "github.com/launchdarkly/ld-relay/v7/internal/util" "github.com/launchdarkly/eventsource" "github.com/launchdarkly/go-jsonstream/v3/jwriter" diff --git a/internal/streams/stream_events_benchmark_test.go b/internal/streams/stream_events_benchmark_test.go index 667293b1..d9993e40 100644 --- a/internal/streams/stream_events_benchmark_test.go +++ b/internal/streams/stream_events_benchmark_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/go-server-sdk-evaluation/v2/ldbuilders" "github.com/launchdarkly/go-server-sdk/v6/subsystems/ldstoreimpl" diff --git a/internal/streams/stream_events_test.go b/internal/streams/stream_events_test.go index 8d2d3d69..6b3e7b26 100644 --- a/internal/streams/stream_events_test.go +++ b/internal/streams/stream_events_test.go @@ -3,7 +3,7 @@ package streams import ( "testing" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/go-server-sdk/v6/subsystems/ldstoreimpl" "github.com/launchdarkly/go-server-sdk/v6/subsystems/ldstoretypes" diff --git a/internal/streams/stream_provider.go b/internal/streams/stream_provider.go index 5dfc0853..a66000e8 100644 --- a/internal/streams/stream_provider.go +++ b/internal/streams/stream_provider.go @@ -4,8 +4,8 @@ import ( "net/http" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" "github.com/launchdarkly/eventsource" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/streams/stream_provider_client_side_ping.go b/internal/streams/stream_provider_client_side_ping.go index bd6b2d20..444e77f0 100644 --- a/internal/streams/stream_provider_client_side_ping.go +++ b/internal/streams/stream_provider_client_side_ping.go @@ -4,7 +4,7 @@ import ( "net/http" "sync" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/eventsource" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/streams/stream_provider_client_side_ping_test.go b/internal/streams/stream_provider_client_side_ping_test.go index db035e36..24cc69db 100644 --- a/internal/streams/stream_provider_client_side_ping_test.go +++ b/internal/streams/stream_provider_client_side_ping_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-server-sdk-evaluation/v2/ldmodel" diff --git a/internal/streams/stream_provider_server_side.go b/internal/streams/stream_provider_server_side.go index 1ad09f2d..0ea21b0a 100644 --- a/internal/streams/stream_provider_server_side.go +++ b/internal/streams/stream_provider_server_side.go @@ -4,7 +4,7 @@ import ( "net/http" "sync" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "golang.org/x/sync/singleflight" "github.com/launchdarkly/eventsource" diff --git a/internal/streams/stream_provider_server_side_flags.go b/internal/streams/stream_provider_server_side_flags.go index 82e0d934..de8d07ba 100644 --- a/internal/streams/stream_provider_server_side_flags.go +++ b/internal/streams/stream_provider_server_side_flags.go @@ -4,7 +4,7 @@ import ( "net/http" "sync" - "github.com/launchdarkly/ld-relay/v6/config" + "github.com/launchdarkly/ld-relay/v7/config" "golang.org/x/sync/singleflight" "github.com/launchdarkly/eventsource" diff --git a/internal/streams/stream_provider_server_side_flags_test.go b/internal/streams/stream_provider_server_side_flags_test.go index 9df33b90..cd063a6c 100644 --- a/internal/streams/stream_provider_server_side_flags_test.go +++ b/internal/streams/stream_provider_server_side_flags_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-server-sdk-evaluation/v2/ldmodel" diff --git a/internal/streams/stream_provider_server_side_test.go b/internal/streams/stream_provider_server_side_test.go index 931fff69..6b98589f 100644 --- a/internal/streams/stream_provider_server_side_test.go +++ b/internal/streams/stream_provider_server_side_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/eventsource" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/internal/streams/stream_provider_test.go b/internal/streams/stream_provider_test.go index 83ff3908..a647a79c 100644 --- a/internal/streams/stream_provider_test.go +++ b/internal/streams/stream_provider_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" helpers "github.com/launchdarkly/go-test-helpers/v3" diff --git a/internal/streams/stream_testdata_test.go b/internal/streams/stream_testdata_test.go index b1e8214e..bededb74 100644 --- a/internal/streams/stream_testdata_test.go +++ b/internal/streams/stream_testdata_test.go @@ -4,8 +4,8 @@ import ( "errors" "sync" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/eventsource" "github.com/launchdarkly/go-server-sdk-evaluation/v2/ldbuilders" diff --git a/ld-relay.go b/ld-relay.go index 42c526f0..5e726b56 100644 --- a/ld-relay.go +++ b/ld-relay.go @@ -5,11 +5,11 @@ import ( _ "github.com/kardianos/minwinsvc" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/application" - "github.com/launchdarkly/ld-relay/v6/internal/logging" - "github.com/launchdarkly/ld-relay/v6/relay" - "github.com/launchdarkly/ld-relay/v6/relay/version" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/application" + "github.com/launchdarkly/ld-relay/v7/internal/logging" + "github.com/launchdarkly/ld-relay/v7/relay" + "github.com/launchdarkly/ld-relay/v7/relay/version" ) func main() { diff --git a/relay/autoconfig_actions.go b/relay/autoconfig_actions.go index a0b32652..ebccd3b7 100644 --- a/relay/autoconfig_actions.go +++ b/relay/autoconfig_actions.go @@ -1,8 +1,8 @@ package relay import ( - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/envfactory" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/envfactory" ) const ( diff --git a/relay/autoconfig_actions_test.go b/relay/autoconfig_actions_test.go index 6c6f38b6..ef9b7b50 100644 --- a/relay/autoconfig_actions_test.go +++ b/relay/autoconfig_actions_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - c "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest/testclient" + c "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest/testclient" "github.com/launchdarkly/go-configtypes" "github.com/launchdarkly/go-sdk-common/v3/ldlogtest" diff --git a/relay/autoconfig_key_change_test.go b/relay/autoconfig_key_change_test.go index 4fe9b585..5bf631fc 100644 --- a/relay/autoconfig_key_change_test.go +++ b/relay/autoconfig_key_change_test.go @@ -7,8 +7,8 @@ import ( "github.com/launchdarkly/go-sdk-common/v3/ldtime" "github.com/launchdarkly/go-sdk-common/v3/ldvalue" - "github.com/launchdarkly/ld-relay/v6/config" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/config" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" helpers "github.com/launchdarkly/go-test-helpers/v3" diff --git a/relay/autoconfig_testdata_test.go b/relay/autoconfig_testdata_test.go index 4bd77a82..26894ec0 100644 --- a/relay/autoconfig_testdata_test.go +++ b/relay/autoconfig_testdata_test.go @@ -3,9 +3,9 @@ package relay import ( "encoding/json" - c "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/autoconfig" - "github.com/launchdarkly/ld-relay/v6/internal/envfactory" + c "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/autoconfig" + "github.com/launchdarkly/ld-relay/v7/internal/envfactory" "github.com/launchdarkly/go-sdk-common/v3/ldtime" "github.com/launchdarkly/go-test-helpers/v3/httphelpers" diff --git a/relay/client_side_helpers.go b/relay/client_side_helpers.go index fea18720..30ef4837 100644 --- a/relay/client_side_helpers.go +++ b/relay/client_side_helpers.go @@ -7,11 +7,11 @@ import ( "net/http/httptest" "strconv" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" - "github.com/launchdarkly/ld-relay/v6/internal/browser" - "github.com/launchdarkly/ld-relay/v6/internal/events" - "github.com/launchdarkly/ld-relay/v6/internal/middleware" - "github.com/launchdarkly/ld-relay/v6/internal/util" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/internal/browser" + "github.com/launchdarkly/ld-relay/v7/internal/events" + "github.com/launchdarkly/ld-relay/v7/internal/middleware" + "github.com/launchdarkly/ld-relay/v7/internal/util" ldevents "github.com/launchdarkly/go-sdk-events/v2" ) diff --git a/relay/endpoint_tests_base_test.go b/relay/endpoint_tests_base_test.go index 3c9ea05a..bb66f90d 100644 --- a/relay/endpoint_tests_base_test.go +++ b/relay/endpoint_tests_base_test.go @@ -5,8 +5,8 @@ import ( "net/http" "strings" - "github.com/launchdarkly/ld-relay/v6/config" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/config" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" m "github.com/launchdarkly/go-test-helpers/v3/matchers" ) diff --git a/relay/endpoints_eval_test.go b/relay/endpoints_eval_test.go index 3c709ae2..17593682 100644 --- a/relay/endpoints_eval_test.go +++ b/relay/endpoints_eval_test.go @@ -5,9 +5,9 @@ import ( "net/http" "testing" - c "github.com/launchdarkly/ld-relay/v6/config" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest/testclient" + c "github.com/launchdarkly/ld-relay/v7/config" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest/testclient" "github.com/launchdarkly/go-sdk-common/v3/ldcontext" "github.com/launchdarkly/go-sdk-common/v3/lduser" diff --git a/relay/endpoints_events_test.go b/relay/endpoints_events_test.go index b104e12c..61635bf5 100644 --- a/relay/endpoints_events_test.go +++ b/relay/endpoints_events_test.go @@ -10,10 +10,10 @@ import ( "testing" "time" - c "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/browser" - "github.com/launchdarkly/ld-relay/v6/internal/events" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + c "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/browser" + "github.com/launchdarkly/ld-relay/v7/internal/events" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" ct "github.com/launchdarkly/go-configtypes" helpers "github.com/launchdarkly/go-test-helpers/v3" diff --git a/relay/endpoints_js_cors_test.go b/relay/endpoints_js_cors_test.go index 8511a798..0695cdff 100644 --- a/relay/endpoints_js_cors_test.go +++ b/relay/endpoints_js_cors_test.go @@ -5,9 +5,9 @@ import ( "net/http" "testing" - c "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/browser" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + c "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/browser" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/go-configtypes" "github.com/launchdarkly/go-sdk-common/v3/lduser" diff --git a/relay/endpoints_other_test.go b/relay/endpoints_other_test.go index 930804cb..b79199d8 100644 --- a/relay/endpoints_other_test.go +++ b/relay/endpoints_other_test.go @@ -7,8 +7,8 @@ import ( "net/http/httptest" "testing" - c "github.com/launchdarkly/ld-relay/v6/config" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + c "github.com/launchdarkly/ld-relay/v7/config" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" ct "github.com/launchdarkly/go-configtypes" m "github.com/launchdarkly/go-test-helpers/v3/matchers" diff --git a/relay/endpoints_php_test.go b/relay/endpoints_php_test.go index 8ba38d27..6995ff3d 100644 --- a/relay/endpoints_php_test.go +++ b/relay/endpoints_php_test.go @@ -5,8 +5,8 @@ import ( "net/http" "testing" - c "github.com/launchdarkly/ld-relay/v6/config" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + c "github.com/launchdarkly/ld-relay/v7/config" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" m "github.com/launchdarkly/go-test-helpers/v3/matchers" diff --git a/relay/endpoints_status.go b/relay/endpoints_status.go index 13f48cda..0853ef61 100644 --- a/relay/endpoints_status.go +++ b/relay/endpoints_status.go @@ -5,10 +5,10 @@ import ( "net/http" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/api" - "github.com/launchdarkly/ld-relay/v6/internal/relayenv" - "github.com/launchdarkly/ld-relay/v6/internal/sdks" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/api" + "github.com/launchdarkly/ld-relay/v7/internal/relayenv" + "github.com/launchdarkly/ld-relay/v7/internal/sdks" "github.com/launchdarkly/go-sdk-common/v3/ldtime" ld "github.com/launchdarkly/go-server-sdk/v6" diff --git a/relay/endpoints_status_autoconfig_test.go b/relay/endpoints_status_autoconfig_test.go index db7ee557..a869700f 100644 --- a/relay/endpoints_status_autoconfig_test.go +++ b/relay/endpoints_status_autoconfig_test.go @@ -7,12 +7,12 @@ import ( "testing" "time" - c "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/autoconfig" - "github.com/launchdarkly/ld-relay/v6/internal/envfactory" - "github.com/launchdarkly/ld-relay/v6/internal/sdks" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest/testclient" + c "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/autoconfig" + "github.com/launchdarkly/ld-relay/v7/internal/envfactory" + "github.com/launchdarkly/ld-relay/v7/internal/sdks" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest/testclient" "github.com/launchdarkly/go-configtypes" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/relay/endpoints_status_test.go b/relay/endpoints_status_test.go index 28268c8d..ed2f62b1 100644 --- a/relay/endpoints_status_test.go +++ b/relay/endpoints_status_test.go @@ -5,10 +5,10 @@ import ( "testing" "time" - c "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/sdks" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest/testclient" + c "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/sdks" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest/testclient" ct "github.com/launchdarkly/go-configtypes" "github.com/launchdarkly/go-sdk-common/v3/ldtime" diff --git a/relay/endpoints_streams_test.go b/relay/endpoints_streams_test.go index 4c7ba2d9..7517cab4 100644 --- a/relay/endpoints_streams_test.go +++ b/relay/endpoints_streams_test.go @@ -7,10 +7,10 @@ import ( "testing" "time" - c "github.com/launchdarkly/ld-relay/v6/config" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest/testclient" - "github.com/launchdarkly/ld-relay/v6/internal/streams" + c "github.com/launchdarkly/ld-relay/v7/config" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest/testclient" + "github.com/launchdarkly/ld-relay/v7/internal/streams" "github.com/launchdarkly/eventsource" ct "github.com/launchdarkly/go-configtypes" diff --git a/relay/filedata_actions.go b/relay/filedata_actions.go index 25c99b59..7a085245 100644 --- a/relay/filedata_actions.go +++ b/relay/filedata_actions.go @@ -3,10 +3,10 @@ package relay import ( "time" - "github.com/launchdarkly/ld-relay/v6/internal/envfactory" + "github.com/launchdarkly/ld-relay/v7/internal/envfactory" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/filedata" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/filedata" ld "github.com/launchdarkly/go-server-sdk/v6" "github.com/launchdarkly/go-server-sdk/v6/interfaces" diff --git a/relay/filedata_actions_test.go b/relay/filedata_actions_test.go index b763264f..cbfaf0c9 100644 --- a/relay/filedata_actions_test.go +++ b/relay/filedata_actions_test.go @@ -7,10 +7,10 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/filedata" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest/testclient" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/filedata" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest/testclient" "github.com/launchdarkly/go-configtypes" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/relay/filedata_testdata_test.go b/relay/filedata_testdata_test.go index 014ab21a..ef279758 100644 --- a/relay/filedata_testdata_test.go +++ b/relay/filedata_testdata_test.go @@ -1,11 +1,11 @@ package relay import ( - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/envfactory" - "github.com/launchdarkly/ld-relay/v6/internal/filedata" - "github.com/launchdarkly/ld-relay/v6/internal/relayenv" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/envfactory" + "github.com/launchdarkly/ld-relay/v7/internal/filedata" + "github.com/launchdarkly/ld-relay/v7/internal/relayenv" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/go-server-sdk-evaluation/v2/ldbuilders" "github.com/launchdarkly/go-server-sdk/v6/subsystems/ldstoreimpl" diff --git a/relay/relay.go b/relay/relay.go index 9ddbbdf8..0f66becc 100644 --- a/relay/relay.go +++ b/relay/relay.go @@ -11,17 +11,17 @@ import ( "time" "github.com/gregjones/httpcache" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/autoconfig" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" - "github.com/launchdarkly/ld-relay/v6/internal/filedata" - "github.com/launchdarkly/ld-relay/v6/internal/httpconfig" - "github.com/launchdarkly/ld-relay/v6/internal/metrics" - "github.com/launchdarkly/ld-relay/v6/internal/relayenv" - "github.com/launchdarkly/ld-relay/v6/internal/sdks" - "github.com/launchdarkly/ld-relay/v6/internal/streams" - "github.com/launchdarkly/ld-relay/v6/internal/util" - "github.com/launchdarkly/ld-relay/v6/relay/version" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/autoconfig" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/internal/filedata" + "github.com/launchdarkly/ld-relay/v7/internal/httpconfig" + "github.com/launchdarkly/ld-relay/v7/internal/metrics" + "github.com/launchdarkly/ld-relay/v7/internal/relayenv" + "github.com/launchdarkly/ld-relay/v7/internal/sdks" + "github.com/launchdarkly/ld-relay/v7/internal/streams" + "github.com/launchdarkly/ld-relay/v7/internal/util" + "github.com/launchdarkly/ld-relay/v7/relay/version" "github.com/launchdarkly/go-sdk-common/v3/ldlog" ld "github.com/launchdarkly/go-server-sdk/v6" diff --git a/relay/relay_end_to_end_redis_test.go b/relay/relay_end_to_end_redis_test.go index cdcf563f..592df66e 100644 --- a/relay/relay_end_to_end_redis_test.go +++ b/relay/relay_end_to_end_redis_test.go @@ -13,8 +13,8 @@ import ( "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-server-sdk/v6/testhelpers/ldservices" - c "github.com/launchdarkly/ld-relay/v6/config" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + c "github.com/launchdarkly/ld-relay/v7/config" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/go-configtypes" ) diff --git a/relay/relay_end_to_end_test.go b/relay/relay_end_to_end_test.go index b02294c2..2e31445f 100644 --- a/relay/relay_end_to_end_test.go +++ b/relay/relay_end_to_end_test.go @@ -9,9 +9,9 @@ import ( "github.com/launchdarkly/eventsource" "github.com/launchdarkly/go-server-sdk/v6/testhelpers/ldservices" - c "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + c "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/go-configtypes" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/relay/relay_endpoints.go b/relay/relay_endpoints.go index 475305cf..09e82e05 100644 --- a/relay/relay_endpoints.go +++ b/relay/relay_endpoints.go @@ -11,12 +11,12 @@ import ( "strconv" "time" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" - "github.com/launchdarkly/ld-relay/v6/internal/logging" - "github.com/launchdarkly/ld-relay/v6/internal/middleware" - "github.com/launchdarkly/ld-relay/v6/internal/relayenv" - "github.com/launchdarkly/ld-relay/v6/internal/streams" - "github.com/launchdarkly/ld-relay/v6/internal/util" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/internal/logging" + "github.com/launchdarkly/ld-relay/v7/internal/middleware" + "github.com/launchdarkly/ld-relay/v7/internal/relayenv" + "github.com/launchdarkly/ld-relay/v7/internal/streams" + "github.com/launchdarkly/ld-relay/v7/internal/util" "github.com/launchdarkly/go-jsonstream/v3/jwriter" "github.com/launchdarkly/go-sdk-common/v3/ldcontext" diff --git a/relay/relay_endpoints_benchmark_test.go b/relay/relay_endpoints_benchmark_test.go index 27b7b242..1bdf86c6 100644 --- a/relay/relay_endpoints_benchmark_test.go +++ b/relay/relay_endpoints_benchmark_test.go @@ -6,9 +6,9 @@ import ( "net/http/httptest" "testing" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest/testenv" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest/testenv" "github.com/launchdarkly/go-sdk-common/v3/lduser" "github.com/launchdarkly/go-sdk-common/v3/ldvalue" diff --git a/relay/relay_endpoints_test.go b/relay/relay_endpoints_test.go index 4619dd62..71377159 100644 --- a/relay/relay_endpoints_test.go +++ b/relay/relay_endpoints_test.go @@ -6,11 +6,11 @@ import ( "net/http/httptest" "testing" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" - "github.com/launchdarkly/ld-relay/v6/internal/middleware" - "github.com/launchdarkly/ld-relay/v6/internal/relayenv" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest/testenv" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/internal/middleware" + "github.com/launchdarkly/ld-relay/v7/internal/relayenv" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest/testenv" "github.com/launchdarkly/go-test-helpers/v3/jsonhelpers" diff --git a/relay/relay_environments_test.go b/relay/relay_environments_test.go index 41e5dc41..f8a6d158 100644 --- a/relay/relay_environments_test.go +++ b/relay/relay_environments_test.go @@ -7,13 +7,13 @@ import ( "testing" "time" - c "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" - "github.com/launchdarkly/ld-relay/v6/internal/relayenv" - "github.com/launchdarkly/ld-relay/v6/internal/sdks" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest/testclient" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest/testenv" + c "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/internal/relayenv" + "github.com/launchdarkly/ld-relay/v7/internal/sdks" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest/testclient" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest/testenv" "github.com/launchdarkly/eventsource" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/relay/relay_routes.go b/relay/relay_routes.go index 1285af9e..c51f54f5 100644 --- a/relay/relay_routes.go +++ b/relay/relay_routes.go @@ -3,12 +3,12 @@ package relay import ( "net/http" - "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/basictypes" - "github.com/launchdarkly/ld-relay/v6/internal/logging" - "github.com/launchdarkly/ld-relay/v6/internal/metrics" - "github.com/launchdarkly/ld-relay/v6/internal/middleware" - "github.com/launchdarkly/ld-relay/v6/internal/relayenv" + "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/basictypes" + "github.com/launchdarkly/ld-relay/v7/internal/logging" + "github.com/launchdarkly/ld-relay/v7/internal/metrics" + "github.com/launchdarkly/ld-relay/v7/internal/middleware" + "github.com/launchdarkly/ld-relay/v7/internal/relayenv" "github.com/launchdarkly/go-sdk-common/v3/ldlog" ldevents "github.com/launchdarkly/go-sdk-events/v2" diff --git a/relay/relay_test.go b/relay/relay_test.go index e0afe859..82139993 100644 --- a/relay/relay_test.go +++ b/relay/relay_test.go @@ -4,7 +4,7 @@ import ( "net/http/httptest" "testing" - c "github.com/launchdarkly/ld-relay/v6/config" + c "github.com/launchdarkly/ld-relay/v7/config" "github.com/launchdarkly/go-configtypes" "github.com/launchdarkly/go-sdk-common/v3/ldlog" diff --git a/relay/relay_test_base_test.go b/relay/relay_test_base_test.go index 80742d27..2e3dea97 100644 --- a/relay/relay_test_base_test.go +++ b/relay/relay_test_base_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - c "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest/testclient" + c "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest/testclient" "github.com/launchdarkly/go-sdk-common/v3/ldlog" "github.com/launchdarkly/go-sdk-common/v3/ldlogtest" diff --git a/relay/request_logging_test.go b/relay/request_logging_test.go index b9c26b5b..c9d45a08 100644 --- a/relay/request_logging_test.go +++ b/relay/request_logging_test.go @@ -4,8 +4,8 @@ import ( "net/http" "testing" - c "github.com/launchdarkly/ld-relay/v6/config" - st "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + c "github.com/launchdarkly/ld-relay/v7/config" + st "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/launchdarkly/go-sdk-common/v3/ldlog" ) diff --git a/relay/testutils_test.go b/relay/testutils_test.go index fbc80c7e..ad40e3a8 100644 --- a/relay/testutils_test.go +++ b/relay/testutils_test.go @@ -7,11 +7,11 @@ import ( "testing" "time" - "github.com/launchdarkly/ld-relay/v6/config" - c "github.com/launchdarkly/ld-relay/v6/config" - "github.com/launchdarkly/ld-relay/v6/internal/envfactory" - "github.com/launchdarkly/ld-relay/v6/internal/relayenv" - "github.com/launchdarkly/ld-relay/v6/internal/sharedtest" + "github.com/launchdarkly/ld-relay/v7/config" + c "github.com/launchdarkly/ld-relay/v7/config" + "github.com/launchdarkly/ld-relay/v7/internal/envfactory" + "github.com/launchdarkly/ld-relay/v7/internal/relayenv" + "github.com/launchdarkly/ld-relay/v7/internal/sharedtest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require"