Skip to content

Dummy environment

An environment created for demonstration purposes, it simply prints a message and exists immediately.

This feature is usually only makes sense for cases where you want to create dummy configurations of Bifröst to demonstrate some functionality, like we're utilizing it in our demonstration configurations: contrib/configurations/dummy-windows.yaml.

Configuration

type

Environment Type = "dummy"

Has to be set to dummy to enable the dummy environment.

banner

string Authorization = ""

Will be displayed to the user upon connection to its environment.

Examples

  1. If simple user is used, show its name in a message:
    1
    banner: "Hello, {{.authorization.entry.name}}!\n"
    
  2. If users authorized via OIDC is used, show its name in a message:
    1
    banner: "Hello, {{.authorization.idToken.name}}!\n"
    

exitCode

int64 Authorization = 0

After banner was printed to the user, the environment will exit with this code.

Examples

  1. Simple:
    1
    type: dummy
    
  2. With message:
    1
    2
    type: dummy
    banner: "Hello, {{.authorization.idToken.name}}!\n"
    

Compatibility

linux windows
/ /