Skip to content

[fix](restapi) Unify Permission Requirements for Executing SHOW FRONTENDS/BACKENDS And NODE RestAPI - #50140

Merged
yiguolei merged 26 commits into
apache:masterfrom
zhaorongsheng:bugfix-removing-priv-verify-of-node-manger-restapi
May 6, 2025
Merged

[fix](restapi) Unify Permission Requirements for Executing SHOW FRONTENDS/BACKENDS And NODE RestAPI#50140
yiguolei merged 26 commits into
apache:masterfrom
zhaorongsheng:bugfix-removing-priv-verify-of-node-manger-restapi

Conversation

@zhaorongsheng

@zhaorongshengzhaorongsheng commented Apr 17, 2025

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: close#50138

Problem Summary:

Unify Permission Requirements for Executing SHOW FRONTENDS/BACKENDS And NODE RestAPI. Make it as same as the privileges of system default database information_schema.

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@zhaorongshengzhaorongsheng changed the title [fix](restapi) remove some permission checker about node config GET api[fix](restapi) Keep the permission verification in the node config GET API consistent with that of the SHOW statement.Apr 17, 2025
yiguolei
yiguolei previously approved these changes Apr 23, 2025
@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Apr 23, 2025
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

Comment threadfe/fe-core/src/main/java/org/apache/doris/analysis/ShowBackendsStmt.java Outdated
Comment threadfe/fe-core/src/main/java/org/apache/doris/analysis/ShowFrontendsStmt.java Outdated

@zddrzddr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modified pr Description Explaining the Behavioral Changes,such as Permission Requirements for Executing SHOW FRONTENDS

@github-actionsgithub-actionsBot removed the approved Indicates a PR has been approved by one committer. label Apr 24, 2025
@zhaorongshengzhaorongsheng changed the title [fix](restapi) Keep the permission verification in the node config GET API consistent with that of the SHOW statement.[fix](restapi) Unify Permission Requirements for Executing SHOW FRONTENDS/BACKENDS And NODE RestAPIApr 24, 2025
@zhaorongsheng

Copy link
Copy Markdown
ContributorAuthor

@zddr I have updated some codes. Would you mind reviewing it once again? Thanks~

@zddrzddr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

yiguolei
yiguolei previously approved these changes Apr 24, 2025
@yiguolei

Copy link
Copy Markdown
Contributor

run buildall

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Apr 24, 2025
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actionsgithub-actionsBot removed the approved Indicates a PR has been approved by one committer. label Apr 24, 2025
@yiguolei

Copy link
Copy Markdown
Contributor

run buildall

@yiguoleiyiguolei added usercase Important user case type label dev/2.1.x dev/3.0.x labels Apr 24, 2025
koarz pushed a commit to koarz/doris that referenced this pull request Jun 4, 2025
…ENDS/BACKENDS And NODE RestAPI (apache#50140)
### What problem does this PR solve?
Issue Number: closeapache#50138 Problem Summary:
Unify Permission Requirements for Executing SHOW FRONTENDS/BACKENDS And
NODE RestAPI. Make it as same as the privileges of system default
database `information_schema`.
zddr pushed a commit to zddr/incubator-doris that referenced this pull request Jun 24, 2025
…ENDS/BACKENDS And NODE RestAPI (apache#50140)
Issue Number: closeapache#50138
Problem Summary:
Unify Permission Requirements for Executing SHOW FRONTENDS/BACKENDS And
NODE RestAPI. Make it as same as the privileges of system default
database `information_schema`.
zddr pushed a commit to zddr/incubator-doris that referenced this pull request Jun 24, 2025
…ENDS/BACKENDS And NODE RestAPI (apache#50140)
Issue Number: closeapache#50138
Problem Summary:
Unify Permission Requirements for Executing SHOW FRONTENDS/BACKENDS And
NODE RestAPI. Make it as same as the privileges of system default
database `information_schema`.
morrySnow pushed a commit that referenced this pull request Jun 26, 2025
… SHOW FRONTENDS/BACKENDS And NODE RestAPI #50140 (#52230)
Cherry pick from #50140
---------
Co-authored-by: zhaorongsheng <zhaorongsheng@users.noreply.github.com>
dataroaring pushed a commit that referenced this pull request Jul 7, 2025
… SHOW FRONT… (#52226)
…ENDS/BACKENDS And NODE RestAPI (#50140)
pick: #50140
---------
Co-authored-by: zhaorongsheng <zhaorongsheng@users.noreply.github.com>
@gavinchougavinchou mentioned this pull request Aug 15, 2025
morrySnow pushed a commit to apache/doris-website that referenced this pull request Dec 2, 2025
…ENDS (#2750)
doris pr: apache/doris#50140
## Versions - [x] dev
- [x] 3.0
- [ ] 2.1
- [ ] 2.0
## Languages
- [x] Chinese
- [x] English
## Docs Checklist
- [ ] Checked by AI
- [ ] Test Cases Built
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approvedIndicates a PR has been approved by one committer.dev/3.0.7-mergeddev/3.1.0-mergedkind/behavior-changedreviewedusercaseImportant user case type label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] privilege checking about node manager rest api

7 participants

@zhaorongsheng@hello-stephen@yiguolei@doris-robot@zddr@dataroaring@morrySnow