You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering why I see in logs my test server instance connecting to my production instance.
The issue is that some server components (e.g. mediascanner) also act as client.
I spun up a test server on the same machine where I have a client configured to connect to the production instance.
Hence my production server accidentally acted as a client not to itself, but to the production server.
Solution
Maybe have some sort of cluster ID which is stored in the client config file. Then when reading the client config file, assert that the server and the client cluster IDs match?
joonas-fi
changed the title
Safety: don't allow built-in client to accidentally communicate with a different instance
Safety: don't allow built-in client to accidentally communicate with a non-related instance
Apr 17, 2023
Problem
I was wondering why I see in logs my test server instance connecting to my production instance.
The issue is that some server components (e.g. mediascanner) also act as client.
I spun up a test server on the same machine where I have a client configured to connect to the production instance.
Hence my production server accidentally acted as a client not to itself, but to the production server.
Solution
Maybe have some sort of cluster ID which is stored in the client config file. Then when reading the client config file, assert that the server and the client cluster IDs match?
See also: "lineage" in Terraform: https://developer.hashicorp.com/terraform/language/state/backends#manual-state-pull-push
The text was updated successfully, but these errors were encountered: