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

Configure JWT authenticator not to logging sensitive data #1115

Open
4 of 6 tasks
StanislavStefanov opened this issue Jun 27, 2023 · 0 comments
Open
4 of 6 tasks

Configure JWT authenticator not to logging sensitive data #1115

StanislavStefanov opened this issue Jun 27, 2023 · 0 comments
Labels
feat New feature or request.

Comments

@StanislavStefanov
Copy link

Preflight checklist

Describe your problem

If the authenticator fails to validate the provided JWT token the returned error is enriched with the contents of the jwt claims from the token. The claims contain user personal data such as names and email address. According to our policy such information is treated as sensitive data and we should not log it. We need a way to configure whether the error should be enriched or not.

Describe your ideal solution

The suggested approach is to have a new configuration value of type bool within AuthenticatorOAuth2JWTConfiguration which would tell Oathkeeper to enrich the errors with the data from the jwt claims or not. The default value of the new configuration can be 'true' in order to keep the current behaviour and in cases where the enrichement of the message is not desired it could be overridden to 'false'.

Workarounds or alternatives

Based on the current approach I couldnt think of other approach that can keep the current default behaviour and provide the new functionality

Version

Currently we use v0.38.25-beta.1, but will be upgrading to the latest version

Additional Context

No response

@StanislavStefanov StanislavStefanov added the feat New feature or request. label Jun 27, 2023
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

1 participant