bifroest recording inspect
Verifies a local Recording artifact and emits its public metadata as one JSON object.
1 | |
Syntax
Arguments
file
file is a required local .bcast, .becast or signed .cast artifact. Content determines the format, not the extension. The input must be regular, non-symlinked and unchanged in identity, size, mode and modification time throughout inspection. Standard input is unsupported.
Flags
Includes general executable flags.
--expectedProducerId
string
Independent 64-hex producer trust anchor. A mismatch fails inspection; a matching value sets signature.trusted to true. Without this flag, inspection verifies self-consistency and reports signature.trusted: false. An artifact-embedded ID is not independent trust.
Output
One bifroest.session-recording-inspection/v1 JSON object; there is no --format flag. Invalid evidence produces no JSON result. Emitted signature.valid is always true, while signature.trusted records whether an independent matching producer ID was supplied.
Verification scope
- Clear
.bcast: full verification, including reconstructed Cast content, with verifiedstatusandcastDigest. - Encrypted
.becast: outer verification only.claimedStatusandclaimedCastDigestare signed outer-seal claims, not verified inner-Cast results.status,castDigestandcastare omitted. - Signed
.cast: full verification, with acastobject containing event counts rather than session metadata or reasons.
Format values are bcast/v1, becast-cbor/v1 and cast/v3. Native containers also report chunk count and claimed Cast size. Event payloads are not emitted, but public metadata still needs appropriate protection.
Output safety
Regular-file stdout must not refer to the inspected input. A shell > redirection can truncate a file before the command starts; see protected destinations.
Examples
Inspect an encrypted original and its full export
- Obtain a sealed
.becastoriginal and retain its producer ID independently using the encrypted evidence workflow. -
Inspect the copied original without a decryption key:
1bifroest recording inspect --expectedProducerId PRODUCER_ID session.becastThe result has outer scope and a signed
claimedCastDigest. 3. Fully verify and export with the matching local recipient key:1 2 3 4 5 6
bifroest recording export session.becast \ --expectedProducerId PRODUCER_ID \ --decryptionIdentityFile /srv/audit-keys/recipient-key \ --with-sensitive \ --output session.cast bifroest recording inspect --expectedProducerId PRODUCER_ID session.castThe exported Cast has full scope and a verified
castDigest. Compare that digest with the original's claimed digest. See the Recording format and native vectors for format details.
Availability
linux |
darwin |
windows |
|---|---|---|
| / | / | / |
Invocation modes
| Local CLI | @target |
Direct SSH |
|---|---|---|
This command inspects local files. For a configured repository or remote Recording ID, use recording show. For full verification of encrypted content, use recording verify.