Fix/audit security#79
Merged
Merged
Conversation
added 5 commits
February 26, 2026 12:59
Add AES-256-GCM encrypt/decrypt helpers to the Queue class. When JOB_QUEUE_ENCRYPTION_KEY is set, private key material in UpdateSessionKeys jobs and user tokens in NotifyReply jobs are encrypted before being written to PgBoss and decrypted on consume. The _encrypted flag is used to distinguish legacy unencrypted payloads.
Previously, any origin (including disallowed ones) was reflected back as the Access-Control-Allow-Origin value when it didn't match the allowlist. Now the header is only set when the origin is in the list.
The bulk remove handler was calling authorize with action 'create' instead of 'delete', meaning the wrong capability was being checked.
Document the JWT-before-signature routing decision in blueskyFetch and the authorDid-from-body pattern in session revocation, referencing the security review findings for future readers.
chrisjensen
force-pushed
the
fix/audit-security
branch
from
February 26, 2026 02:00
1ffe2ee to
6e4358a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security enhancements after a review: