Add proxy endpoints for iOS app secret migration#220
Open
jakebromberg wants to merge 1 commit intomainfrom
Open
Add proxy endpoints for iOS app secret migration#220jakebromberg wants to merge 1 commit intomainfrom
jakebromberg wants to merge 1 commit intomainfrom
Conversation
Add server-side proxy endpoints that allow the iOS app to call Discogs, Spotify, and Apple Music APIs through Backend-Service instead of embedding API credentials in the binary. New endpoints: - GET /config -- unauthenticated bootstrap configuration (PostHog key, request-o-matic URL) - GET /proxy/artwork/search -- artwork lookup via ArtworkFinder - GET /proxy/metadata/album -- album metadata from Discogs + Spotify + Apple Music + search URLs - GET /proxy/metadata/artist -- artist bio + Wikipedia from Discogs by artist ID - GET /proxy/entity/resolve -- resolve Discogs entity (artist/release/master) by ID - GET /proxy/spotify/track/:id -- Spotify track metadata using backend credentials All /proxy/* endpoints require anonymous session auth (requireAnonymousAuth) and rate limiting (120 req/60s per user). The /config endpoint is intentionally unauthenticated since the app needs it before authenticating.
This was referenced Mar 3, 2026
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.
Summary
GET /configendpoint (unauthenticated) for iOS app bootstrap configuration/proxy/*with anonymous session auth and rate limiting: artwork search, album metadata, artist metadata, entity resolution, Spotify track lookupproxyRateLimitmiddleware (120 req/60s per user)Closes #219
Test plan
npm run test:unitpasses (25 new tests)curl localhost:8080/configreturns config (no auth)curl localhost:8080/proxy/artwork/search?artistName=Radioheadreturns 401 without session