[GH-ISSUE #8] mesh logintoken not working in docker #1947

Closed
opened 2026-03-14 01:40:18 +03:00 by kerem · 3 comments
Owner

Originally created by @wh1te909 on GitHub (Apr 11, 2020).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/8

The following does not work when running in docker since meshcentral is running in it's own container and the api doesn't have access to it, therefore remote desktop, terminal and file browser are not working.

github.com/wh1te909/tacticalrmm@a79775c8af/api/tacticalrmm/agents/views.py (L121-L128)

Originally created by @wh1te909 on GitHub (Apr 11, 2020). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/8 The following does not work when running in docker since meshcentral is running in it's own container and the api doesn't have access to it, therefore remote desktop, terminal and file browser are not working. https://github.com/wh1te909/tacticalrmm/blob/a79775c8afe1d5c1cf4062cbea96b93ba8b9ba4e/api/tacticalrmm/agents/views.py#L121-L128
kerem closed this issue 2026-03-14 01:40:24 +03:00
Author
Owner

@sadnub commented on GitHub (Apr 11, 2020):

This is interesting. I checked through the MeshCentral docs and code and don't really see an API to add these from an external system. I might have missed something though. We might be able to make an addon package to be able to call an endpoint to create the token. The only other thing I could think was to add the fields directly into MongoDB. I think in another issue you suggested creating a separate MongoDB instance to be able to support more clients. So that might work to fix both of those issues.

<!-- gh-comment-id:612510610 --> @sadnub commented on GitHub (Apr 11, 2020): This is interesting. I checked through the MeshCentral docs and code and don't really see an API to add these from an external system. I might have missed something though. We might be able to make an addon package to be able to call an endpoint to create the token. The only other thing I could think was to add the fields directly into MongoDB. I think in another issue you suggested creating a separate MongoDB instance to be able to support more clients. So that might work to fix both of those issues.
Author
Owner

@sadnub commented on GitHub (Apr 11, 2020):

I actually found this:
https://github.com/Ylianst/MeshCentral/issues/59

Looks like you can get a login token remotely.

<!-- gh-comment-id:612512324 --> @sadnub commented on GitHub (Apr 11, 2020): I actually found this: https://github.com/Ylianst/MeshCentral/issues/59 Looks like you can get a login token remotely.
Author
Owner

@wh1te909 commented on GitHub (Apr 13, 2020):

Awesome thanks for finding that! Used it to fix the issue.

<!-- gh-comment-id:612696864 --> @wh1te909 commented on GitHub (Apr 13, 2020): Awesome thanks for finding that! Used it to fix the issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#1947
No description provided.