Skip to content

HTTP connection

Provides browser terminals, management and SSH tunnels over HTTP/TLS, plus a login page for OIDC Authorization Code.

This connection type is optional and disabled by default; see Browser access for a setup example.

Workload links use browser fragments, such as /#Shell or /#alice@Shell; see access links and hidden Slugs. Slugs are sent in API request bodies, never in API paths or query strings. Public discovery uses POST /api/v1/discovery with {"slug":"Shell"}. Only / serves the workspace document; workload and management targets remain in its fragment.

Configuration

These properties belong to the root http block. domains and tls are required when HTTP is enabled.

enabled

bool = false

Enables HTTPS. There is no unencrypted HTTP fallback.

webUi

Controls the browser workspace and its API independently of SSH tunnels and the login page.

sshTunnel

Controls SSH over HTTPS and WSS, without requiring a WebUI login or a direct SSH listener.

loginFlow

Controls the OIDC login page and its required endpoints independently of the workspace.

addresses

[]Net Address = [":443"]

Addresses to listen on; at least one is required when enabled.

domains

[]Host

Accepted host names or IP addresses, without schemes, ports, paths or wildcards. Each needs a matching TLS certificate. Flow requirements can restrict this list further.

tls

TLS

Existing certificates, ACME, or self-signed TLS for local testing; see TLS.

startupTimeout

Duration = "2m"

Maximum startup time, including certificate acquisition. Must be greater than zero.

readHeaderTimeout

Duration = "10s"

Timeout for reading request headers and initial request bodies. Must be greater than zero.

idleTimeout

Duration = "1m"

Idle HTTP keep-alive timeout, not the session lifetime or terminal keepalive interval. Must be greater than zero.

gracefulShutdownTimeout

Duration = "30s"

How long to wait for HTTP requests during shutdown. 0s closes them immediately. SSH tunnels use the SSH shutdown grace.

maxHeaderBytes

uint32 = 1048576

Maximum request-header size in bytes, from 1 to 16777216 (16 MiB).

rememberMe

Controls how long an explicitly remembered browser can remain unused.

assetsDirectory

File Path = ""

Override bundled browser files with local files. Missing files use the bundled version. Keep this directory separate from private service storage; changes to its root require a restart.

customCss

CSS files loaded after the built-in styles, in the listed order.

Example
1
customCss: [custom/brand.css]

customJs

JavaScript files loaded after the built-in scripts, in the listed order. Only load trusted code: it has the same access as the application.

For example, set the workspace title before the application mounts:

custom/brand.js
1
2
3
addEventListener('bifroest:configure', ({ detail }) => {
  detail.title = 'Operations';
});

customHtmlHead

string = ""

Trusted HTML appended to the document head, not a file path.

Example
1
customHtmlHead: '<meta name="application-name" content="Operations">'

customHtmlBody

string = ""

Trusted HTML appended to the document body, not a file path.

WebUI

These properties belong to http.webUi.

enabled

bool = true

Enable the browser workspace and its API. Disabling it does not disable SSH tunnels or the OIDC login page.

SSH tunnel

See SSH over HTTPS with OpenSSH and curl for client setup and connection examples.

These properties belong to http.sshTunnel.

enabled

bool = true

Enable the SSH tunnel for native clients. Existing SSH authentication, host-key verification, SSH flow requirements, limits, auditing, SFTP and forwarding policies apply. Browser-only flows do not grant SSH access.

Transport admission additionally allows at most 1024 simultaneous tunnels, with at most 64 per direct peer IP. Lower SSH limits still apply; forwarded headers do not replace the peer address.

Login flow

These properties belong to http.loginFlow.

enabled

bool = true

Enable the login page, its resources and required OIDC endpoints, including when http.webUi.enabled is false. OIDC Authorization Code requires this component; configurations that disable it are rejected.

TLS

TLS terminates directly at Bifröst; an HTTP reverse proxy must not terminate it instead. Existing certificates take priority over ACME.

Load balancers and instance routing

Browser access, pending logins and management confirmations belong to the instance that created them. A TCP/TLS load balancer must keep related HTTP requests and channels on that instance.

