-
Notifications
You must be signed in to change notification settings - Fork 4
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
Please add "user" filter to pgaudit (refactored branch). #23
Comments
Using audit_role rule, the audit log is emitted only when current user is listed in audit_role parameter if equality is specified. It is important to ensure that pgaudit emits audit log even if a user listed in audit_role, that is should be logged, do SET ROLE to change to another role. It prevent spoofing by superuser. Note that the behaviour of audit_role could be changed in future commit so that it specifies the role group rather than one role name. If the current user is a member of given role, emits audit log. This change should satisfies issue #23. Masahiko Sawada
Commit 3c7b2ec should satisfies it. Please try it. |
Thank you very much. However, with this commit ID, the role name does not seem to be output in the audit log. pgaudit config.
Output audit log
|
Since the user name used for regression test depends on testing environment, I made the user name not to be logged when BTW, After though I suspect whether current implementation satisfies our original purpose. In current implementation I use |
All right. As for the question of the second half, I will reply with another comment. |
Hi, i am testing pgaudit from ntt. If i add a role/user to audit_role parameter in the pgaudit.conf file, so i must restart the postgres DB to audit this user. Do you have an idea what can i do to audit user when i add new user in the pgaudit,conf without restart of postgres database ? |
Hi.
I am trying pgaudit (refactored branch).
In the setting of pgaudit (refactored), there is no user filtering function, but we think that it is better to add it assuming the following case.
For example, it is considered that there is a case where only the operation of the privileged user (eg "postgres") is audited and the application user's operation is not audited.
In pgaudit (advanced branch), filtering by "user" was possible.
Even "refactored branch", please implement filtering of "user".
The text was updated successfully, but these errors were encountered: