Skip to content

Container should exit with non-zero if auto-config key changed #177

Open
@barakbd

Description

Describe the bug

Container does not exit when auto config key is incorrect due to a configuration reset.

To reproduce

  1. LDRP container starts with correct auto-config key
  2. Change auto config key in the UI (
  3. Request a new feature flag value

Expected behavior
The container should exit with non-zero code. See related issue: #165

Logs

│ 2022/03/30 00:14:02.313649 INFO: [AutoConfiguration] Will restart auto-configuration stream to get new data due to  │
│ 2022/03/30 00:14:02.313770 INFO: [AutoConfiguration] Reconnecting in 19.8087 secs                                   │
│ 2022/03/30 00:14:02.313777 INFO: [AutoConfiguration] Reconnecting in 22.0218 secs                                   │
│ 2022/03/30 00:14:23.013052 ERROR: [AutoConfiguration] Invalid auto-configuration key; cannot get environments       │

** Docker Image**
https://hub.docker.com/layers/launchdarkly/ld-relay/latest/images/sha256-8932028a51c815a016b73a265c5102ec9bfa99125464a9470e6e44768601a4df?context=explore

Notes

I noticed that ERROR log was generated even without making a connection a feature flag request from an SDK. Does the relay proxy send a heartbeat or does the server make a call to the LDRP? In other words, wow does the LDRP know the auto-config key changed?

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions