Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

582 B
Raw Blame
package dockeragent

import (
	"github.com/rcourtman/pulse-go-rewrite/internal/updatesignature"
)

// verifySignature checks if the provided binary data matches the signature
// using the trusted release public keys embedded into release builds.
func verifySignature(binaryData []byte, signatureBase64 string) error {
	return updatesignature.VerifyBytes(binaryData, signatureBase64)
}

// verifyFileSignature reads the file and verifies its signature.
func verifyFileSignature(path string, signatureBase64 string) error {
	return updatesignature.VerifyFile(path, signatureBase64)
}