cloak_ecto icon indicating copy to clipboard operation
cloak_ecto copied to clipboard

Move from using GenServer for configuration

Open a3kov opened this issue 8 months ago • 0 comments

Using GenServer to load configuration is not only unnecessary, but also harmful. As the server is not running in migrations, if you try to insert data into encrypted field in a data migration, you get misleading error about mismatched ecto types, while the cause is the dump callback unable to access the field configuration.

With runtime.exs configuration file it would be straightforward. Plus, ets woudn't be needed either.

a3kov avatar Apr 25 '25 05:04 a3kov