Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

larger token size breaks pipe #115

Open
3 tasks
mwfarb opened this issue Dec 31, 2024 · 0 comments
Open
3 tasks

larger token size breaks pipe #115

mwfarb opened this issue Dec 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mwfarb
Copy link
Contributor

mwfarb commented Dec 31, 2024

The mqtt_auth endpoint can break the return response if it is too large. The current response fails approaching 4kb. This is easiest to replicate by adding a single user to several scenes as editor above 9 scenes at the current set of token construction, and viewing a page like arenaxr.org/scenes which would list all those individual scenes in one token. Several resolutions are needed likely:

  • Allow larger responses from the endpoint.
  • Complete namespace access control per user, allowing more concise topic control.
  • Add staff tools for namespace analysis.

30 scenes fails

[31/Dec/2024 16:15:48] "POST /user/v2/mqtt_auth HTTP/1.1" 200 11360
[31/Dec/2024 16:15:48,688] - Broken pipe from ('192.168.2.14', 44154)

10 scenes fails

[31/Dec/2024 20:07:19] "POST /user/v2/mqtt_auth HTTP/1.1" 200 3970
[31/Dec/2024 20:07:19,993] - Broken pipe from ('192.168.2.14', 44868)

9 scenes succeeds

[31/Dec/2024 20:10:27] "POST /user/v2/mqtt_auth HTTP/1.1" 200 3714
@mwfarb mwfarb added the bug Something isn't working label Dec 31, 2024
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

No branches or pull requests

1 participant