feat(license): support configurable machine fingerprint for containers#5427
Merged
Conversation
Add a `license.machine_id` config option (and corresponding FLIPT_LICENSE_MACHINE_ID env var) that overrides the auto-detected machine fingerprint. This fixes license validation failures in containerd-based Kubernetes environments (GKE, EKS) where the machineid library cannot detect a machine ID. Fixes #5426 Signed-off-by: Mark Phelps <[email protected]>
Signed-off-by: Mark Phelps <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v2 #5427 +/- ##
==========================================
+ Coverage 60.38% 60.40% +0.01%
==========================================
Files 140 140
Lines 13892 13906 +14
==========================================
+ Hits 8389 8400 +11
- Misses 4788 4791 +3
Partials 715 715
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
erka
approved these changes
Feb 25, 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
license.machine_idconfig option (and correspondingFLIPT_LICENSE_MACHINE_IDenv var) that overrides the auto-detected machine fingerprintmachineidlibrary cannot detect a machine IDChanges
internal/config/license.go: AddedMachineIDfield toLicenseConfiginternal/coss/license/license.go: AddedProtectedMachineIDhelper (HMAC-SHA256, matchingmachineid.ProtectedIDbehavior); updatedNewManagerto use configured machine ID with info logcmd/flipt/license.go: Updated CLI license wizard to respect configured machine IDconfig/flipt.schema.{cue,json}: Addedmachine_idto license schemainternal/coss/license/license_test.go: Added tests forProtectedMachineIDand configured fingerprinterSecurity Note
This does not introduce a new way to circumvent license seat counting. The configured value is still HMAC-SHA256 hashed with the app ID before being sent to Keygen, preserving the same fingerprint protection as auto-detection. A user who wanted to bypass seat limits could already do so via the existing workaround of mounting the same
/etc/machine-idfile across containers, or by patching the binary. This change simply removes a blocker for legitimate deployments on containerd-based runtimes where auto-detection fails.Usage
Or via environment variable:
Fixes #5426