Skip to content

feat(api): API key auth for source map CI uploads - #304

Merged
unjica merged 3 commits into
developfrom
feat/source-maps-api-key-auth
Jul 9, 2026
Merged

unjica merged 3 commits into
developfrom
feat/source-maps-api-key-auth

Conversation

@unjica

@unjica unjica commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add CI-friendly auth for POST /api/project/source-maps via project API key (X-API-Key or Authorization: Bearer tt_live_...) alongside the existing dashboard session path (EDITOR+)
  • Enforce X-Project-Id matches the key's project and respect per-key allowed_app restrictions on the upload app field
  • Update .github/actions/upload-source-maps to use api_key instead of session_cookie
  • Document API key upload flow in docs/source-maps.md

Closes #302

Follow-up to #253 (GitHub Action for source maps upload).

Test plan

  • pnpm lint && pnpm test && pnpm build
  • Unit tests for resolveSourceMapUploadAuth (session, API key, project mismatch, app restriction)
  • Bugbot review — no findings
  • Manual: upload a map with a project API key + X-Project-Id in CI or curl

Made with Cursor

unjica and others added 3 commits July 9, 2026 15:17
Allow POST /api/project/source-maps via project API key so release
workflows no longer need dashboard session cookies. Update the upload
GitHub Action and docs accordingly.

Closes #302

Co-authored-by: Cursor <[email protected]>
@unjica
unjica merged commit 693209d into develop Jul 9, 2026
4 checks passed
@unjica
unjica deleted the feat/source-maps-api-key-auth branch July 9, 2026 14:27
@unjica unjica mentioned this pull request Jul 9, 2026
1 of 4 tasks
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.

Source maps: API key auth for CI uploads

1 participant