pg_audit #4068
Unanswered
peterkracik
asked this question in
Q&A
pg_audit
#4068
Replies: 3 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
I don't think this is related to PostgREST and I have no idea how to fix it. |
Beta Was this translation helpful? Give feedback.
4 replies
-
PostgREST generates queries and executes them using its API roles, it should be transparent towards
I haven't used pgaudit, but maybe try adding that setting for the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have an AWS environment - Postgrest 17.4 in AWS RDS and PostgREST latest as a pod in EKS cluster.
I enabled pg_audit, if I do a direct SQL statement to the DB, I can see an entry about this statement in the AWS CloudWatch.
But if I do an operation (ie. to create an entry) via PostgREST API, nothing is logged.
I use the same user to communicate with the DB for direct SQL queries and PostgREST. The only difference is that the authentication for API calls is done using JWT OAUTH.
I also tried to update the role used for the authentication with
pgaudit.log = 'write'
Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions