Add self-hosted premium license signing to the seeder - #8178
Add self-hosted premium license signing to the seeder#8178nthompson-bitwarden wants to merge 4 commits into
Conversation
Sign self-hosted premium user licenses during seeding via a new SeederLicenseSigner (certificate loaded lazily and cached across runs), wire it into SeederDependencies and the pipeline, write signed licenses through SelfHostLicenseService, and delete license files on the destroy scene command. Includes unit and integration coverage.
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed the new Code Review Details
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8178 +/- ##
==========================================
+ Coverage 63.37% 63.40% +0.02%
==========================================
Files 2337 2337
Lines 101456 101456
Branches 9167 9167
==========================================
+ Hits 64302 64324 +22
+ Misses 34943 34913 -30
- Partials 2211 2219 +8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🎟️ Tracking
N/A
📔 Objective
The seeder could stand up self-hosted premium users, but it never produced the signed license they need because LicensingService exposes no seam to inject a private cert while staying self-hosted. So those accounts weren't actually usable as premium on a self-hosted instance, which validates premium status by reading a license file on every login. This PR teaches the seeder to sign and write real self-hosted premium user licenses, and to clean them up on teardown.
📸 Screenshots