Repository navigation
[feature](auth) SU ... WITH ROLES: proxy authentication with mandatory role narrowing, gated by PROXY_PRIV #67672
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
base: master
Are you sure you want to change the base?
Changes from all commits
7437089
2e2d50c
1402f55
6ac650e
b3d0767
6d5d828
44e4992
75d0238
39e05e6
4f1b875
1be3992
a90d4eb
c5e6524
77a3f4f
3ba24ea
f49d3bb
fe7b588
25a095d
c542fa2
748c4c9
74c0d88
63ba606
5af7096
9d68b6c
814ed4a
e579984
c565d53
1923b97
826fd25
815fb02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,6 +63,9 @@ Status SchemaTablePrivilegesScanner::_get_new_table() { | |
| } | ||
| if (nullptr != _param->common_param->current_user_ident) { | ||
| table_params.__set_current_user_ident(*(_param->common_param->current_user_ident)); | ||
| if (!_param->common_param->current_roles.empty()) { | ||
| table_params.__set_current_roles(_param->common_param->current_roles); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [P1] Install |
||
| } | ||
| } else { | ||
| if (nullptr != _param->common_param->user) { | ||
| table_params.__set_user(*(_param->common_param->user)); | ||
|
|
||
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.
[P1] Carry narrowing through SCH_USER as well. This stores
TSchemaScanNode.current_roles, butSchemaUserScannerstill builds a TShowUserRequest with only the user identity andshowUseris not wrapped. If the target has a direct GRANT/ADMIN role omitted from SU,mysql.usercan expose the target's full account list and privilege topology. Add a role field to this request and apply/clear it in the handler (or use the common metadata path).