Enable signature checking in beta and staging release channels
This commit is contained in:
@@ -28,6 +28,16 @@ var (
|
|||||||
BinarySigningTrustStore = jess.NewMemTrustStore()
|
BinarySigningTrustStore = jess.NewMemTrustStore()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// GetVerificationConfig returns the verification options based on the release channel.
|
||||||
|
func GetVerificationConfig(releaseChannel string) map[string]*updater.VerificationOptions {
|
||||||
|
switch releaseChannel {
|
||||||
|
case ReleaseChannelBeta, ReleaseChannelStaging:
|
||||||
|
return VerificationConfig
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
for _, signingKey := range BinarySigningKeys {
|
for _, signingKey := range BinarySigningKeys {
|
||||||
rcpt, err := jess.RecipientFromTextFormat(signingKey)
|
rcpt, err := jess.RecipientFromTextFormat(signingKey)
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ func start() error {
|
|||||||
UserAgent: UserAgent,
|
UserAgent: UserAgent,
|
||||||
MandatoryUpdates: helper.MandatoryUpdates(),
|
MandatoryUpdates: helper.MandatoryUpdates(),
|
||||||
AutoUnpack: helper.AutoUnpackUpdates(),
|
AutoUnpack: helper.AutoUnpackUpdates(),
|
||||||
|
Verification: helper.GetVerificationConfig(initialReleaseChannel),
|
||||||
DevMode: devMode(),
|
DevMode: devMode(),
|
||||||
Online: true,
|
Online: true,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user