What if any source code of a rails project should be obscured even for an open source project? -
this hard 1 search for. if have open source rails web application project source code publicly hosted, on github, information should obscured or swapped if application run in production @ public website? assumption things config/initilizers/secret_token.rb, authentication salting stuff, , database login information should not same in production in development. other precautions should taken ensure production site not vulnerable people fiddling sessions or else not considering?
rails-specific sources of sensitive information
scrub sensitive information out of:
config/environments/*.rb
config/initializers/cookie_verification_secret.rb
config/initializers/secret_token.rb
config/initializers/session_store.rb
- any files added support third-party libraries, such
config/memcached.yml
config/database.yml
db/seeds.rb
- any rake tasks in
lib/tasks
. test/fixtures/*
general changes
including because think it's list of things keep in mind releasing open-source software have in production.
- remove sensitive information:
- password salts
- default user credentials populated code or seeds
- authentication information external server or service
- databases
- third-party apis
- ecommerse solutions
- any seeded data potentially publicize trade secrets
- test code throughly exploits. if in code , code available public, people find them , know how compromise site.
- clean code. code form of publicity site; it's 1 of many things represent site/company. make sure change variable/function names/error messages/seeded data/etc written out of humor or frustration bad public.
- actively contribute enhancements , bug fixes project , respond external requests fixes/enhancement or pull requests have solved problem themselves. keeps project active , helps publicity angle.
- make sure give credit credit due. code public, people know if you've utilized third-party code/libraries. if such code came attribution clauses in license agreements, make sure project complies agreements.
Comments
Post a Comment