Bareos WebUI Vue
The Vue-based Bareos WebUI is a new single-page application located in
webui-vue/.
It was introduced as a technical preview in Bareos 25.1.
Starting with Bareos 26, it is the default interface selected by the
bareos-webui package name. The classic PHP-based
Bareos Webui remains available separately.
Coexistence with the classic WebUI
The current Bareos documentation distinguishes between two WebUI variants:
Bareos Webui documents the classic PHP-based WebUI.
This page documents the Vue-based WebUI.
The two interfaces are designed to exist in parallel. In a typical Apache deployment they use separate URLs:
classic WebUI:
/bareos-webuiVue WebUI:
/bareos/
Note
The default Apache configuration shipped with the Vue WebUI redirects
/ and the former /bareos-webui-new/ URL to
/bareos/.
The Vue WebUI uses the same Bareos Director console concepts as the classic
WebUI, so user access still depends on properly configured
Console (Dir) resources and matching ACLs.
Architecture overview
The Vue WebUI consists of:
the static SPA bundle installed below
/usr/share/bareos-webui-vuean Apache configuration that exposes the bundle below
/bareos/the bareos-webui-proxy service, which accepts both HTTP session requests and WebSocket connections and forwards them to the Bareos Director
The default Apache configuration proxies both /bareos/ws and
/bareos/api/ to bareos-webui-proxy on port 9104.
The HTTP endpoints are used for session login, restore, and logout, while the
WebSocket endpoint is used for the interactive director connection.
By default, bareos-webui-proxy starts without an explicit config
file. If /etc/bareos-webui-proxy/bareos-webui-proxy.ini exists, it is
loaded. Otherwise built-in defaults are used.
The package ships a default template
bareos-webui-proxy.ini in the Bareos config template directory
(for example /usr/lib/bareos/defaultconfigs/), so administrators can
copy and adapt it into /etc/bareos-webui-proxy/ when needed.
When --config is used explicitly, the given file must exist.
Every configuration file, with or without PAM settings, must meet the
Configuration file access rights requirements. Missing implicit configuration
still uses built-in defaults.
Installation and access
The Vue WebUI is installed separately from the classic PHP WebUI via the
bareos-webui-vue package and keeps its own Apache configuration file
bareos-webui-vue.conf. In Bareos 26, installing
bareos-webui selects the Vue WebUI.
The classic PHP WebUI package is named bareos-webui-php; its URL and
installation directory remain unchanged.
After installation, open the WebUI at:
https://HOSTNAME/bareos/
To use it successfully, ensure that:
the Vue WebUI bundle is installed
the Apache configuration for
/bareos/is enabledbareos-webui-proxy is installed and running
the HTTP and WebSocket proxy targets on port 9104 are reachable from Apache
suitable Bareos Director console credentials exist
The Vue package includes example Director console and limited profile
resources in /usr/lib/bareos/defaultconfigs/bareos-dir.d/.
To use the console example, copy it to
/etc/bareos/bareos-dir.d/console/admin.conf without overwriting an
existing resource, replace the password placeholder with a unique, strong
password, and reload the Director.
The example uses the Director’s default TLS-PSK settings.
HTTPS configuration
Use HTTPS to protect console credentials and other WebUI traffic. Configure a trusted certificate and enforce HTTPS at the web server or reverse proxy; HTTP is not automatically disabled or redirected.
For Apache, enable mod_headers so the packaged X-Forwarded-Proto
directive takes effect and the proxy can mark HTTPS session cookies
Secure.
SELinux and AppArmor
If Apache cannot reach the proxy, check SELinux/AppArmor audit logs and
adjust the relevant policy. On SELinux, check
httpd_can_network_connect. Do not disable either security system.
Upgrading from Bareos 25
For package migration and upgrade instructions, see WebUI package migration to Bareos 26. If the PHP WebUI is installed, upgrade it together with the Vue package so the package manager can transfer ownership of the example configuration files.
Upgrading existing installations
Warning
Configuration access rights are now enforced for every existing proxy
configuration, including configurations without PAM settings. Previously
accepted modes such as 0644 for the INI file or 0775 for its
containing directory prevent the upgraded proxy from starting, making the
Vue WebUI unavailable.
Before upgrading an installation with an active configuration file, check the
proxy service account and apply the ownership and 0640/0755 permissions
described in Configuration file access rights. Apply this to
/etc/bareos-webui-proxy/bareos-webui-proxy.ini, or the file selected by
--config, and its immediate containing directory. Preserve the existing
configuration contents; replacing the file with the shipped template is not
required.
If the upgrade has already completed, correct the access rights before restarting bareos-webui-proxy. Use the journal troubleshooting commands in Configuration file access rights if startup fails. Installations without an active implicit configuration file are unaffected and continue to use built-in defaults.
Configuring multiple directors
By default, bareos-webui-proxy connects to a single local Director. To make multiple Directors selectable in the WebUI, copy the shipped config template into place and add one section per Director:
cp /usr/lib/bareos/defaultconfigs/bareos-webui-proxy.ini \
/etc/bareos-webui-proxy/bareos-webui-proxy.ini
Set ownership and permissions as described in Configuration file access rights before starting the proxy.
Then edit /etc/bareos-webui-proxy/bareos-webui-proxy.ini:
[listen]
address = localhost
port = 9104
[bareos-dir]
address = localhost
[site-b]
address = dr.example.com
director_name = bareos-dir
Each section name (e.g. bareos-dir, site-b) is shown as a selectable
Director in the WebUI login and scope menu.
For available options, including director_name, see
Director section options.
After changing the config, restart the proxy:
systemctl restart bareos-webui-proxy
Once logged in to multiple Directors, the scope menu at the top of the page allows switching between them or viewing data from all Directors at once.
[listen] section options
Option |
Default |
Description |
|---|---|---|
|
|
Address the proxy binds to. |
|
|
Port the proxy listens on. |
|
|
Minimum log level: |
|
|
Minutes of inactivity before a session is invalidated. |
|
|
Maximum session lifetime in hours regardless of activity. |
|
|
Maximum concurrent connections that have not yet completed login. |
[<director>] section options
Option |
Default |
Description |
|---|---|---|
|
|
Hostname or IP address of the Bareos Director. |
|
|
Port the Bareos Director listens on. |
|
(section name) |
Real Director name as announced in the greeting banner. Set this when the section name differs from the Director name. |
|
|
Set to |
|
(unset) |
Name of the Director Console resource used for PAM authentication.
Set together with |
|
(unset) |
Shared password of the PAM Console resource, stored only on the proxy. Users enter their individual PAM passwords, not this secret. |
PAM login
Users log in through the normal Vue username/password form using their individual PAM credentials. Administrators configure the shared Console credentials on the proxy, so users never need to know or submit them.
On the Director, configure a PAM-enabled Console and a User resource for each permitted PAM user:
Choose a Profile appropriate for that user’s permissions. Configure the
bareos PAM service on the Director host, including authentication and
account rules, as described in Pluggable Authentication Modules (PAM).
On the proxy, add both Console settings to the corresponding Director section:
[listen]
address = localhost
port = 9104
[production]
address = director.example.org
director_name = bareos-dir
tls_psk_disable = no
pam_console_name = PamConsole
pam_console_password = "<shared-console-secret>"
The Console name/password must match the Director resource. In configuration
values, # and ; start comments unless the value is enclosed in double
quotes. In quoted values, escape a literal double quote as \" and a
backslash as \\; other escapes are invalid. Only whitespace or a comment
may follow the closing quote. In unquoted values, double quotes are invalid and
backslashes are literal and do not escape comment markers. Section names have
no quoting syntax, so # and ; also start comments there.
Both settings must be nonempty; an incomplete pair or disabled TLS-PSK prevents
proxy startup. A Console without UsePamAuthentication = yes cannot be used
for this login mode.
Select production in the Vue login form, then enter alice and Alice’s
PAM password. The Director authenticates Alice and applies her User/Profile
permissions. Interactive PAM prompts and MFA conversations are not supported.
Directors without the PAM settings continue to use Console name/password
login. Reconnects use the user’s credentials retained in proxy session memory;
logout or session expiry removes them.
Configuration file access rights
Restrict the INI file to administrators and the proxy service account
(mode 0640 or stricter, with the proxy’s effective service group).
The containing directory may have mode 0755 or stricter: group and other
users may list and traverse it, but must not have write access. Its group does
not need to match the service group. Both file and directory must be owned by
root or the proxy’s effective user. The file must have no other-user access
or group write access. Executable configuration files and special mode bits
on either the file or directory are rejected. If file group access is enabled,
the group must match the proxy’s effective group.
These checks are enforced before parsing every configuration
file, even without PAM settings; unsafe permissions prevent startup.
Starting without an implicit configuration file still uses built-in defaults.
For the usual bareos service group:
chown root:bareos /etc/bareos-webui-proxy
chmod 0755 /etc/bareos-webui-proxy
chown root:bareos /etc/bareos-webui-proxy/bareos-webui-proxy.ini
chmod 0640 /etc/bareos-webui-proxy/bareos-webui-proxy.ini
Check the installed service’s account before choosing ownership:
systemctl show bareos-webui-proxy -p User -p Group
The proxy exits with a fatal error for unsafe configuration access rights. The message
identifies the file or directory, its current octal mode and numeric owner/group,
the failed requirement, and the recommended chmod 0640 or chmod 0755
fix. Ownership/group errors also report the permitted service UID/GID.
For example, a world-readable INI produces an unsafe configuration file
error with mode 0644 and chmod 0640. A group- or world-writable directory
produces unsafe configuration directory and chmod 0755.
Neither message includes the Console password.
If the service cannot open the file or directory at all, the error instead reports the affected path and operating-system reason, with a reminder to check the service’s read/search permissions. Inspect service errors with:
journalctl -u bareos-webui-proxy -n 50 --no-pager
Configuration files and their immediate containing directory must not be symbolic links. The loader checks permissions on the opened file and directory, not a separate filename lookup. Non-PAM files have the same requirements. Do not place the file in the SPA’s static directory. Restart bareos-webui-proxy after editing it. Use HTTPS between the browser and web server as well as TLS-PSK between the proxy and Director.
What is already available
The Vue WebUI covers important day-to-day workflows, including:
login with Bareos console credentials
PAM login with server-configured Console credentials
dashboard views
job overview and job details
restore workflows, including plugin restore options
client, fileset, schedule, storage, and volume views
Director status and message views
a console popup for command execution
multi-director capable views where supported by the page
Known differences and current limitations
Compared to the classic PHP WebUI, the Vue WebUI should currently be viewed as a parallel implementation under active development.
Important differences are:
documentation and operational guidance are still catching up
some workflows are intentionally presented differently than in the classic WebUI instead of being a 1:1 port
the Vue WebUI depends on bareos-webui-proxy, which is a separate runtime component
Further information
For developer-oriented details, see WebUI Vue.