Skip to content
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

[Subtask] Use real user for audit information #1206

Closed
qqqttt123 opened this issue Dec 19, 2023 · 0 comments · Fixed by #1258
Closed

[Subtask] Use real user for audit information #1206

qqqttt123 opened this issue Dec 19, 2023 · 0 comments · Fixed by #1258
Assignees

Comments

@qqqttt123
Copy link
Contributor

Describe the subtask

We have implemented authentication feature. So we can get the real user for Gravitino. We should record the real user in the audit information.

Parent issue

#1182

@qqqttt123 qqqttt123 self-assigned this Dec 19, 2023
jerryshao pushed a commit that referenced this issue Dec 28, 2023
)

### What changes were proposed in this pull request?
Use the real user for audit information.  
Use a PrincipalContext to pass the value of user without interface
modification referring to the design of Spark's TaskContext

### Why are the changes needed?

Fix: #1206

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Add UT.

---------

Co-authored-by: Heng Qin <qqtt@123.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant