Manage a Bifröst host remotely
This Linux example adds a dedicated management flow alongside a local-account workload flow. Workload and administration events go to different audit logs. The management connection can inspect metadata without downloading signed evidence.
Start with an installed Bifröst host, a local account allowed to use the workload flow, and a separate SSH key for administrator login. The paths below assume the host configuration uses /etc/engity/bifroest and /var/lib/engity/bifroest. Other platforms have different defaults.
Examples
Configure remote administration
-
Provision the administrator's public login key in
/etc/engity/bifroest/management_authorized_keys. Keep the corresponding private key on the workstation as~/.ssh/bifroest-management. Make the server file readable by the Bifröst service user and writable only by the administrator responsible for configuration. -
Configure two audit logs and two flows:
Bifröst host: /etc/engity/bifroest/configuration.yaml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
auditlogs: workload: identityFile: /etc/engity/bifroest/workload-signing-key directory: /var/lib/engity/bifroest/workload-audit recording: enabled: true directory: /var/lib/engity/bifroest/workload-recordings administration: identityFile: /etc/engity/bifroest/administration-signing-key directory: /var/lib/engity/bifroest/administration-audit recording: directory: /var/lib/engity/bifroest/administration-recordings flows: - name: administration auditlog: administration requirement: includedRequestingName: ^management$ authorization: type: simple rememberMe: allowedAndEnabledByDefault entries: - name: management authorizedKeysFile: /etc/engity/bifroest/management_authorized_keys environment: type: management - name: local auditlog: workload requirement: excludedRequestingName: ^management$ authorization: type: local rememberMe: allowedAndEnabledByDefault environment: type: local name: "{{.authorization.user.name}}" portForwardingAllowed: falsemanagementselects only the administration flow. Other requesting names can use local-account authorization. Journal and Recording paths are separate, and each auditlog has its own signing identity. The default strict failure policy applies. -
Restart Bifröst using the host's service manager. On first start with empty repositories, Bifröst creates the configured signing keys and storage. Retain existing identity and repository files on subsequent starts.
-
Obtain the host's SSH public key through a trusted provisioning channel and install its matching
known_hostsentry on the workstation. Add a login alias:Administrator workstation: ~/.ssh/config 1 2 3 4 5
Host bifroest-admin HostName bifroest.example.org User management IdentityFile ~/.ssh/bifroest-management UserKnownHostsFile ~/.ssh/known_hostsReplace the hostname with the actual host. The integrated client requires an already trusted host key; it does not accept an unknown key automatically.
-
Inspect the server from the workstation:
Administrator workstation 1 2 3 4
bifroest @bifroest-admin flow ls bifroest @bifroest-admin flow show administration --format=yaml bifroest @bifroest-admin audit ls bifroest @bifroest-admin audit events administration --limit=20Settings are redacted and original downloads are disabled. The default management permissions also allow session control; use an explicit
accessobject to restrict operations.
Find a workload session and its Recording
-
Using a standard SSH client and an allowed host account, open a workload shell:
Workload terminal 1ssh alice@bifroest.example.orgReplace
alicewith the actual requesting username. Leave this shell open for the next step. -
Inspect that session from the administration workstation:
Administrator workstation 1 2
bifroest @bifroest-admin session ls --flow=local --user=alice --format=json bifroest @bifroest-admin session show SESSION_UUIDReplace
SESSION_UUIDwith an ID from the listing. The flow filter excludes the administration session itself. -
In the workload shell, print a marker and exit:
Workload terminal 1 2
printf 'recording-check\n' exit -
Find the sealed Recording and inspect its metadata:
Administrator workstation 1 2
bifroest @bifroest-admin recording ls workload --limit=20 bifroest @bifroest-admin recording show workload RECORDING_UUID --format=jsonUse the returned Recording UUID, which is distinct from the session UUID. Listing order is by Recording ID, not start time; use the reported timestamps when choosing a Recording.
-
The same metadata query is available through a standard SSH client:
Administrator workstation 1ssh management@bifroest.example.org 'recording ls workload --limit=20'Supply the appropriate OpenSSH identity or agent for this separate connection. Direct SSH executes a management command and does not open a host shell.
Disconnect or dispose of a workload session
Find the workload session with session ls, then choose one action:
-
Close its current SSH and browser connections but keep the session reusable:
1bifroest @bifroest-admin session disconnect SESSION_UUID -
Revoke it, disconnect it and run its configured cleanup:
1bifroest @bifroest-admin session dispose SESSION_UUID
Disposal can remove containers, Pods or managed accounts and home directories, depending on the environment. This example grants sessions.disconnect and sessions.dispose through the default access object. A command cannot target its own executing management session. See disconnect and dispose for details and failure behavior.
Browser alternative
Enable HTTPS as in Browser access. Publish the administration flow with discoverAsSlug: Admin and requirement.http.includedSlug: '^Admin$', keeping its existing requesting-name requirement.
- Open
https://bifroest.example.org/#Admin, choose SSH key and sign in asmanagementwith the workstation's login key. - Choose Sessions, filter for the workload flow and open the desired session.
- Choose Disconnect connections or End session and confirm the exact target. These perform the same operations as the CLI commands above.
This example permits public browser event queries and Recording metadata, but not original downloads or playback. For controlled downloads and local decryption, follow encrypted evidence.
Next steps
- Verify encrypted evidence on a workstation enables controlled artifact transfer and keeps decryption local.
- Remote-access reference documents SSH agents, custom settings and permissions.
- Management environment properties describe the server-side access controls.