# Conflicts: # roles/web-app-akaunting/TODO.md # roles/web-app-friendica/meta/volumes.yml # roles/web-app-fusiondirectory/TODO.md # roles/web-app-keycloak/TODO.md # roles/web-app-lam/meta/volumes.yml # roles/web-app-phpmyadmin/meta/volumes.yml # roles/web-app-pixelfed/meta/volumes.yml # scripts/docker/cache/package.sh
Snipe‑IT
Description
Snipe‑IT is an open‑source asset management system designed to streamline hardware and software inventory tracking. This deployment provides an automated, containerized solution using Docker Compose, centralized MariaDB database integration, and secure, configurable environment settings, including robust SMTP email support and pending SAML authentication enhancements.
Overview
This Docker deployment uses Ansible automation to set up Snipe‑IT along with necessary services such as a MariaDB database, an optional OAuth2 proxy for additional security, and a reverse proxy configuration. The system is built for reliable asset management in various environments.
Features
-
Automated Deployment:
Launch Snipe‑IT quickly with Docker Compose and Ansible automation for a production‑ready platform. -
Centralized Database Support:
Leverage MariaDB for secure and reliable data storage. -
Configurable SMTP Settings:
Manage email notifications and alerts with customizable SMTP configurations. -
Trusted-Header SSO Bridge:
When the oauth2-proxy SSO flavor is active, Snipe-IT's nativeloginViaRemoteUser()is enabled via theSettingmodel (login_remote_user_enabled,login_remote_user_header_name = INFINITO_SSO_USER). nginx gates/loginthrough oauth2-proxy/Keycloak, injects the verifiedX-Forwarded-Preferred-Usernameheader and sends thesso_proxy_secretcredential asX-Infinito-Sso-Proxywith every request. Apache in the container copies the username into theINFINITO_SSO_USERserver variable only when that secret matchesINFINITO_SSO_PROXY_SECRET. Snipe-IT matches the username againstusers.username(the user must pre-exist and be activated — sync them via LDAP) to mint a nativesnipeit_session. Visitors without a matching activated user silently fall through to the normal login form (no error). The password/LDAP login form stays available as a fallback (login_common_disabled = 0), and the in-app logout is redirected to the central OIDC end-session URL. -
Optional SAML Authentication:
Prepare for enhanced, standards‑based authentication (integration pending). -
Redis Caching:
Improve application performance with built‑in Redis caching support.
Further Resources
- Snipe‑IT Official Documentation
- Mattermost SSO Integration Guide
- Additional GitHub Issues and Discussions
- Corporate design review: screenshots in light, dark, desktop and mobile
Persona contract opt-outs
Snipe-IT is entered through a trusted-header bridge: the oauth2-proxy authenticates against Keycloak and Snipe-IT's loginViaRemoteUser() mints a native session for the matching users.username row (see files/php/apply/sso_config.php). The gate declares no allowed_groups, so biber passes the proxy — but the role provisions only the administrator account (tasks/03_admin.yml), so the header carries a username Snipe-IT does not know and the visitor falls back to the native login form.
templates/playwright.env.j2 therefore declares PERSONA_BIBER_BLOCKED=true, while the administrator persona stays live (PERSONA_ADMINISTRATOR_BLOCKED=false) and exercises the full bridge end to end.