Skip to content

postgREST log add customs fields #3151

Closed Answered by wolfgangwalther
Dementor7 asked this question in Q&A
Discussion options

You must be logged in to vote

If you go for "one postgres role per user", then the user ID would already show up - not the 3rd field in the log which is postgres. This will be the current user for the request as taken from the JWT.

https://docs.postgrest.org/en/v12/references/auth.html#jwt-based-user-impersonation

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wolfgangwalther
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants