Repository navigation
gateway: per-address limits on the wallet API; both APNs environments - #17
Merged
Merged
Conversation
…PNs environments Subscribing and revoking are limited per client address (IPv4 address or IPv6 /64; 60 an hour each by default), so nobody can cheaply fill the revocation list. The counters hold salted hashes, in memory only. Behind a proxy, `trusted_proxies` says whose X-Forwarded-For to believe, as in the relay. Serve `lz_gateway::app`, which carries the peer address. `apns-sandbox` subscriptions, accepted with `[apns] allow_sandbox`, go to Apple's development environment with the same key, so one gateway serves Xcode, TestFlight and App Store builds. Endpoints seal it as a new platform code; turning it off later makes them answer 410. Config changes are additions with defaults: existing configs work as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Follows #16, for v0.1.3. Closes two gaps found preparing Wizard's gateway on staging.
Per-address limits on the wallet API (was under "Not yet")
trusted_proxies, as in the relay: only those peers' lastX-Forwarded-Forentry names the client.lz_gateway::app(the router with connect info);main.rsand the tests do.Both APNs environments
"platform": "apns-sandbox", accepted with[apns] allow_sandbox = true, goes to Apple's development environment with the same auth key. One gateway then serves Xcode, TestFlight and App Store builds. Sealed as a new platform code; turning it off later makes those endpoints answer 410.Config changes are additions with defaults; existing configs behave as before. New tests: sandbox routing, refusing sandbox when not allowed, per-address limits (and that pushes aren't counted), forged and trusted
X-Forwarded-For, IPv6 /64.No server, client, or
lz-protochanges: doesn't touch key handling.🤖 Generated with Claude Code