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

   <!--
   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?
   
   (Please outline the changes and how this PR fixes the issue.)
   Fix IcebergTableOperationExecutor to execute catalog operations within 
authenticated user's security context using PrincipalUtils.doAs()
   - This ensures that when clients (like Spark SQL) connect with OAuth tokens, 
table creation operations properly record the authenticated user as the creator 
instead of showing 'N/A'
   
   ### Why are the changes needed?
   
   Fixes issue where OAuth-authenticated table creation showed incorrect 
creator in audit metadata.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Tested by creating tables through Gravitino Web UI, curl command and 
spark-sql client, all with OAuth enabled.
   Created by field now shows up on the UI on the table 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to