Files
vantage/shared/license/keys.go
T
mrhid6 eb8b85ccfe
Server Deploy / deploy (push) Successful in 2m21s
fix(server): add the lk go.sum entry the workspace was masking
go build inside the Docker image runs outside the workspace, so server/go.sum
needed the hyperboloide/lk entry that GOWORK resolution was supplying locally.
Caught by the image build, not by go build.
2026-07-24 15:35:01 +01:00

25 lines
664 B
Go

package license
import (
"fmt"
"github.com/hyperboloide/lk"
)
var trustedPublicKeys = []string{
// Production signing key, generated 2026-07-24. Index 0 is current.
"AS6Z4XBXF7HPTOMBUK47SWHPROAGOSBIW5ZZZHTLCA6FHMYSHCCTV3S6AIN6DOB6VKMHMTLRIWPSBAZ2FOHJV3A6NLOCWGEO2VA7KYGSG62SILEFA4SNJ7VWDDIVZZM4ZU4VJVE22LESH72STAAVIDYI77WA====",
}
func publicKeys() ([]*lk.PublicKey, error) {
out := make([]*lk.PublicKey, 0, len(trustedPublicKeys))
for i, s := range trustedPublicKeys {
k, err := lk.PublicKeyFromB32String(s)
if err != nil {
return nil, fmt.Errorf("trusted public key %d is malformed: %w", i, err)
}
out = append(out, k)
}
return out, nil
}