launchdarkly / ld-relay

LaunchDarkly Relay Proxy
Other
112 stars 80 forks source link

Client invalid sdk key error using automatic config profile #112

Closed simonkotwicz closed 3 years ago

simonkotwicz commented 3 years ago

Describe the bug If you rotate an environment's SDK key and start the relay proxy, clients started with the old SDK key get a 401 invalid SDK key error.

To reproduce

Relay version launchdarkly/ld-relay@sha256:2a3bdc8d8adf774a1631d7f13bacac5a8e9e89cdb2ce84f662104a3bb4be11fa

eli-darkly commented 3 years ago

Could I ask you to submit this as a support request instead of a GitHub issue? It's not for sure that this is a bug in the Relay Proxy code (as opposed to an issue with how the LaunchDarkly service sends data to the Relay Proxy), and in order to diagnose this problem we might need to ask you for account information or log data that shouldn't be posted publicly on GitHub, so it would be better to have a support ticket.

eli-darkly commented 3 years ago

Actually, never mind that; I was originally unable to reproduce the problem so I thought we might have to investigate further through support, but then I identified a mistake in my test procedure and proved that this is indeed a problem in the Relay Proxy code— one that unfortunately we had a gap in test coverage for. It should be a straightforward fix. Thanks for reporting this!

eli-darkly commented 3 years ago

We've released version 6.1.1, which should fix this. Sorry for the inconvenience and thanks for pointing out the problem.