Skip to content

What should MQTT plugin behavior be for existing consumers be when their JWT token expires? #11854

Closed Locked Answered by michaelklishin
arkadipdigite asked this question in Questions
Discussion options

You must be logged in to vote

@arkadipdigite how is that "not 100% accurate"? You were provided a detailed description of the behavior and the design decision by the core team. If that's not accurate enough for you, go read the source code.

The simple solution can be for the broker to send a DISCONNECT by looking at the expire time

It was explained above that this means using a timer per connection, and with 100s of thousands or
millions of connections will be a non-trivial waste of resources, in particular CPU resources but also memory, and reducing per-connection memory consumption was the key design goal of the MQTT plugin redesign in 3.13.

or might be check the JWT before forwarding any messages

@arkadipdigite

Replies: 8 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@arkadipdigite
Comment options

@michaelklishin
Comment options

@arkadipdigite
Comment options

@michaelklishin
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@michaelklishin
Comment options

@arkadipdigite
Comment options

@michaelklishin
Comment options

Answer selected by michaelklishin
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #11854 on July 29, 2024 15:27.