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

Add token to list of filtered parameters from logs #534

Open
sevenseacat opened this issue Nov 13, 2024 · 0 comments
Open

Add token to list of filtered parameters from logs #534

sevenseacat opened this issue Nov 13, 2024 · 0 comments

Comments

@sevenseacat
Copy link
Member

eg. config :phoenix, :filter_parameters, ["token"]

Currently routes that accept tokens, such as magic link, will happily print out the tokens to server logs -

[debug] Processing with AshAuthentication.Phoenix.StrategyRouter
  Parameters: %{"token" => "eyJhbGciOiJIUzI1NiIsInR5cCI6I...

Given these can be used for authentication, they probably shouldn't be logged!

This config change could be done as part of the Igniter installation for AAP.

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

No branches or pull requests

1 participant