sparse-hair-56061
10/02/2025, 4:07 PMformat_using: helper on each sensitive field, but I worry we'll forget to do that sometime. I was thinking that ideally we'd mark those fields as sensitive somehow on the schema or the model. I think the closest thing is rails models' filter_attributes array. I was then thinking I may be able to set some kind of conditional logic based on this by injecting something into FieldWrapperComponent, but thought I'd check to see whether this has come up before?miniature-optician-85831
10/02/2025, 4:08 PMloud-jewelry-99127
10/03/2025, 3:42 AMfield :sensitive, as: :textarea, redacted: true
In your case does anyone can click and see the content or it would need some authorization layer?loud-jewelry-99127
10/03/2025, 5:06 AMsparse-hair-56061
10/03/2025, 7:59 AMsparse-hair-56061
10/03/2025, 8:00 AMlemon-wall-20836
10/03/2025, 9:15 AMlemon-wall-20836
10/03/2025, 9:15 AMlemon-wall-20836
10/03/2025, 9:16 AMfiltered_attributes. I knew about encrypted attributes beforelemon-wall-20836
10/03/2025, 9:16 AMsparse-hair-56061
10/03/2025, 10:39 AMsparse-hair-56061
10/03/2025, 10:40 AMredact: true when defining the schema
https://hexdocs.pm/ecto/Ecto.Schema.html#module-example