ash icon indicating copy to clipboard operation
ash copied to clipboard

Add config to un-redact sensitive attributes and arguments in development

Open miguel-s opened this issue 9 months ago • 3 comments

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

miguel-s avatar Apr 29 '24 15:04 miguel-s

Sounds useful! PRs welcome :)

zachdaniel avatar Apr 29 '24 16:04 zachdaniel

Can I take this one?

nallwhy avatar Apr 30 '24 02:04 nallwhy

Yep! Go ahead 🙇

zachdaniel avatar Apr 30 '24 02:04 zachdaniel

Thanks! Can we close this issue?

pierrelegall avatar May 22 '24 09:05 pierrelegall