bharos opened a new pull request, #10523:
URL: https://github.com/apache/gravitino/pull/10523
<!--
1. Title: [#<issue>] <type>(<scope>): <subject>
Examples:
- "[#123] feat(operator): Support xxx"
- "[#233] fix: Check null before access result in xxx"
- "[MINOR] refactor: Fix typo in variable name"
- "[MINOR] docs: Fix typo in README"
- "[#255] test: Fix flaky test NameOfTheTest"
Reference: https://www.conventionalcommits.org/en/v1.0.0/
2. If the PR is unfinished, please mark this PR as draft.
-->
### What changes were proposed in this pull request?
- Add Configs.SERVICE_ADMINS to ConfigServlet basicConfigEntries so
gravitino.authorization.serviceAdmins is returned by GET /configs
- Update TestConfigServlet to assert the new field is present
- Fix web-v2 UI to handle serviceAdmins as JSON array (List<String>) rather
than a comma-separated string
(Please outline the changes and how this PR fixes the issue.)
### Why are the changes needed?
ConfigServlet only exposed AUTHENTICATORS and ENABLE_AUTHORIZATION via the
/configs endpoint. Without serviceAdmins, the web UI cannot determine if the
logged-in user is a service admin, causing the 'Create Metalake' button to be
hidden even for valid service admins.
Fix: #(issue)
### Does this PR introduce _any_ user-facing change?
Yes, it will correctly make the "CREATE METALAKE" button appear
### How was this patch tested?
Testing on Web UI
<img width="468" height="233" alt="Screenshot 2026-03-23 at 9 57 07 PM"
src="https://github.com/user-attachments/assets/7ed96155-7812-4b32-bed6-5409f621bd16"
/>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]