Skip to content

Commit

Permalink
Update SECURITY.md
Browse files Browse the repository at this point in the history
* Update SECURITY.md per feedback in
  houndci#1087. Clarify that GitHub
  tokens are encrypted and encoded using
  `ActiveSupport::MessageEncryptor`.

https://trello.com/c/KOdHjZUN/757-update-security-md
  • Loading branch information
Laila Winner committed Feb 2, 2017
1 parent ceba3b9 commit 1a514b5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions doc/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,22 @@ Using OAuth2 means we do not access your GitHub password
and that you can revoke our access at any time.

Your GitHub token is needed in order to fetch file content, comments, repo
information and update Pull Request status. This token is stored in our
Postgres database on Heroku and is base64 encoded using a protected key.
information and update Pull Request status. This token is encrypted and encoded
using `ActiveSupport::MessageEncryptor` and stored in our Postgres database on Heroku.
`ActiveSupport::MessageEncryptor` [uses `aes-256-cbc`][message-encryptor]
for encryption and base64 for encoding.

To browse the portions of the codebase related to authentication,
try `grep`ing for the following terms:

```bash
grep -R omniauth app
grep -R github_token app
grep -R token app
```

[message-encryptor]:
https://github.com/rails/rails/blob/2af7338bdf32790a28e388a99dada84db0af1b5f/activesupport/lib/active_support/message_encryptor.rb#L35

What happens when Hound refreshes your GitHub repositories
----------------------------------------------------------

Expand Down

0 comments on commit 1a514b5

Please sign in to comment.