I’m running into sporadic issues with a binary file that we currently have
generated at every chef run (.mylogin.cnf). The file appears to be salted,
because it changes every time it’s re-generated with the same credentials.
My problem is that sometimes the resulting file works perfectly for my use
(with the Mysql2 gem), and sometimes it segfaults the Ruby process. It
works all the time for the mysql console, though.
I’d like to try the workaround of saving a good known version of the file
in an encrypted data bag. The file is binary, however.
Has anyone had success saving binary data to data bags? Should I
encode/decode it myself (e.g. base64), or is there some way to store binary
data in data bags that I don’t see in the data bag documentation?
Thanks in advance!
Note: I’ve asked the maintainers of
I’m the founder of Rock Solid Ops https://www.rocksolidops.com, a web
operations and development consultancy.
I’m also the organizer of DevOpsMtl http://www.devopsmtl.com, a monthly
event to discuss the challenges, tools and the culture surrounding the
My main fields of expertise are web development with Ruby on Rails, DevOps
and a bit of mobile development. If you need help scaling, monitoring,
securing or managing your web infrastructure (Rails or not), get in touch!
Connect with me and read testimonials on my
follow me on twitter @webmat http://twitter.com/webmat, or check out my
blog at programblings.comhttp://www.programblings.com?utm_source=email+signature