Configuration
Bifröst will be configured in the YAML language.
By default, the configuration is taken from the following location:
- Linux:
/etc/engity/bifroest/configuration.yaml - macOS:
/Library/Application Support/Engity/Bifroest/configuration.yaml - Windows:
C:\ProgramData\Engity\Bifroest\configuration.yaml
This location can be changed by the --configuration=<path> flag when executing:
bifroest run --configuration=/my/config.yaml
Properties
ssh
Defines how the SSH connections itself will behave.
http
Configures optional HTTPS browser access. Disabled by default. A startup failure in any enabled SSH or HTTPS endpoint prevents the service from starting.
session
Defines where and how the sessions inside Bifröst are handled.
flows
[]Flow
Defines which flows are evaluated for user sessions.
environments
Map<Environment>
Reusable environments keyed by name. Each value is an inline object with type
and that environment's settings, not a reference or a wrapper. The map key names
the definition; do not add a definition-name field inside it.
Provider settings such as a local account's name or a Kubernetes Pod's name
retain their usual meaning; they do not rename the definition.
authorizations
Map<Authorization>
Reusable authorizations keyed by name. Each value is an inline object with type
and that authorization's settings, without a separate definition-name field.
A flow selects exactly one authorization, either inline or by name, not a list
or a chain of providers.
For both maps, a default entry is optional and never created automatically.
Omitting a flow's corresponding setting, or setting it to null or '', uses
that map's default if defined; otherwise the setting is required. Explicit
references to unknown names are configuration errors.
auditlogs
Map<Audit log>
Audit logs keyed by name, with their settings directly in each value. A defined,
selected logger is active; there is no audit-log enabled setting. A flow with
an omitted, null or empty auditlog uses auditlogs.default if defined,
otherwise it has no audit logging or recording. No default logger is created
implicitly. Unknown explicit references are configuration errors.
monitoring
Configures a separate, optional listener for Prometheus metrics and startup, readiness and liveness probes. Disabled by default.
housekeeping
Defines how Bifröst will clean up its sessions and connections.
alternatives
Defines how the imp (if needed) behaves to help to bridge context boundaries, for example to enable port-forwarding into an OCI container.
startMessage
string Core = ""
If defined this message will be displayed in the log files of Bifröst on startup.
Examples
-
Simple:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
ssh: addresses: [ ":22" ] # ... http: # ... session: type: fs # ... flows: - name: local # ... environments: # ... authorizations: # ... auditlogs: # ... monitoring: # ... housekeeping: # ... alternatives: # ... startMessage: "" -
Local-account host configuration
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
## Host service for an existing local account on Linux, Windows or macOS. ## Local authentication uses the platform default. flows: - name: local authorization: type: local rememberMe: allowedAndEnabledByDefault environment: type: local name: "{{.authorization.user.name}}" ## If you only want to allow user with group "ssh" to log in, uncomment the following lines: ## Unix only: Windows users have no primary group. #loginAllowed: | # {{ or # (.authorization.user.group.name | eq "ssh" ) # (.authorization.user.groups | firstMatching `{{.name | eq "ssh" }}` ) # }} -
Reusable Docker configuration with OpenID Connect authorization
This example is using the Docker environment with OpenID Connect authorization.
Configure the HTTP endpoint separately to publish1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
environments: docker: type: docker image: alpine authorizations: default: type: oidcDeviceAuth rememberMe: allowedAndEnabledByDefault issuer: https://login.microsoftonline.com/my-great-tenant-uuid/v2.0 clientId: my-great-client-uuid clientSecret: very-secret-secret scopes: - openid - email - profile - offline_access flows: - name: docker environment: docker # authorization is omitted: uses authorizations.default discoverAsSlug: docker requirement: http: includedSlug: '^docker$'/docker. Without anauditlogs.defaultentry or an explicit flow selection, this example does not log audit events or record sessions.To also accept
/bla-blaas an alias, useincludedSlug: '^(docker|bla-bla)$'while keepingdiscoverAsSlug: docker. A tab opened through/bla-blakeeps that URL scope when selected; it is not rewritten to/docker.