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

NAS-130485 / 24.10 / Improve auditing for middleware methods #14158

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

anodos325
Copy link
Contributor

Populate username and address fields in middleware audit entries based on information from the middleware session.

The UI prominently displays the username field which is currently hard-coded to root. This commit adds a helper function to generate a username string based on the current authenticated credentials for the session generating the audit entry.

@anodos325 anodos325 added the WIP label Aug 7, 2024
@anodos325 anodos325 force-pushed the improve-auditing branch 3 times, most recently from 845c917 to ec17cce Compare August 7, 2024 15:01
@anodos325 anodos325 added jira and removed WIP labels Aug 7, 2024
@anodos325 anodos325 requested a review from a team August 7, 2024 15:01
@bugclerk
Copy link
Contributor

bugclerk commented Aug 7, 2024

@bugclerk bugclerk changed the title Improve auditing for middleware methods NAS-130485 / 24.10 / Improve auditing for middleware methods Aug 7, 2024
Populate `username` and `address` fields in middleware audit
entries based on information from the middleware session.

The UI prominently displays the `username` field which is currently
hard-coded to root. This commit adds a helper function to generate
a username string based on the current authenticated credentials
for the session generating the audit entry.
@anodos325 anodos325 merged commit 68ab45c into master Aug 9, 2024
3 checks passed
@anodos325 anodos325 deleted the improve-auditing branch August 9, 2024 19:18
@bugclerk
Copy link
Contributor

bugclerk commented Aug 9, 2024

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Aug 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants