Security

For you and your org's owners, what Hush can do with GitHub access, how it keeps your token safe, and how to report a problem.

Hush needs access to your GitHub notifications and repositories. This page says what it does with that access, and how it protects it. If you own a GitHub org and a member asks you to approve Hush, start with For org owners.

What Hush can do on GitHub

Hush signs you in with a GitHub OAuth app, with the scopes notifications, repo, read:org, and project (why each one). GitHub's Notifications API accepts only these classic scopes, so Hush cannot ask for less.

  • Hush reads your notifications, the pull requests and issues behind them, the results of your saved searches, and your teams.
  • Hush writes only when you do it. Each write is one choice that you make in the peek: approve, request changes, comment, reply to or resolve a review thread, mark a file as viewed, react, merge, auto-merge, re-run failed jobs, mark ready for review or draft, change project status, add an image or video to a comment, close, or reopen. All writes. Hush never changes your notifications on GitHub. Snooze, Mute, and Read stay in Hush.
  • Hush never writes by itself: no rule, schedule, or background job changes anything on GitHub.
  • Hush reads a PR's changed files only when you open its Files tab, and does not keep them. It does not change repositories or settings, or use admin rights.

For org owners

Your org may allow only the OAuth apps that an owner approved. Until you approve Hush, GitHub hides your org's private repositories and notifications from Hush.

When you approve Hush, each member who signs in to Hush can use it with their own access, and no more: Hush sees what that member sees, and it acts as that member, only when they choose an action. Approval gives Hush no access of its own to your org.

You can deny or revoke the approval at any time in your org's settings, under Third-party access → OAuth app policy. Members can revoke Hush for themselves in their own GitHub settings.

You can also install the Hush GH app on your org, so that your members' lists update in seconds (webhook updates). The app has read-only permissions (metadata, pull requests, issues, and checks). Hush uses it for two things only: to receive its events, and to list the accounts where it is installed, for Settings → General → Webhook updates. It never reads a repository, pull request, or issue with the app, and never writes with it. Hush checks the signature of each event, reads only its name, action, installation id, repository id, and item numbers, and stores no event. Then Hush reads the changed item again with the access of each member who tracks it. You can install the app on selected repositories only, and uninstall it at any time.

How Hush protects your access

  • Your token is encrypted with AES-256-GCM before Hush stores it. The key is a secret of the server, not in the database. Each encrypted token is bound to your account, so it cannot be moved to another account and used there. Hush decrypts the token only on the server, to call GitHub, and never sends it to your browser.
  • Sessions: your browser keeps a random 256-bit session id in an HttpOnly, Secure, SameSite=Lax cookie. The server stores only its SHA-256 hash. A session ends after 7 days with no use, 30 days after sign-in, or when you sign out. Settings → General → Signed in lists every browser where you are signed in, with Sign out everywhere else. When GitHub stops accepting your token (you revoked Hush, for example), Hush signs you out everywhere.
  • Sign-in uses a random state value, so that another site cannot finish a sign-in for you.
  • Requests that change things must come from Hush's own address; others are refused.
  • Your data is separate: each account has a database of its own (a Cloudflare Durable Object).
  • Feeds have a random secret address of 192 bits. Hush stores only its hash, so it shows the address only once, when it makes it. A new address, or turning the feed off, makes the old address stop working at once.
  • Push messages are encrypted for your device (Web Push, with VAPID keys), so the push services that carry them cannot read them.
  • Limits on the number of requests protect sign-in, feeds, and the API against floods.
  • The app and the public site send a strict Content Security Policy: they run only their own scripts, connect only to their own server, and cannot be put in a frame on another site. The public site is static HTML.

Open source

All of Hush is at github.com/ianmatson/hush: the app, the server, and this site. What runs is the main branch. You can read what Hush does with your token, or run your own copy on your own Cloudflare account (see the README).

Report a problem

If you find a security problem, please do not describe it in a public issue. Report it privately on GitHub: only the maintainer can see the report. Thank you.

This page as Markdown