System settings¶
Several global settings are available to be configured in Operations Center:
Network settings¶
Configuration |
Description |
Value(s) |
Default |
|---|---|---|---|
|
Address of Operations Center which is used by managed servers to connect |
https://address |
same as |
|
Address/port over which the REST API will be served |
address:port |
|
Security settings¶
Configuration |
Description |
Value(s) |
Default |
|---|---|---|---|
|
List of SHA256 certificate fingerprints belonging to trusted TLS clients |
list of strings |
|
|
OIDC configuration |
||
|
OpenFGA configuration |
||
|
ACME certificate renewal configuration |
OIDC¶
Configuration |
Description |
Value(s) |
Default |
|---|---|---|---|
|
OIDC issuer |
string |
|
|
OIDC client ID used for communication with OIDC issuer |
string |
|
|
Scopes to be requested |
string |
|
|
Audience the OIDC tokens should be verified against |
string |
|
|
Claim which should be used to identify the user or subject |
string |
OpenFGA¶
Configuration |
Description |
Value(s) |
Default |
|---|---|---|---|
|
API token used for communication with the OpenFGA system |
string |
|
|
URL of the OpenFGA API |
string |
|
|
ID of the OpenFGA store |
string |
ACME¶
Certificate renewal will be re-attempted every 24 hours, The certificate will be replaced if there are fewer than 30 days remaining until expiry.
Configuration |
Description |
Value(s) |
Default |
|---|---|---|---|
|
Agree to ACME terms of service. |
true/false |
false |
|
URL to the directory resource of the ACME service. |
string |
|
|
ACME challenge type to use. |
HTTP-01 or DNS-01 |
|
|
Domain for which the certificate is issued. |
string |
|
|
Email address used for the account registration. |
string |
|
|
Address and interface for HTTP server (used by HTTP-01). |
string |
|
|
Backend provider for the challenge (used by DNS-01). |
string |
|
|
Environment variables to set during the challenge (used by DNS-01). |
list of strings |
|
|
List of DNS resolvers (used by DNS-01). |
list of strings |
Note
Renewal of ACME certificates after a change of the configuration is happening asynchronously in the background. It may take some time until the new certificates are available.
System settings¶
Configuration |
Description |
Value(s) |
Default |
|---|---|---|---|
|
Log level for Operations Center logs |
string |
|
|
Scriptlet which is executed during server registration, see Server registration scriptlet below for details |
string |
Server registration scriptlet¶
The server registration scriptlet is a Starlark language (which is a subset of Python) scriptlet which is executed during server registration. It can be used to set properties of the registered server and perform additional actions against the server.
The entry point for the server registration scriptlet is the
server_registration function which takes a single argument candidate
which represents the server being registered.
Example:
def server_registration(candidate):
server.set_description("some description")
The functions available in the scriptlet are provided through different namespaces as follows:
Server namespace¶
Functions in the server namespace can be used to set properties of the server being registered:
Function |
Description |
|---|---|
|
Set the connection URL of the server being registered. |
|
Set the description of the server being registered. |
|
Set the name of the server being registered. |
|
Set the properties of the server being registered. Properties is a dictionary of string key-value pairs of type string. |
|
Set the update channel of the server being registered. Update channel is a string which should match the name of an existing update channel. |
IncusOS namespace¶
Functions in the incusos namespace can be used to get and set information (config, state) from the actual server being registered:
Function |
Description |
|---|---|
|
Add a non-primary application to the server. See the IncusOS documentation for the supported non-primary applications. |
|
Get the configuration of a service on the server being registered. Service is a string which identifies the service to get the configuration of, e.g. |
|
Get the state and configuration of a system resource from the server being registered. Resource is a string which identifies the resource to get, e.g. |
|
Set the configuration of a service on the server being registered. Service is a string which identifies the service to set the configuration of, e.g. |
|
Set the configuration of a system resource on the server being registered. Resource is a string which identifies the resource to set, e.g. |
|
Execute a command on the server being registered. Resource is a string which identifies the resource to execute the command on (e.g. |
Log namespace¶
The log namespace provides functions to log messages during server registration.
Function |
Description |
|---|---|
|
Add a log entry to operations-center’s log at error level. |
|
Add a log entry to operations-center’s log at info level. |
|
Add a log entry to operations-center’s log at warning level. |
Update settings¶
Configuration |
Description |
Value(s) |
Default |
|---|---|---|---|
|
Source is the URL of the origin, the updates should be fetched from |
string |
|
|
Certificate used to verify the signature of updates provided by |
string |
root certificate used to sign updates from default |
|
Filter expression to filter updates, see [update] for details |
string |
|
|
Filter expression to filter update files, see [update] for details |
string |
|
|
Default channel for updates, see [channel] for details |
string |
|
|
Default channel for servers/clusters, see [channel] for details |
string |
|