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 config to un-redact sensitive attributes and arguments in development #1073

Closed
miguel-s opened this issue Apr 29, 2024 · 4 comments
Closed
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@miguel-s
Copy link

miguel-s commented Apr 29, 2024

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 miguel-s added enhancement New feature or request needs review labels Apr 29, 2024
@zachdaniel
Copy link
Contributor

Sounds useful! PRs welcome :)

@zachdaniel zachdaniel added the good first issue Good for newcomers label Apr 29, 2024
@nallwhy
Copy link
Contributor

nallwhy commented Apr 30, 2024

Can I take this one?

@zachdaniel
Copy link
Contributor

Yep! Go ahead 🙇

@pierrelegall
Copy link
Contributor

Thanks! Can we close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants