Open platform to collect and prioritize feedback
LIcense key shenanigans
Matt Roberts179c5365392e
diff --git a/app/services/license/validator.go b/app/services/license/validator.goindex 4b18ba33c..2d474dc86 100644--- a/app/services/license/validator.go+++ b/app/services/license/validator.go@@ -17,7 +17,7 @@ import (// This is the public key from the hosted Fider instance// Self-hosted instances automatically use this - no configuration needed// Can be overridden via LICENSE_PUBLIC_KEY environment variable-const DefaultPublicKey = "EpyoY4Fc3TroE7MIEWlLHU8OGaEiPkPhOy+RVwwC1zk="+const DefaultPublicKey = "Ldi94BbbFMnxOOSBGqJKxWyWCgdx4k0zu3zLtNaz3bA="// GenerateKey generates a commercial license key for a tenant using Ed25519 signatures// Format: FIDER-COMMERCIAL-{tenantID}-{timestamp}-{signature}diff --git a/app/services/license/validator_test.go b/app/services/license/validator_test.goindex 804444b2d..3093eb68e 100644--- a/app/services/license/validator_test.go+++ b/app/services/license/validator_test.go@@ -122,7 +122,7 @@ func TestValidateKey_InvalidFormat(t *testing.T) {testCases := []string{"INVALID-KEY","FIDER-INVALID-123-456-789",- "FIDER-COMMERCIAL-123", // Too few parts+ "FIDER-COMMERCIAL-123", // Too few parts"FIDER-COMMERCIAL-abc-456-789", // Invalid tenant ID"FIDER-COMMERCIAL-123-abc-789", // Invalid timestamp}@@ -147,7 +147,7 @@ func TestValidateKey_UsesEmbeddedDefault(t *testing.T) {// Set private key to match the embedded public key (lPHzCZhOBBihIusKWs5lzXCgGxZEKBpCiplkmZSjGpU=)// This is the corresponding private key for the DefaultPublicKey- env.Config.License.PrivateKey = "B0Srq+DtsBI6MwY4sljCywXNLWAizfCdiJ6emGx+xIqU8fMJmE4EGKEi6wpazmXNcKAbFkQoGkKKmWSZlKMalQ=="+ env.Config.License.PrivateKey = "iKNP8chE8EGTivUb/+3Sx907LwSaZAFOd1BmrMFahHwt2L3gFtsUyfE45IEaokrFbJYKB3HiTTO7fMu01rPdsA=="env.Config.License.PublicKey = "" // Leave empty to test embedded defaultdefer func() {