-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat(mt): add APIs to manage explicit namespaces #14884
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
feat(mt): add APIs to manage explicit namespaces #14884
Conversation
1d457c6
to
73b129d
Compare
73b129d
to
b569d89
Compare
b569d89
to
b909a3d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking, there is perhaps no need for explicit
APIs, if we add a config like:
emqx_mt {
managed_namespaces = true | false
}
And deny access in authentication callback in emqx_mt_hookcb
module if this config is set to true
but tns
does not exist.
b93ee93
to
597d800
Compare
597d800
to
5095e58
Compare
5095e58
to
554d7d1
Compare
%% Note: we may safely delete the limiter groups here: when clients attempt to consume | ||
%% from the now dangling limiters, `emqx_limiter_client' will log the error but don't | ||
%% do any limiting when it fails to fetch the missing limiter group configuration. | ||
%% The user may choose to later kick all clients from this namespace. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a separate task: there should be an API to kick (async) all sessions under a namespace.
And deleting managed NS should immediately trigger such kicks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: zmstone <zmstone@gmail.com>
Fixes https://emqx.atlassian.net/browse/EMQX-13821
Fixes https://emqx.atlassian.net/browse/EMQX-13822
Release version: e5.9.0
Summary
PR Checklist
changes/(ce|ee)/(feat|perf|fix|breaking)-<PR-id>.en.md
files