Security.md.erb 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # Security
  2. Security issues take precedence over bug fixes, and feature work.
  3. Peer reviews, and security research, are also welcome to ensure nobody's
  4. instance is ever compromised.
  5. ## Where should I report security issues?
  6. Email directly `:TODO: at project dot org` with details, and
  7. reproduction steps. Please allow 90-days, from when we first reply to
  8. your report, before public disclosure. At that time you may add a copy of
  9. your published findings in the `disclosed` directory to help update users
  10. about new, or improved security measures.
  11. If you wish to be acknowledge below, mention it explicitly, and include
  12. - Your name or alias
  13. - Report date. YYYY-MM-DD
  14. - Bug reported. Name or one-line description.
  15. - Main contact (optional)
  16. (Lack of a `disclosed` folder only means nothing has been reported)
  17. ## Configuration
  18. These are the PROJECT's default settings:
  19. :TODO:
  20. Depending on the user's threat model these may be tune:
  21. :TODO:
  22. ## Checksum
  23. Although it's possible to install gems with a trust policy, is not a
  24. widely used feature. In practice, we'd have to allow installing gems
  25. without a cert defeating the purpose of having a policy.
  26. Instead, we include the checksum of the released gems, as recommended on
  27. [rubygems](https://guides.rubygems.org/security/#include-checksum-of-released-gems-in-your-repository).
  28. To verify the gem before installing it
  29. ```terminal
  30. $ gem fetch <%= @scaffold.gem_name %> -v <version>
  31. $ ruby -rdigest/sha2 -e "puts Digest::SHA512.new.hexdigest(File.read('<%= @scaffold.gem_name %>-<version>.gem'))"
  32. ```
  33. Compare it with the hash in `checksum/<%= @scaffold.gem_name %>-<version>.gem.sha512` to
  34. verify the integrity of the fetched gem. If the checksum matches
  35. ```terminal
  36. $ gem install <%= @scaffold.gem_name %> -v <version>
  37. ```
  38. If you wish to audit the gem locally before installation
  39. ```sh
  40. $ gem unpack <%= @scaffold.gem_name %> -v <version>
  41. ```
  42. Verify the latest release's checksum before updating as well.
  43. ## Acknowledgments
  44. We would like to thank the following researchers:
  45. | YYYY-MM-DD | Description | Name/alias | email/profile |
  46. |------------|-------------|------------|---------------|
  47. | | | | |