doc(0040): trusted client attributes#113
Open
savonarola wants to merge 1 commit into
Open
Conversation
dd6811a to
0c930f6
Compare
0c930f6 to
3593fe2
Compare
zmstone
reviewed
Jul 2, 2026
| * The trusted attributes are those that come from trusted sources. | ||
| * We trust, e.g., listener/zone attributes because they are set by EMQX itself. | ||
| * We trust attributes that come from authenticator, like `auth_expire_at`, `acl`, `is_superuser`, any additional attributes set by the authenticator. | ||
| * We trust attributes that were validated by the authenticator, e.g. `clientid`, `tns` if clientid-based builtin authentication was used. |
Member
There was a problem hiding this comment.
you mean by parsing the auth-chain configuration?
for external authenticator, we parse the request templates to find placeholders?
Contributor
Author
There was a problem hiding this comment.
for external authenticators, we of course cannot guess the used templates, so they will need to return trusted attributes (clientinfo mask) explicitly.
Member
There was a problem hiding this comment.
this can be easy to support for HTTP authenticator.
but will need to define the contract for other backends
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This EIP introduces a provenance-aware security context for
ClientInfousers.Instead of treating full runtime
ClientInfoas authority-bearing data, post-authentication security-sensitive consumers receive a trusted projection derived only from EMQX-controlled fields, authenticator outputs, and explicitly validated client fields.