For SSH Authorization Code logins, coordinate persistence across SSH and HTTPS so browser approval and the IdP callback reach the instance holding the SSH login. Browser-cookie affinity alone cannot establish that relationship; use instance-specific login endpoints when these paths cannot be pinned together.

After a backend failure, the load balancer can route a new connection to a healthy instance, where the user signs in again. Bifröst sessions are not shared between instances. See HA deployment and recovery.

Configuration

These properties belong to http.tls.

dummy

bool = false

Generate a temporary self-signed certificate for local testing. Cannot be combined with existing certificates or ACME.

Warning

Use trusted certificates or ACME for production, not dummy TLS.

certificates

PEM certificate/key pairs covering the configured domains.

acme

Optional automatic certificate issuance and renewal. Disabled by default.

Certificate

Each entry in http.tls.certificates has these properties.

certificateFile

Local PEM certificate-chain file.

privateKeyFile

Local PEM private-key file, separate from SSH and audit keys. Do not put the key itself in the configuration.

ACME

The configured DNS names must resolve to Bifröst, with public TCP port 443 reaching it directly. IP addresses and wildcard certificates are not supported by ACME.

Configuration

These properties belong to http.tls.acme.

enabled

bool = false

Obtain and renew certificates for domains not covered by existing certificates.

acceptTerms

bool = false

true means you accept the terms of the ACME directory, you defined via directoryUrl. In case of Let's Encrypt you can find them at https://letsencrypt.org/repository/. This is mandatory, when ACME is enabled.

email

string = ""

Optional contact email address, without a display name.

directoryUrl

URL =

"https://acme-v02.api.letsencrypt.org/directory"

Certificate authority's HTTPS directory. A staging service can be used for testing; its certificates are not browser-trusted.

storage

File Path = "<os specific>"

Persistent private directory for ACME account and certificate keys. Preserve it across restarts and keep it separate from public assets and other service storage.

Default settings
linux darwin windows
/var/lib/engity/bifroest/http/acme /Library/Application Support/Engity/Bifroest/http/acme C:\ProgramData\Engity\Bifroest\http\acme

RememberMe

The authorization's RememberMe setting controls saved access. One non-exportable signing key is shared within this browser profile and origin; permissions remain separate. Resumption requires current authorization and a valid session. Use Log out to revoke saved access.

Configuration

idleTimeout

Duration = "6h"

Maximum inactivity of saved browser access; a successful resume resets it. Must be greater than zero. Shorter session limits still apply.

Examples

Enable HTTPS with ACME for your existing flows:

1
2
3
4
5
6
7
8
http:
  enabled: true
  domains: [bifroest.example.org]
  tls:
    acme:
      enabled: true
      acceptTerms: true
      email: operator@example.org

To expose only SSH over HTTPS/WSS, keep the HTTPS configuration above and set ssh.enabled, http.webUi.enabled and http.loginFlow.enabled to false. Leave http.sshTunnel.enabled at its default of true.

Compatibility

linux darwin windows
/ / /

Browser access requires JavaScript, WebAssembly and WebCrypto; saved access also requires IndexedDB. Private-key import supports PEM/OpenSSH keys up to 64 KiB, not PPK, encrypted PKCS#8 or hardware keys. Native SSH tunnels do not require a browser.

SSH-key browser login also enforces the configured SSH key restrictions, including the subject and CA keys of user certificates.

Browser artifact downloads are limited to 64 MiB per artifact; use the CLI for larger files. Browser terminals provide shells; use SSH for SFTP and port forwarding.

curl transport capabilities

Use a current, security-maintained curl build with HTTPS support; WebSocket streaming also requires WSS support. Hover over or activate each asterisk for the expected version's test coverage.

Transport Minimum version
HTTPS streaming (HTTP/1.1) 8.15.0 Expected minimum version 8.15.0, not a verified lower bound. Tested with curl 8.18.0 on Linux (OpenSSL) and curl 8.22.0 on Windows (Schannel, via WSL interop). macOS has not been tested natively.
WebSocket streaming (WSS) 8.16.0 Expected minimum version 8.16.0, not a verified lower bound. Tested with curl 8.18.0 on Linux (OpenSSL), including real SSH and simultaneous binary transfers. curl 8.22.0 on Windows (Schannel) failed concurrent duplex and is unsuitable for SSH over WSS. macOS has not been tested natively.