Console resource
A Console resource is a named login to the Director with its own password and ACLs (or profiles). Users should have personal consoles instead of the Director’s password.
Examples
A personal console with a profile
Console {
Name = alice
Password = "[md5]5f4dcc3b5aa765d61d8327deb882cf99"
Profile = operator
}
The Onesimus GUI creates such consoles from its ACL matrix with configure add console.
Directives
| Directive | Type | Default | Summary | |
|---|---|---|---|---|
| Name | name | required | Name of the console. | |
| Description | string | Free text, for example who uses the console. | ||
| Password | password | required | Password of the console. | |
| Job ACL | ACL list | Which jobs this console may use. | ||
| Client ACL | ACL list | Which clients this console may use. | ||
| Storage ACL | ACL list | Which storages this console may use. | ||
| Schedule ACL | ACL list | Which schedules this console may use. | ||
| Pool ACL | ACL list | Which pools this console may use. | ||
| Command ACL | ACL list | Which console commands this console may use. | ||
| File Set ACL | ACL list | Which FileSets this console may use. | ||
| Catalog ACL | ACL list | Which catalogs this console may use. | ||
| Where ACL | ACL list | Which restore target paths (the where= of a restore) this console may use. | ||
| Plugin Options ACL | ACL list | Which plugin option strings a job may be started with this console may use. | ||
| Profile | resource list | Profiles whose ACLs this console gets in addition to its own ACL directives. | ||
| Use PAM Authentication | yes|no | no | Adds PAM on the Director host as a second step after the console login with its password: after the console login the Director asks for the PAM user and password. | |
| TLS Authenticate | yes|no | no | Use TLS only to authenticate the peer and switch back to an unencrypted connection afterwards. | |
| TLS Enable | yes|no | yes | Enable TLS for this connection. | |
| TLS Require | yes|no | yes | Refuse connections that do not use TLS. | |
| TLS Cipher List | string | OpenSSL cipher list for TLS 1.2 and older, colon separated. | ||
| TLS Cipher Suites | string | OpenSSL cipher suites for TLS 1.3, colon separated. | ||
| TLS DH File | path | PEM file with Diffie-Hellman parameters for the DH key exchange of TLS 1.2. | ||
| TLS Protocol | string | Restricts the TLS protocol versions in OpenSSL syntax, for example to forbid old versions. | ||
| TLS Verify Peer | yes|no | no | With certificate based TLS: check the peer’s certificate against the CA and, for a server, against TLS Allowed CN. | |
| TLS Ca Certificate File | path | PEM file with the CA certificates used to verify the peer’s certificate. | ||
| TLS Ca Certificate Dir | path | Directory of hashed CA certificates (as made by openssl rehash), an alternative to TLS CA Certificate File. | ||
| TLS Certificate Revocation List | path | PEM file with a certificate revocation list; certificates on it are refused. | ||
| TLS Certificate | path | PEM file with the own certificate for certificate based TLS. | ||
| TLS Key | path | PEM file with the private key of TLS Certificate. | ||
| TLS Allowed CN | string list | Common names a peer certificate may carry; others are refused when TLS Verify Peer is on. |
Name
Key: name · Type: name · Required
Name of the console. Users log in with this name and its password; it should be personal so that ACLs and the audit log mean something.
Console {
Name = "alice"
}
In the console:
configure add console name=alice password=[md5]5f4dcc3b5aa765d61d8327deb882cf99 profile=operator
Description
Key: description · Type: string
Free text, for example who uses the console.
Console {
Name = alice
Description = "Operator console"
}
In the console:
configure add console name=alice password=[md5]5f4dcc3b5aa765d61d8327deb882cf99 profile=operator description="Operator console"
Password
Key: password · Type: password · Required
Password of the console. “[md5]” followed by the MD5 hash of the password is accepted, so the clear text need not be in the file. Since TLS-PSK uses it as key, the console’s configuration must use the same password.
Console {
Name = alice
Password = "[md5]5f4dcc3b5aa765d61d8327deb882cf99"
}
In the console:
configure add console name=alice profile=operator password=[md5]5f4dcc3b5aa765d61d8327deb882cf99
Job ACL
Key: jobacl · Type: ACL list
Which jobs this console may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
Console {
Name = alice
Job ACL = backup-web, restore-files
}
Client ACL
Key: clientacl · Type: ACL list
Which clients this console may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
Console {
Name = alice
Client ACL = web-fd, db-fd
}
Storage ACL
Key: storageacl · Type: ACL list
Which storages this console may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
Console {
Name = alice
Storage ACL = File
}
Schedule ACL
Key: scheduleacl · Type: ACL list
Which schedules this console may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
Console {
Name = alice
Schedule ACL = WeeklyCycle
}
Pool ACL
Key: poolacl · Type: ACL list
Which pools this console may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
Console {
Name = alice
Pool ACL = Full, Incremental
}
Command ACL
Key: commandacl · Type: ACL list
Which console commands this console may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. A console that may use restore needs the dot commands the restore uses as well (for the GUI: .api, .help, .bvfs_* or .ovfs_*). On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
Console {
Name = alice
Command ACL = status, list, llist, restore, .api, .help
}
File Set ACL
Key: filesetacl · Type: ACL list
Which FileSets this console may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
Console {
Name = alice
File Set ACL = LinuxAll
}
Catalog ACL
Key: catalogacl · Type: ACL list
Which catalogs this console may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. A console that may use no catalog cannot list jobs or volumes. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
Console {
Name = alice
Catalog ACL = MyCatalog
}
Where ACL
Key: whereacl · Type: ACL list
Which restore target paths (the where= of a restore) this console may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. An empty list forbids every where= other than the job’s own; *all* allows any path. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
Console {
Name = alice
Where ACL = /tmp/bareos-restores
}
Plugin Options ACL
Key: pluginoptionsacl · Type: ACL list
Which plugin option strings a job may be started with this console may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.
Console {
Name = alice
Plugin Options ACL = python:module_name=bareos-fd-local-fileset
}
Profile
Key: profile · Type: resource list
Profiles whose ACLs this console gets in addition to its own ACL directives. Several profiles may be listed. The Onesimus configure add console requires at least one profile.
Console {
Name = alice
Profile = "operator"
}
In the console:
configure add console name=alice password=[md5]5f4dcc3b5aa765d61d8327deb882cf99 profile=operator
Use PAM Authentication
Key: usepamauthentication · Type: yes|no · Default: no · Values: yes, no
Adds PAM on the Director host as a second step after the console login with its password: after the console login the Director asks for the PAM user and password. PAM logins work over the classic console protocol, not over gRPC. The ACLs come from the User resource named like the PAM user. Bareos refuses PAM consoles that have ACLs or a profile of their own.
Console {
Name = alice
Use PAM Authentication = no
}
TLS Authenticate
Key: tlsauthenticate · Type: yes|no · Default: no · Values: yes, no
Use TLS only to authenticate the peer and switch back to an unencrypted connection afterwards. The data then travels in clear text, so this is meant for networks that are protected otherwise. Bareos’ default TLS-PSK setup does not need it.
Console {
Name = alice
TLS Authenticate = no
}
TLS Enable
Key: tlsenable · Type: yes|no · Default: yes · Values: yes, no
Enable TLS for this connection. Since Bareos 18.2 TLS is on by default and uses TLS-PSK with the password of the resource, so no certificates are needed; set it to no only for peers that cannot speak TLS.
Console {
Name = alice
TLS Enable = yes
}
TLS Require
Key: tlsrequire · Type: yes|no · Default: yes · Values: yes, no
Refuse connections that do not use TLS. With the default (yes) a peer without TLS cannot connect; set it to no only during a migration from very old clients.
Console {
Name = alice
TLS Require = yes
}
TLS Cipher List
Key: tlscipherlist · Type: string
OpenSSL cipher list for TLS 1.2 and older, colon separated. Leave it empty to use the OpenSSL defaults; restrict it only when a security policy demands specific ciphers.
Console {
Name = alice
TLS Cipher List = "PSK-AES256-GCM-SHA384:PSK-AES128-GCM-SHA256"
}
TLS Cipher Suites
Key: tlsciphersuites · Type: string
OpenSSL cipher suites for TLS 1.3, colon separated. Empty means the OpenSSL defaults.
Console {
Name = alice
TLS Cipher Suites = "TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256"
}
TLS DH File
Key: tlsdhfile · Type: path
PEM file with Diffie-Hellman parameters for the DH key exchange of TLS 1.2. Without it, ephemeral DH ciphers are not offered; ECDHE and PSK ciphers do not need it.
Console {
Name = alice
TLS DH File = "/etc/bareos/tls/dh2048.pem"
}
TLS Protocol
Key: tlsprotocol · Type: string
Restricts the TLS protocol versions in OpenSSL syntax, for example to forbid old versions. Empty means the OpenSSL default.
Console {
Name = alice
TLS Protocol = "-ALL, +TLSv1.2, +TLSv1.3"
}
TLS Verify Peer
Key: tlsverifypeer · Type: yes|no · Default: no · Values: yes, no
With certificate based TLS: check the peer’s certificate against the CA and, for a server, against TLS Allowed CN. It has no effect with TLS-PSK.
Console {
Name = alice
TLS Verify Peer = yes
}
TLS Ca Certificate File
Key: tlscacertificatefile · Type: path
PEM file with the CA certificates used to verify the peer’s certificate. Needed for certificate based TLS when TLS Verify Peer is on (or use TLS CA Certificate Dir).
Console {
Name = alice
TLS Ca Certificate File = "/etc/bareos/tls/ca.pem"
}
TLS Ca Certificate Dir
Key: tlscacertificatedir · Type: path
Directory of hashed CA certificates (as made by openssl rehash), an alternative to TLS CA Certificate File.
Console {
Name = alice
TLS Ca Certificate Dir = "/etc/ssl/certs"
}
TLS Certificate Revocation List
Key: tlscertificaterevocationlist · Type: path
PEM file with a certificate revocation list; certificates on it are refused.
Console {
Name = alice
TLS Certificate Revocation List = "/etc/bareos/tls/crl.pem"
}
TLS Certificate
Key: tlscertificate · Type: path
PEM file with the own certificate for certificate based TLS. Goes together with TLS Key.
Console {
Name = alice
TLS Certificate = "/etc/bareos/tls/bareos-dir.pem"
}
TLS Key
Key: tlskey · Type: path
PEM file with the private key of TLS Certificate. Keep it readable for the daemon user only.
Console {
Name = alice
TLS Key = "/etc/bareos/tls/bareos-dir.key"
}
TLS Allowed CN
Key: tlsallowedcn · Type: string list
Common names a peer certificate may carry; others are refused when TLS Verify Peer is on. Repeat the directive for several names.
Console {
Name = alice
TLS Allowed CN = "client1.example.com"
}
See also: configuration reference, configure, show