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

Oathkeeper: adding additional info to oathkeeper info logs #1205

Open
3 of 5 tasks
DenisPnko opened this issue Dec 4, 2024 · 1 comment
Open
3 of 5 tasks

Oathkeeper: adding additional info to oathkeeper info logs #1205

DenisPnko opened this issue Dec 4, 2024 · 1 comment
Labels
feat New feature or request.

Comments

@DenisPnko
Copy link

Preflight checklist

Ory Network Project

No response

Describe your problem

Hi everyone, I am looking for a way to include more information in the oathkeeper info logs related to authorization, in particular adding an email field as one of the log attributes. Current log example:

2024-12-02T15:06:22.65936591Z stderr F {"audience":"application","granted":true,"http_host":"127.0.0.1:4467","http_method":"PUT","http_url":"http://127.0.0.1:4467/admin/relation-tuples","http_user_agent":"curl/7.74.0","level":"info","msg":"Access request granted","service_name":"ORY Oathkeeper","service_version":"v0.40.6","subject":"12345","time":"2024-12-02T15:06:22.659248722Z"}

Describe your ideal solution

An ideal solution would allow, for example, to add an "email" field from the JWT token (sent to the Oathkeeper) in the logs as well:

2024-12-02T15:06:22.65936591Z stderr F {"audience":"application","granted":true,"http_host":"127.0.0.1:4467","http_method":"PUT","http_url":"http://127.0.0.1:4467/admin/relation-tuples","http_user_agent":"curl/7.74.0","level":"info","msg":"Access request granted","service_name":"ORY Oathkeeper","service_version":"v0.40.6","email":"user@email.com","subject":"12345","time":"2024-12-02T15:06:22.659248722Z"}

Workarounds or alternatives

I would also appreciate any advice for potential alternatives for audit tracking for ory oathkeeper and ory keto for a self-hosted instance - thank you!

Version

0.40.6

Additional Context

No response

@DenisPnko DenisPnko added the feat New feature or request. label Dec 4, 2024
@alex3123
Copy link

I vote for this feature. I would also be interested in using these logs for access auditing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

No branches or pull requests

2 participants