bifroest recording export
Verifies a Recording and exports its exact signed asciicast v3 stream.
1 | |
Syntax
Arguments
auditlogName
Configured auditlog name for repository selection. Used together with recording-uuid, locally or through @target.
recording-uuid
Recording UUID returned by recording ls for the selected auditlog.
file
One local .bcast, .becast or signed .cast file, as an alternative to repository selection. Format detection uses file content, not its extension. Standard input is unsupported. File inputs cannot be combined with @target.
Flags
Includes all general flags.
--expectedProducerId
string
Independently trusted 64-hex producer ID for copied or downloaded evidence. X-ExpectedProducerId provides the client's default. The local name-and-UUID selector uses its configured signing identity and does not accept this flag. Unavailable over direct SSH. See producer trust.
--configuration
Local repository configuration; defaults to the platform path. Cannot be combined with a file input, @target or direct SSH.
--with-sensitive
bool = false
Required before opening the input for every format and destination. Recording exports are complete and never redacted.
--allowUntrusted
bool = false
Explicitly accept cryptographic self-consistency without trusted producer identity. Cannot be combined with an expected producer ID or configured local repository selection. Unavailable over direct SSH.
--decryptionIdentityFile
Local SSH private key for encrypted .becast; repeatable. Ed25519 and RSA identities are supported; the key must match the signed recipient fingerprint. X-RecordingPrivateKey provides the client's default. Keys stay on the CLI machine. Unavailable over direct SSH.
--output
File Path = "-"
Destination file or - for stdout. The immediate parent must already exist. Named output is published only after successful verification and destination checks. In @target mode, the file is on the CLI machine. Direct SSH writes stdout and does not accept this flag.
--force
bool = false
Replace an existing named output with the complete verified export. Protected inputs and key files remain protected. Unavailable over direct SSH.
Output
The signed asciicast v3 stream, including captured terminal, stdout and stderr content. Encrypted .becast is decrypted and fully verified before plaintext is published. Clear .bcast and signed .cast need no decryption key. There is no --format selector.
The local input must be a regular, non-symlink file; changing it during export can cause the command to fail. The server does not automatically create plaintext Cast or JSONL copies.
Examples
Export a Recording from the local repository
- Generate a Recording with the recording guide.
- Find its UUID with
recording ls. -
Export to a separate path outside managed storage:
1 2 3 4
bifroest recording export \ --with-sensitive \ --output session.cast \ default RECORDING_UUID
Export and independently inspect encrypted evidence
- Configure encryption, producer pinning and local keys using the workstation guide.
-
Download, verify and export the selected original:
1 2 3 4
bifroest @bifroest-admin recording export \ --with-sensitive \ --output session.cast \ evidence RECORDING_UUID -
Independently inspect the exported Cast with the same trusted producer ID:
1bifroest recording inspect --expectedProducerId PRODUCER_ID session.castPRODUCER_IDis the independently retained 64-hex value. The exported Cast's verifiedcastDigestcan be compared with the encrypted original's signedclaimedCastDigest; seerecording inspect.
External playback
Use an external player supporting asciicast v3 and unknown comment lines to play the exported file. The plaintext Cast is sensitive; its signature remains independently verifiable. Delivery targets retain sealed originals at <producer-id>/<recording-uuid>.<suffix>, which can also be copied for offline export with an independent producer ID.
For playback directly in Bifröst, use the separate recording play command.
Availability
linux |
darwin |
windows |
|---|---|---|
| / | / | / |
Invocation modes
| Local CLI | @target |
Direct SSH |
|---|---|---|
Local invocation supports configured repositories and copied files. Remote export requires access.recordings.download. Direct SSH exports clear Recordings to stdout with --with-sensitive; encrypted content requires the client with a local private key.