The AUDIT-SP collector (rebrand of the logpile collection tool) now stamps
raw_export.json with format "audit.raw-export.v1" instead of
"logpile.raw-export.v1" and ships a raw_export.sig alongside it, which broke
import entirely ("no parser found for this archive format").
- accept both format strings when parsing a raw-export bundle
- for the audit format, verify raw_export.sig (Ed25519, 64 bytes) against the
exact bytes of raw_export.json using a trusted public key embedded in the
binary (keys/audit-signing-public.pem); raw_export.sha256 is not consulted
- reject bundles with duplicate raw_export.json or raw_export.sig entries
- import proceeds even if the signature is missing or invalid, but the result
is marked unverified rather than silently trusted
- expose GET /api/signature-status and show a "Signed" badge in the header
when the signature verifies
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
14 lines
484 B
Go
14 lines
484 B
Go
// Package keys embeds the trusted public key material LOGPile ships with,
|
|
// so it is baked into the binary rather than read from the filesystem at
|
|
// runtime.
|
|
package keys
|
|
|
|
import _ "embed"
|
|
|
|
// AuditSigningPublicKeyPEM is the Ed25519 public key (SubjectPublicKeyInfo,
|
|
// PEM-encoded) used to verify the signature AUDIT-SP attaches to
|
|
// raw_export.json in its "audit.raw-export.v1" format (raw_export.sig).
|
|
//
|
|
//go:embed audit-signing-public.pem
|
|
var AuditSigningPublicKeyPEM []byte
|