You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -199,6 +199,25 @@ bun run build
199
199
-**APIs**: GitHub (Octokit), Gitea REST API
200
200
-**Auth**: JWT tokens with bcryptjs password hashing
201
201
202
+
## Security
203
+
204
+
### Token Encryption
205
+
- All GitHub and Gitea API tokens are encrypted at rest using AES-256-GCM
206
+
- Encryption is automatic and transparent to users
207
+
- Set `ENCRYPTION_SECRET` environment variable for production deployments
208
+
- Falls back to `BETTER_AUTH_SECRET` or `JWT_SECRET` if not set
209
+
210
+
### Password Security
211
+
- User passwords are hashed using bcrypt (via Better Auth)
212
+
- Never stored in plaintext
213
+
- Secure session management with JWT tokens
214
+
215
+
### Migration
216
+
If upgrading from a version without token encryption:
217
+
```bash
218
+
bun run migrate:encrypt-tokens
219
+
```
220
+
202
221
## Contributing
203
222
204
223
Contributions are welcome! Please read our [Contributing Guidelines](CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests.
0 commit comments