-
Notifications
You must be signed in to change notification settings - Fork 74
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
Common need wants a pattern: encrypting database fields #98
Comments
+1. I think |
Shrug. I looked around for a library with a crisp rotation angle. Null. |
@deafbybeheading Hah, Great idea guys! It would be amazing to start demonstrating some internal (/external) consistency in this area. |
Hey folks, I've been writing some Pliny docs (about time!). Check it here: I think encryption would make it for a great topic for the "Extending" section, if anyone wants to take a stab. It's probably also worth mentioning Fernet – which makes me wonder, why doesn't attr_vault just let Fernet handle the actual encryption? |
@pedro awesome! And But in any case, I think real progress on this issue is blocked on me actually writing some docs for |
I am using |
@ys update how? The metadata in the keyring is important. I guess I can wrap the whole in Base64 maybe? But please file an issue on that project and propose alternatives there. In fact, here: I made one for you msakrejda/attr_vault#14 |
Let me take a look and come with an idea:) |
@uhoh-itsmaciek got it! attr_vault looks super promising then. I take you folks are already using it in prod? If you want to write some docs in the repo I can take a stab at the Pliny guide, lemme know! |
@pedro yeah, we're using it in Shogun (and possibly other places) and other than the |
@pedro btw, any tips for documenting a Ruby library like this? My first pass will just be going over usage in the README, but wondering if you know of libraries with clear, simple, idiomatic Ruby docs. I guess in my experience, I usually go for the README of whatever gem I'm using--maybe that's enough here? |
@uhoh-itsmaciek can't claim to know much about this, but excon and dotenv come to mind when I think of good docs I used recently-ish! Most of the gems we use are unsurprisingly well documented – probably some correlation there. But one example that comes to mind on bad docs is rr: they changed it to become a mix of readme and files inside the repo and that confuses the hell out of me. So yeah, big +1 to just keep it all under |
Yeah and the first result in google is the wrong repo, which always gets me too. So bad >.< |
and with key rotation, which seems to be the place where most existing approaches fall down. @deafbybeheading was compelled to write new software because of this noteworthy defect in most or all others: https://github.com/deafbybeheading/attr_vault. Not sure how much of it is general and how much was get-the-job-done. Also, bugs.
The text was updated successfully, but these errors were encountered: