Comments (3)
@monooso did you find a solution to this? I have the exact same issue :(
from cloak_ecto.
I'm having a similar issue when stopping and restarting my application. I suspect it's because I have my vault not being started early enough in the supervision tree. I'm going to try moving it up and see if that fixes it.
EDIT: That didn't seem to do it. Maybe there's some kind of Application.ensure_started
call needed? Or maybe I'm barking up the wrong tree altogether.
from cloak_ecto.
i'm trying to migrate data like:
- fetch record
- decrypt content
- DateTime.to_date()
- encrypt
- update
pretty simple usecase, but getting the same error. i understand Vault is a Genserver, but starting it manually doesn't help.
the guides/how_to/encrypt_existing_data.md page suggest to use IEX or a mix task for this so do i understand correctly that unless you're using a custom server (with elixir installed) you can't use this package in production? pretty major oversight, great package otherwise.
Solution (edit)
actually I just figured it out. you start the Vault with MyApp.Vault.start_link()
and the ETS table error goes away.
real solution is to either support this officially or document it somewhere.
I've documented the workaround in #47.
from cloak_ecto.
Related Issues (20)
- Cloak.Ecto.Type does not conform to the Ecto.Type behavior HOT 3
- In multi-tenant setting HOT 1
- Should Ecto.Type implementations of `equal?/2` be constant time?
- Support blind indexes HOT 1
- Not possible to compile with Ecto 3.6.0 HOT 10
- Missing function `:crypto.block_encrypt/4 ` in Erlang 24 HOT 3
- The version `1.2.0` generates an unexpected error HOT 5
- Decrypt for postgresql's native encrypt function? HOT 1
- Remove insecure example from docs HOT 1
- Trouble loading the Cloak.Ecto.PBKDF2 library HOT 1
- Drop dependency on :pbkdf2
- Documentation: cloak.migrate.ecto mix task ignores labels and is order-dependent HOT 1
- Create unique contraint for encrypted or hashed column
- Add a `Decimal` type
- Support custom Ecto embeds in `Cloak.Migrator` HOT 2
- SQLite3 support? HOT 1
- Migrator breaks with Ecto.Enum field in the same schema
- Undocumented support for migrations (workaround) HOT 1
- Migrator doesn't handle plaintext arrays or maps with inner types
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloak_ecto.