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
- If simple user is used, show its name in a message:
1
banner: "Hello, {{.authorization.entry.name}}!\n"
- 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
- Simple:
1
type: dummy
- With message:
1 2
type: dummy banner: "Hello, {{.authorization.idToken.name}}!\n"
Compatibility
linux |
windows |
---|---|
/ | / |