ash
ash copied to clipboard
Add config to un-redact sensitive attributes and arguments in development
Is your feature request related to a problem? Please describe. In development, debugging values and errors for sensitive fields is difficult as the actual values will be redacted or filtered.
For example I'm trying to debug passwords generated by iOS autofill and why ash_authentication doesn't like them. Neither iOS nor ash want to tell me what the actual password is though.
Describe the solution you'd like
A config similar to config :ash, :policies, show_policy_breakdowns?: true
for policies.
For un-redacting sensitive values in development only.
Describe alternatives you've considered None 😅
Express the feature either with a change to resource syntax, or with a change to the resource interface
# config/dev.exs
config :ash, :resources, show_sensitive?: true
Sounds useful! PRs welcome :)
Can I take this one?
Yep! Go ahead 🙇
Thanks! Can we close this issue?