Skip to content

gateway: an optional separate APNs key for apns-sandbox - #18

Merged
gf5901 merged 1 commit into
mainfrom
gateway-sandbox-key
Nov 14, 2026
Merged

gf5901 merged 1 commit into
mainfrom
gateway-sandbox-key

Conversation

@gf5901

@gf5901 gf5901 commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Follows #17, for v0.1.3.

Apple only lets you limit an APNs key to one bundle ID if the key covers a single environment (Sandbox or Production, not both). Wizard uses two keys scoped that way, so apns-sandbox needs its own key.

  • [apns] sandbox_key_id and sandbox_key_path (both or neither, and only with allow_sandbox): sign apns-sandbox pushes. Without them, the main key signs both, as before.
  • The APNs client keeps one signer (key, key id, cached provider token) per key; an ExpiredProviderToken answer resets only the key that got it.
  • Tests: each environment's pushes are signed by its own key (checked against both public keys), and the config check.

No server, client, or lz-proto changes: doesn't touch key handling.

🤖 Generated with Claude Code

Apple limits a key to one app only if it covers a single environment,
so a vendor that scopes its keys holds a production key and a sandbox
key. [apns] sandbox_key_id and sandbox_key_path sign apns-sandbox
pushes; without them the main key signs both, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gf5901
gf5901 merged commit 4a6b4f9 into main Nov 14, 2026
9 of 10 checks passed
@gf5901
gf5901 deleted the gateway-sandbox-key branch November 15, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant