Skip to content

Revise Handling of NodeID / RobotID#261

Merged
DiCanio merged 2 commits intodevelopfrom
bug/revise-node-id-handling
Aug 5, 2025
Merged

Revise Handling of NodeID / RobotID#261
DiCanio merged 2 commits intodevelopfrom
bug/revise-node-id-handling

Conversation

@DiCanio
Copy link
Collaborator

@DiCanio DiCanio commented Aug 5, 2025

Resolves #251.

Opposed to what has been stated in the linked issue, only the NodeID is exposed to the client. Everything else is internal information and must not leak. Thus, the change simply exposes the correct information without altering the API (since it was already labeled nodeId). When sending message requests this nodeId information is going to be mapped to the corresponding robotId which is used for internal communications.

This fix does not require any changes to how the application needs to be set up.

@DiCanio DiCanio self-assigned this Aug 5, 2025
@DiCanio DiCanio added the bug Something isn't working label Aug 5, 2025
DiCanio added 2 commits August 5, 2025 13:44
Ensures that discovery endpoints actually return the
real node ID instead of shadowing the underlying ID
of the robot account.
Ensures that node IDs are used for specifying message
receivers and maps them internally to a robot ID.
Mapping this information is crucial since the robot
ID is used for the underlying communication via a
socket and is not known to the client. The node ID
however, is well known to the client as it can get
fetched using discovery endpoints.
@DiCanio DiCanio force-pushed the bug/revise-node-id-handling branch from 5bd087b to b580115 Compare August 5, 2025 11:44
@DiCanio DiCanio merged commit 329ba97 into develop Aug 5, 2025
4 checks passed
@DiCanio DiCanio deleted the bug/revise-node-id-handling branch August 5, 2025 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include Node ID in Discovery Response

1 participant