-
Notifications
You must be signed in to change notification settings - Fork 4.2k
feat(push): make gateway origin configurable #7261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
brow
wants to merge
69
commits into
main
Choose a base branch
from
configurable-push-gateway-origin
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
af33072
feat(push): configure gateway origin and relay endpoint
brow 7d7cc99
feat(push): require configured mobile and chart origins
brow 6616b83
ci(helm): provide explicit gateway origin
brow 4a60901
fix(push): clean up legacy enrollment state
brow bbc6cf3
Revert "fix(push): clean up legacy enrollment state"
brow f2c4ce7
docs(nip-pl): keep canonical gateway profile
brow aede861
fix(push): bind enrollment to relay gateway
brow 236fd35
fix(push): preserve registered transcript audiences
brow 38532e1
fix(push): keep gateway config off the NIP wire
brow a61a899
fix(mobile): reject malformed push gateway origins
brow 86a90b6
test(mobile): cover push gateway origin validation
brow c5a3764
fix(push): revoke retired gateway installations
brow 1dda5fd
fix(mobile): configure direct Xcode gateway builds
brow de4a26a
fix(push): revoke before replacing attest key
brow 4922af6
docs(mobile): configure Xcode gateway build setting
brow 711b50a
fix(push): bind cleanup to installation keys
brow 6e8a067
fix(push): restore rollback gateway state
brow 5925166
fix(push): clean retired gateways during registration
brow 134b104
fix(push): retain endpoint for cleanup replay
brow 5dc1278
fix(push): journal fresh enrollment endpoint
brow e99d3d5
fix(push): initialize gateway cleanup at startup
brow 763517c
fix(push): retry startup gateway cleanup
brow 76e31cd
fix(push): bound retired gateway retries
brow ce8d593
fix(push): continue retired gateway cleanup
brow 895d5fe
fix(mobile): require HTTPS for release gateway
brow da10304
fix(push): reconcile restored enrollment journal
brow 88561a9
fix(push): preserve shared installation during cleanup
brow 2c60418
fix(mobile): reject release gateway ports
brow 59ce830
Checkpoint retired installation cleanup
brow 6a5c5ce
Retry ambiguous push revocation failures
brow c559fc6
Quarantine push grants before revocation
brow d283152
Reconcile committed push delegation generation
brow 0074858
Scope push delegation generation fallback
brow 0dff62c
Make push delegation cleanup recoverable
brow 115f1dd
Merge remote-tracking branch 'origin/main' into configurable-push-gat…
brow adf2bf0
Journal shared push installation grants
brow 39b6687
Retire grants for revoked push delegation
brow facee24
Checkpoint completed delegation cleanup
brow bb75c43
Reject ported push delivery URLs
brow bf39df6
Recover legacy push authority state
brow 048e88c
Preserve configured legacy push origin
brow b0d0435
Wait for APNs before legacy push cleanup
brow 9e08172
Migrate push leases before gateway cleanup
brow 338c706
Checkpoint push migration retries
brow ae0bf99
Merge remote-tracking branch 'origin/main' into configurable-push-gat…
brow 2f8ad3f
Scope push migration publication fence
brow 239623e
Preserve push replacements across endpoint rotation
brow 76b2e32
Distinguish same-gateway push replacements
brow 7b874a6
Fence push cleanup against newer migration work
brow 29779e9
Serialize push cleanup with enrollment
brow 923544e
Disambiguate push installation conflicts
brow 532c37d
Checkpoint completed push replacement origins
brow c36ba66
Fence push replacement checkpoints
brow 44ce7fb
Confirm push lease acceptance before cleanup
brow c645d9c
Retain push revocation tombstones through expiry
brow bb75bec
Document Android push gateway input
brow 2341ccb
Checkpoint shared push authorities atomically
brow 22b73b2
Preserve shared push recovery authority
brow 3373281
Update embedded migration inventory
brow ad0e67f
Continue independent push migration groups
brow 2fcf564
Recover quarantined push installations
brow 49d8ac3
Recover response-lost legacy enrollment
brow 843170d
Migrate gateway tombstone indexes
brow 838d0dc
Fence push migration acceptance
brow 4b59a1d
Fence push cleanup against token rotation
brow deab86b
Preserve push migration work after rotation
brow 18d4a07
Journal push migration authority groups
brow ea811c2
Fence stale push lease publication
brow 14d38ce
Fence stale push enrollment
brow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
15 changes: 15 additions & 0 deletions
15
crates/buzz-push-gateway/migrations/0005_retain_revocation_tombstones.sql
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| -- Revoked installations remain as retry tombstones until authority expiry. | ||
| -- Restrict ownership uniqueness to live rows so a replacement can enroll | ||
| -- without deleting the old installation's idempotency state. | ||
| ALTER TABLE push_gateway_installations | ||
| DROP CONSTRAINT push_gateway_installations_app_attest_key_id_key; | ||
| ALTER TABLE push_gateway_installations | ||
| DROP CONSTRAINT push_gateway_installations_app_profile_token_fingerprint_key; | ||
|
|
||
| CREATE UNIQUE INDEX push_gateway_installations_active_app_attest_key | ||
| ON push_gateway_installations (app_attest_key_id) | ||
| WHERE revoked_at IS NULL; | ||
|
|
||
| CREATE UNIQUE INDEX push_gateway_installations_active_profile_token | ||
| ON push_gateway_installations (app_profile, token_fingerprint) | ||
| WHERE revoked_at IS NULL; |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.