Repository navigation
Conversation
Generate a random instance ID once per process and send it in the Socket.IO handshake auth together with the CLI version and the host name, so the server can tell apart two processes that use the same Repeater ID. The fields go into auth rather than the deploy runtime payload because servers ignore unknown auth keys but reject unknown runtime properties. The startup line prints the instance ID so it can be matched with what the server logged.
Use 8 random hex characters instead of a UUID. The ID only has to tell apart the few processes sharing one Repeater ID, and a short one is easier to read out to support. Print it on the "started" line, after the deployment succeeds.
aborovsky
marked this pull request as ready for review
November 24, 2026 12:16
YarikMamykin
requested changes
Nov 24, 2026
YarikMamykin
approved these changes
Nov 24, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Today the server cannot tell apart two Repeater processes that use the same Repeater ID and token. Both appear as the same
domain, often behind the same egress IP. This PR makes each process identify itself.Changes
CliInfo.instanceId: 8 hex characters fromcrypto.randomBytes(4), generated once per process. It stays the same across reconnects of one process (Socket.IO reuses the handshakeauth) and changes on every process start. It only has to tell apart the few processes sharing one Repeater ID, so it is kept short enough to read out to support.authis now{ token, domain, instanceId, version, hostname }, wherehostnameisos.hostname()(the pod name in Kubernetes).The Repeater (13.17.2) started, instance ID: 3f9a1c07The new fields go into
authrather than thedeployruntime payload. Servers ignore unknownauthkeys, but the runtime DTO hasadditionalProperties: falseand would reject unknown properties.Compatibility
Checked locally against a bridges-api built from current
main: the Repeater connects and deploys as before, and the extraauthfields are ignored.Tests
CliInfo.spec: the ID is 8 hex characters and differs between instances.DefaultRepeaterServer.spec: the handshakeauthcarriesinstanceId,versionandhostname, and reconnects reuse the same socket and so the same ID.ServerRepeaterLauncher.spec: the "started" line prints the ID after a successful deploy.