Skip to content

fix(usage): Send raw licence signature bytes in Control Plane auth token#7936

Merged
germangarces merged 4 commits into
mainfrom
fix/control-plane-auth-token-encoding
Jul 2, 2026
Merged

fix(usage): Send raw licence signature bytes in Control Plane auth token#7936
germangarces merged 4 commits into
mainfrom
fix/control-plane-auth-token-encoding

Conversation

@germangarces

Copy link
Copy Markdown
Member

The usage-push auth token was encoded twice, so the Control Plane never recognised it and rejected every push. This decodes the licence signature back to its raw bytes before encoding it for the request header, so the token matches what the Control Plane expects.

@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Preview Jul 2, 2026 10:00am
flagsmith-frontend-preview Ignored Ignored Preview Jul 2, 2026 10:00am
flagsmith-frontend-staging Ignored Ignored Preview Jul 2, 2026 10:00am

Request Review

@github-actions github-actions Bot added api Issue related to the REST API fix labels Jul 2, 2026
@github-actions github-actions Bot added fix and removed fix labels Jul 2, 2026
@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.63%. Comparing base (946df88) to head (d32fcb0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7936   +/-   ##
=======================================
  Coverage   98.63%   98.63%           
=======================================
  Files        1497     1497           
  Lines       59141    59142    +1     
=======================================
+ Hits        58335    58336    +1     
  Misses        806      806           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@germangarces germangarces marked this pull request as ready for review July 2, 2026 06:43
@germangarces germangarces requested a review from a team as a code owner July 2, 2026 06:43
@germangarces germangarces requested review from emyller and removed request for a team July 2, 2026 06:43
@github-actions github-actions Bot removed the fix label Jul 2, 2026
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-e2e:pr-7936 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-7936 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-7936 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api:pr-7936 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api-test:pr-7936 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-private-cloud:pr-7936 Finished ✅ Results

@github-actions github-actions Bot added the fix label Jul 2, 2026
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  4 passed

Details

stats  4 tests across 3 suites
duration  17.5 seconds
commit  6bd2fae
info  🔄 Run: #18018 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  3 passed

Details

stats  3 tests across 3 suites
duration  45.8 seconds
commit  6bd2fae
info  🔄 Run: #18018 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  5 passed

Details

stats  5 tests across 4 suites
duration  33.5 seconds
commit  6bd2fae
info  🔄 Run: #18018 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  59.7 seconds
commit  6bd2fae
info  🔄 Run: #18018 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  5 passed

Details

stats  5 tests across 3 suites
duration  33 seconds
commit  c99614c
info  🔄 Run: #18019 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  4 passed

Details

stats  4 tests across 3 suites
duration  44.2 seconds
commit  c99614c
info  🔄 Run: #18019 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  6 passed

Details

stats  6 tests across 5 suites
duration  33.4 seconds
commit  c99614c
info  🔄 Run: #18019 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  5 passed

Details

stats  5 tests across 4 suites
duration  59.7 seconds
commit  c99614c
info  🔄 Run: #18019 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  4 passed

Details

stats  4 tests across 3 suites
duration  33.2 seconds
commit  d32fcb0
info  🔄 Run: #18020 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  4 passed

Details

stats  4 tests across 3 suites
duration  12.4 seconds
commit  d32fcb0
info  🔄 Run: #18020 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  3 passed

Details

stats  3 tests across 3 suites
duration  44.1 seconds
commit  d32fcb0
info  🔄 Run: #18020 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  54.4 seconds
commit  d32fcb0
info  🔄 Run: #18020 (attempt 1)

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Visual Regression

19 screenshots compared. See report for details.
View full report

Comment thread api/organisations/usage_reporting/mappers.py Outdated
@github-actions github-actions Bot added fix and removed fix labels Jul 2, 2026
@github-actions github-actions Bot added fix and removed fix labels Jul 2, 2026
@germangarces germangarces merged commit 6849e3f into main Jul 2, 2026
32 checks passed
@germangarces germangarces deleted the fix/control-plane-auth-token-encoding branch July 2, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Issue related to the REST API fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants