feat(callbacks): expose physical licensing identities - #59
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #59 +/- ##
=======================================
Coverage 99.08% 99.08%
=======================================
Files 3 3
Lines 109 109
Branches 30 30
=======================================
Hits 108 108
Misses 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe ChangesServer GUID support
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This change adds optional licensing identity fields while preserving the existing callback contract and encrypted transport behavior. No actionable merge-blocking risk remains after normal checks and review. Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2 files. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Extend the shared server callback contract so licensing flows can carry both physical identities alongside the existing
guidfield.Why This Exists
A server may have both a USB flash GUID and a TPM GUID. Consumers such as Unraid API and Account need both values to support recovery, replacement, and future licensing decisions without forcing one choice at the handoff boundary.
Resolution
Add optional
flashGuidandtpmGuidfields toServerData. Existing callbacks remain valid because the fields are optional and the legacyguidfield is unchanged.Reviewer Considerations
guidremains the current/legacy identity; the new fields are additional context.dist.Behavior Changes
Callbacks include the optional physical identities when a producer supplies them; older producers and consumers continue to work unchanged.
Implementation Summary
flashGuidandtpmGuidfields toServerData.Verification
pnpm buildpnpm test --run— 38 tests passed.Risk
Low. This is an additive, optional contract change with backward-compatible serialization.
Summary by CodeRabbit
New Features
Tests