cloak_ecto
cloak_ecto copied to clipboard
Encrypted fields for Ecto
I have a schema that was created with a migration for ecto_ch: ``` def change do create table(:settings, primary_key: false, engine: "MergeTree") do # The primary key for this is...
When you view the hex docs the link to see the source code of a function (eg [here](https://hexdocs.pm/cloak_ecto/Cloak.Ecto.Binary.html)) the link goes to the `main` branch: https://github.com/danielberkompas/cloak_ecto/blob/main/lib/cloak_ecto/types/binary.ex while this repo uses...
When using cloak_ecto in a typed Ecto Schema (see https://hexdocs.pm/typed_ecto_schema/), Dialyxir (see https://hex.pm/packages/dialyxir) halts with an unknown type error: ``` $ mix dialyzer […] lib/db/contact.ex:0:unknown_type Unknown type: Cloak.Ecto.SHA256.t/0. ________________________________________________________________________________ lib/db/contact.ex:0:unknown_type...
First of all thank you for the recent release! I've noticed some of my tests are failing due to: https://github.com/danielberkompas/cloak_ecto/blob/05ea920f869cf9f11bab542dff32df9992b7b2b1/lib/cloak_ecto/types/sha_256.ex#L78-L86 I have a schema similar to ```elixir schema "tokens" do...
This PR should resolve https://github.com/danielberkompas/cloak_ecto/issues/53 It Checks for nil values in `equal?/2` to avoid call `String.valid/1` with nil
This fixes a bug with the Ecto.Enum, which seems to be wrapped in tuples. ```elixir [error] [] Task #PID started from Logflare.Vault terminating ** (FunctionClauseError) no function clause matching in...