Rails - Heroku - Postgres - Not Storing Sensitive Content in Clear Text

问题描述 投票:0回答:1

What's the right way to handle sensitive content in Rails 3/Heroku/Postgres database?

Why kind of encryption. How to implement? What to use to implement?

ruby-on-rails ruby-on-rails-3 postgresql encryption heroku
1个回答
4
投票

this SO Article discusses some encryption/decryption options that you could look into. without knowing too much about your application, I would say look there first and see if you can find anything that fits the bill. 作为一个很大的注意,无论您选择哪种保护方法,请确保不要忘记将过滤器添加到应用程序。RB文件,否则您可能会发现在日志文件中出现的未加密数据。 to do this you would need to simply add something like in application.rb:

config.filter_parameters += [:password, :YOUR_FILTERED_PARAM]
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.