mirror of
https://github.com/louislam/dockge.git
synced 2026-03-03 02:06:55 -05:00
Agent node should only allow a single connection #212
Labels
No labels
bug
feature-request
help
help wanted
invalid-format
need-reproduce-steps
question
security
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dockge-louislam#212
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jearton on GitHub (Jun 5, 2025).
⚠️ Please verify that this bug has NOT been reported before.
🛡️ Security Policy
Description
Agent node should allow only a single connection, consistent with Portainer Server + Agent behavior.
👟 Reproduction steps
Deploy one agent node and ensure it is running.
Start Server Node A and have it connect to the agent.
While the connection from Server Node A is still active, start Server Node B and attempt to connect it to the same agent node.
Observe that both Server Node A and Server Node B maintain active connections to the same agent node.
👀 Expected behavior
The agent node should accept only the first connection (e.g., from Server Node A).
Any subsequent connection attempts (e.g., from Server Node B) should be rejected with a clear error or ignored.
This behavior should align with how Portainer Server + Agent works—each agent maintains only one active connection to a server node at any time.
😓 Actual Behavior
The agent node accepts multiple simultaneous connections from different server nodes.
Both Server Node A and Server Node B are able to establish and maintain persistent connections to the same agent node.
Dockge Version
1.4.2
💻 Operating System and Arch
Ubuntu 22.04
🌐 Browser
Google Chrome Version 136.0.7103.114
🐋 Docker Version
Docker 27.0.3
🟩 NodeJS Version
No response
📝 Relevant log output