Skip to content

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

2 watching

Forks

Repository files navigation

opsi-webgui

License: AGPL-3.0 Documentation Blog Nuxt 4 TypeScript

OPSI-WebGUI is the official browser-based management interface for OPSI, the open-source client management system.

Manage clients, deploy software, configure servers, inspect logs and perform administration tasks directly from your browser without installing additional software.

In the client-agent deployment dialog, pressing Enter in the password field starts deployment with the same validation as the deployment button.

Hover-opened action menus close immediately when you click or move keyboard focus outside them, so they do not block result dialogs or notification actions.

Opening a client action menu checks the effective opsiclientd.event_timer.active configuration. The timer-event action is enabled when at least one selected client has it set to true; inactive clients are skipped.

The Show results icon in the topbar lists running client-agent deployments and failures from the current page session; it is hidden when neither exists. Deployment details open when a run starts. If left open, a successful request displays its output without a toast and remains visible until closed, but is not saved in the topbar list. If the details are hidden at completion, success only shows a toast that disappears automatically after five seconds. Failures remain in the topbar list and trigger a notification with Show result. Move to background hides running or failed details without cancelling deployment; Close dismisses the result. Opening an existing entry does not start another deployment. Errors can be closed individually or together with Close errors, while running entries are retained until they finish. Results are kept only in memory and disappear on a full page reload or logout. Live deployment output is not available.

OPSI-WebGUI clients overview

Install

Package manager

sudo apt update && sudo apt install opsi-webgui
sudo systemctl restart opsiconfd

Access the OPSI-WebGUI at https://<SERVER>:4447/addons/webgui/app.

Manual addon upload

Download opsi-webgui.zip and upload it via the opsiconfd admin interface at https://<SERVER>:4447/admin/#addons.

Updating this way sometimes does not work. On the opsi-server delete /usr/lib/opsiconfd/addons/webgui. This way, the version in /var/lib/opsiconfd/addons/webgui will be used.


Development

Clone this repository and open it in Visual Studio Code with the Remote Containers extension installed. The development environment will be started automatically in the devcontainer.

Devcontainer quick start:

  1. Open the repository in VS Code.
  2. Reopen in Container.
  3. Wait until container initialization has completed.
  4. Run all project commands inside the container under /workspace.

Testing

The project uses a unified test approach covering:

  • Frontend unit tests (Vitest)

    • utility and composable logic
    • security guardrails
    • performance tests for large data components
  • Backend integration tests (pytest)

    • API behavior against real backend services
    • security validation
  • Frontend E2E tests (Playwright)

    • functional workflows
    • visual regression
    • accessibility validation
    • documentation and marketing screenshots

Unified E2E Testing (Playwright)

The shared UI test runner is frontend/tests/e2e/runner/runUITest.ts. The runner executes tests in Docker with a real opsiconfd backend and test data.

For each page it validates:

  1. Functional behavior

    • user interactions
    • navigation
    • forms
    • data loading
  2. Visual and accessibility checks

    • screenshot comparison and baseline updates
    • axe-core scans (WCAG 2.1 AA)

The generated screenshots are used for:

  • visual regression
  • documentation
  • marketing pages

Test Matrix

Chromium (merge requests) Firefox (nightly)
Locale DE DE + EN
Theme Light Light + Dark
Viewport Desktop Desktop + Mobile

The Firefox nightly matrix also generates documentation and marketing screenshots, available for download from the CI pipeline artifacts.

Running Tests Locally

Frontend Unit Tests

cd frontend
pnpm run test:unit
pnpm run test:unit:coverage

Security and performance tests:

pnpm exec vitest run tests/unit/security/
pnpm exec vitest run tests/unit/performance/

E2E Tests

scripts/dev-e2e.sh

The dev container loads its port settings from docker/.env. Use the wrapper instead of invoking Playwright directly: it selects the opsiconfd addon URL from OPSICONFD_PORT (default 4447). A direct Playwright run defaults to port 3000, which may not match the dev container. Use --live only when the Nuxt dev server is running; it targets ADDON_DEV_PORT (default 3000).

Run the Firefox locale/theme matrix locally with:

E2E_BROWSER=firefox E2E_PIPELINE_SOURCE=schedule scripts/dev-e2e.sh

Update visual baselines:

scripts/dev-e2e.sh -u

Backend Tests

cd docker/opsiconfd
uv sync
.venv/bin/python -m pytest /workspace/backend/tests -v

Contributing

Contributions are welcome! Please read this section before opening a pull request.

Workflow

  1. Fork the repository on GitHub.
  2. Create a feature branch from the default branch
  3. Make your changes inside the devcontainer to ensure a consistent environment.
  4. Run the relevant tests (see Testing) and make sure they pass.
  5. Open a pull request against the default branch with a clear description of the change and the motivation.

Reporting issues

Please open an issue on GitHub Issues with:

  • OPSI-WebGUI version (shown either in the bottom-left of the login page or in the top bar next to the OPSI-WebGUI logo after login).
  • Steps to reproduce
  • Expected vs. actual behavior

Security vulnerabilities

Do not open public issues for security bugs. Report them confidentially to security@opsi.org.

Translations

Translations are managed via Transifex: https://app.transifex.com/opsi-org/opsiorg/opsi-webguijson/

Completed translations are automatically included in future releases. If your language is missing or incomplete, contributions via Transifex are very welcome.


License

AGPL-3.0 Copyright (c) uib GmbH <info@uib.de>

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages