Architecture and data flows
The parts of Bugsoft Portal on your server, what goes between them, and how sign-in works.
Bugsoft Portal is one PHP application, without a framework and without Composer packages. It runs on your own server
behind Apache or nginx, with a database and a folder storage/. There is no central service of
Bugsoft. When Bugsoft hosts Bugsoft Portal for you, a trial included, you get the same parts in an isolated
environment of your own, with its own database, networks and keys, on servers in the EU (see the
data processing agreement for hosting).
The parts
Employee (browser, phone as an app) Bugsoft Connect (browser extension)
| HTTPS, session cookie | HTTPS, only to your own portal
v v
+-----------------------------------------------------------------------+
| Web server (Apache or nginx) + PHP 8.2 or newer |
| Bugsoft Portal: core + modules (tiles, passwords, calendar, |
| messages, assistant, statistics, admin) |
| | | | |
| v v v |
| Database storage/ .env |
| (SQLite or uploads, keys (Connect), APP_KEY, VAULT_KEKS,|
| MySQL/MariaDB) logs, backups DB and mail details |
+-----------------------------------------------------------------------+
| cron: php bin/console cron:run, every minute
v
Outgoing (only what you switch on): Microsoft · mail server · push services ·
AI service · websites for a tile icon
- Web server and PHP: every page and every API call. The application sets strict security headers
itself: a Content Security Policy with a nonce per request and Trusted Types, HSTS on HTTPS,
X-Frame-Options, COOP/CORP,Referrer-PolicyandCache-Control: private, no-store. - Database: all data. Passwords, notes and secret fields are encrypted. The rest (names, e-mail addresses, tiles, calendar, audit log) is stored readable. See What data.
storage/: uploaded icons, logos and photos with tasks, the signing key of Bugsoft Connect (storage/keys), the log files and (with SQLite) the backups..env: the keys and passwords of the installation. This file is outside the web folder and only readable by its owner (production:checkchecks both).- Cron: one task per minute does the maintenance: clean up sessions, the daily anchor of the audit log, summarise statistics, apply retention periods, make backups, send notifications.
The data flows
| What | From → to | What is sent |
|---|---|---|
| Using a page | Browser → Bugsoft Portal | The session cookie (only over HTTPS, not readable for JavaScript) and what the employee fills in. Every form and every API call has a CSRF token. |
| Sign-in | Browser → sign-in system → Bugsoft Portal; Bugsoft Portal → sign-in system | See Sign-in. With Microsoft Entra ID, Bugsoft Portal receives the profile (among other things name, e-mail address, job title, department, phone numbers, employee number, manager and the extension attributes) and the groups. Which fields Bugsoft Portal keeps is on What data Bugsoft Portal keeps. |
| Signing in to a website with one click | Browser → Bugsoft Portal → Bugsoft Connect → the website | Bugsoft Portal gives the extension a ticket that is valid once, for at most 60 seconds. With it, the extension fetches the user name and password from your own portal, and fills them in on that one website. See The Bugsoft Connect trust model. |
| A notification on the phone or PC | Bugsoft Portal → push service of the browser → device | An empty message: only "there is something new". The device then fetches the text from Bugsoft Portal itself. |
| An e-mail with an urgent message, reminder or task | Bugsoft Portal → your own mail server | The e-mail address, the title and the text of the message. Only if e-mail is set up (MAIL_*). |
| A question to the assistant | Bugsoft Portal → AI service | Only if the AI link is on: the question (words that look like a password are left out), the previous four questions and answers of the conversation, the language, and the names and descriptions of that person's apps. Employees see that the answer comes from an AI. |
| Fetching the icon of a website | Bugsoft Portal → that website | An ordinary request for the home page and the icon, without cookies or employee data. |
| Checking a password against data breaches | Bugsoft Portal → Have I Been Pwned (api.pwnedpasswords.com) | Only if an administrator switched it on (off by default): the first 5 characters of the SHA-1 fingerprint of the password, with padding. The comparison happens on the server; the password, the rest of its fingerprint and who it belongs to never leave it. |
The exact hosts, when they are used, and how to switch them off: Outbound connections.
Sign-in
- Microsoft Entra ID with OpenID Connect: the authorization code flow with PKCE (S256),
stateandnonce. The ID token is checked with Microsoft's keys (RS256). Only the tenants inENTRA_ALLOWED_TENANTS(by default the one ofENTRA_TENANT_ID) get in. Other sign-in systems work the same way with OpenID Connect, or with SAML 2.0 (Sign-in and sign-in systems). Bugsoft Portal keeps no passwords of employees. - Emergency account (break-glass), for when the sign-in system does not work: a password (Argon2id, or
bcrypt if PHP has no Argon2id) plus a code from an authenticator app (TOTP). A code only works once (protection against
replay), and failed attempts are slowed down. Create it with
php bin/console breakglass:create.BREAKGLASS_SKIP_TOTPis only for the first link;production:checkwarns as long as it is on. - Sessions are stored in the database. By default a session ends after 120 minutes without activity, and always after 12 hours (Settings › Sign-in and security › Signing out automatically). Administrators see and end sessions in Identities › Sessions.
- Confirm again (step-up): exporting your own passwords asks for a fresh sign-in at the sign-in system (the emergency account: password and code), at most 5 minutes old. Showing a password can also ask for this, depending on the setting.
- Shared PCs: on a shared account, an employee can link their personal account for a while. It unlinks by itself after 10 minutes without activity, and after 240 minutes at most.
Permissions
Who may do what is set by roles (such as super administrator, administrator, help desk, auditor) per organisational unit, and by Permissions per audience. An administrator can never hand out more permissions than they have themselves. Nobody can delete the last active super administrator or an emergency account. Every change goes into the audit log.
Stuck? See Questions and problems or contact Bugsoft at ugurs156@gmail.com.