You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "lasdf1234 (via GitHub)" <gi...@apache.org> on 2026/08/19 08:12:45 UTC

[PR] [#12512] feat(authz): Add getBasicUser and getBasicGroup APIs [gravitino]

lasdf1234 opened a new pull request, #12513:
URL: https://github.com/apache/gravitino/pull/12513

   ## Summary
   
   - Add `BasicUser` / `BasicGroup` API types (metadata-only, no roles) and `getBasicUser` / `getBasicGroup` across core, REST, and Java client
   - REST: `GET .../users/{user}/basic` and `GET .../groups/{group}/basic` with the same auth rules as full get user/group
   - Storage reads only `user_meta` / `group_meta` rows (no role join); emit `GET_BASIC_USER` / `GET_BASIC_GROUP` listener events and audit mappings
   - OpenAPI schemas/responses for both endpoints
   
   ## Test plan
   
   - [x] `./gradlew spotlessApply`
   - [x] Unit tests: `TestUserEvent`, `TestGroupEvent`, `TestCompatibilityUtils`, `TestUserOperations`, `TestGroupOperations`
   - [x] `./gradlew :docs:build` (OpenAPI validation)
   
   Fix: #12512
   
   
   Made with [Cursor](https://cursor.com)


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12512] feat(authz): Add internal getBasicUser and getBasicGroup APIs [gravitino]

Posted by "lasdf1234 (via GitHub)" <gi...@apache.org>.
lasdf1234 closed pull request #12513: [#12512] feat(authz): Add internal getBasicUser and getBasicGroup APIs
URL: https://github.com/apache/gravitino/pull/12513


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12512] feat(authz): Add internal getBasicUser and getBasicGroup APIs [gravitino]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12513:
URL: https://github.com/apache/gravitino/pull/12513#issuecomment-5346393221

   <!-- coverage-report -->
   ### Code Coverage Report
   |Overall Project|68.8% **`+0.5%`**|:green_circle:|
   |:-|:-|:-:|
   |Files changed|88.81%|:green_circle:|
   <br>
   
   |Module|Coverage||
   |:-|:-|:-:|
   |aliyun|1.72%|:red_circle:|
   |api|49.18%|:green_circle:|
   |authorization-common|85.96%|:green_circle:|
   |aws|42.04%|:green_circle:|
   |azure|2.47%|:red_circle:|
   |catalog-common|9.92%|:red_circle:|
   |catalog-fileset|79.77%|:green_circle:|
   |catalog-glue|68.95%|:green_circle:|
   |catalog-hive|82.96%|:green_circle:|
   |catalog-jdbc-common|45.7%|:green_circle:|
   |catalog-jdbc-doris|81.8%|:green_circle:|
   |catalog-jdbc-mysql|79.33%|:green_circle:|
   |catalog-jdbc-postgresql|83.39%|:green_circle:|
   |catalog-jdbc-starrocks|79.16%|:green_circle:|
   |catalog-kafka|77.01%|:green_circle:|
   |catalog-lakehouse-generic|59.18%|:green_circle:|
   |catalog-lakehouse-hudi|79.1%|:green_circle:|
   |catalog-lakehouse-iceberg|85.86%|:green_circle:|
   |catalog-lakehouse-paimon|84.23%|:green_circle:|
   |catalog-model|77.72%|:green_circle:|
   |cli|44.48%|:green_circle:|
   |client-java|78.57%|:green_circle:|
   |common|52.39%|:green_circle:|
   |core|83.6% **`+0.45%`**|:green_circle:|
   |filesystem-hadoop3|77.28%|:green_circle:|
   |flink|0.0%|:red_circle:|
   |flink-common|48.68%|:green_circle:|
   |flink-runtime|0.0%|:red_circle:|
   |gcp|14.12%|:red_circle:|
   |hadoop-auth|68.0%|:green_circle:|
   |hadoop-common|12.7%|:red_circle:|
   |hive-metastore-common|53.4%|:green_circle:|
   |iceberg-aliyun-bundle|0.0%|:red_circle:|
   |iceberg-common|64.75%|:green_circle:|
   |iceberg-rest-server|75.0%|:green_circle:|
   |idp-basic|85.98%|:green_circle:|
   |integration-test-common|0.0%|:red_circle:|
   |jobs|62.92%|:green_circle:|
   |lance-common|31.63%|:red_circle:|
   |lance-rest-server|63.47%|:green_circle:|
   |lineage|53.02%|:green_circle:|
   |optimizer|83.17%|:green_circle:|
   |optimizer-api|21.95%|:red_circle:|
   |server|87.44%|:green_circle:|
   |server-common|79.57%|:green_circle:|
   |spark|28.57%|:red_circle:|
   |spark-common|45.89%|:green_circle:|
   |tencent|69.84%|:green_circle:|
   |trino-connector|41.56%|:green_circle:|
   
   <details>
   <summary>Files</summary>
   
   |Module|File|Coverage||
   |:-|:-|:-|:-:|
   |core|[AccessControlManager.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/authorization/AccessControlManager.java)|100.0%|:green_circle:|
   ||[GetBasicGroupEvent.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/listener/api/event/GetBasicGroupEvent.java)|100.0%|:green_circle:|
   ||[GetBasicGroupPreEvent.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/listener/api/event/GetBasicGroupPreEvent.java)|100.0%|:green_circle:|
   ||[GetBasicUserEvent.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/listener/api/event/GetBasicUserEvent.java)|100.0%|:green_circle:|
   ||[GetBasicUserPreEvent.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/listener/api/event/GetBasicUserPreEvent.java)|100.0%|:green_circle:|
   ||[OperationType.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/listener/api/event/OperationType.java)|100.0%|:green_circle:|
   ||[GroupMetaBaseSQLProvider.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/base/GroupMetaBaseSQLProvider.java)|100.0%|:green_circle:|
   ||[UserMetaBaseSQLProvider.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/base/UserMetaBaseSQLProvider.java)|100.0%|:green_circle:|
   ||[CompatibilityUtils.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/audit/v2/CompatibilityUtils.java)|99.42%|:green_circle:|
   ||[AuditLog.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/audit/AuditLog.java)|97.67%|:green_circle:|
   ||[UserMetaSQLProviderFactory.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/storage/relational/mapper/UserMetaSQLProviderFactory.java)|96.67%|:green_circle:|
   ||[GroupMetaSQLProviderFactory.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/storage/relational/mapper/GroupMetaSQLProviderFactory.java)|96.55%|:green_circle:|
   ||[GroupMetaService.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/storage/relational/service/GroupMetaService.java)|93.52%|:green_circle:|
   ||[UserMetaService.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/storage/relational/service/UserMetaService.java)|93.52%|:green_circle:|
   ||[AccessControlEventDispatcher.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/listener/AccessControlEventDispatcher.java)|89.32%|:green_circle:|
   ||[JDBCBackend.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/storage/relational/JDBCBackend.java)|83.91%|:green_circle:|
   ||[GetBasicGroupFailureEvent.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/listener/api/event/GetBasicGroupFailureEvent.java)|80.0%|:green_circle:|
   ||[GetBasicUserFailureEvent.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/listener/api/event/GetBasicUserFailureEvent.java)|80.0%|:green_circle:|
   ||[UserGroupManager.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/authorization/UserGroupManager.java)|74.79%|:green_circle:|
   ||[AccessControlHookDispatcher.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/hook/AccessControlHookDispatcher.java)|30.69%|:red_circle:|
   ||[AccessControlDispatcher.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/authorization/AccessControlDispatcher.java)|0.0%|:red_circle:|
   ||[GroupMetaMapper.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/storage/relational/mapper/GroupMetaMapper.java)|0.0%|:red_circle:|
   ||[UserMetaMapper.java](https://github.com/lasdf1234/gravitino/blob/9890e37f30a101c36347ea4af7016be8251f4b26/core/src/main/java/org/apache/gravitino/storage/relational/mapper/UserMetaMapper.java)|0.0%|:red_circle:|
   
   </details>


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org