# Changelog This file documents all notable changes made to ITFlow. ## [26.12.3] ### Upgrading to 26.12.3 Update from Maintenance > Update as usual - this release has two database changes: 4.2.2 adds a table for passkeys and a setting to turn them on or off, and 4.2.3 lets a document keep the Markdown it was written in. Nothing else is required: passkeys are on, and no one has one until they add it. A passkey is made for your ITFlow's address (the one in config.php) and only works there, over HTTPS - if you move ITFlow to a new address, everyone adds theirs again. ### New Features & Updates - Passkeys: agents and client portal contacts can sign in with a passkey - their fingerprint, face or PIN, with the passkey kept on their computer, their phone, a security key or their password manager - instead of their email and password. They add one, with their password, from Your account > Security (agents) or Your account in the client portal. Then they click Sign in with a passkey on the sign-in page, or pick it as the browser offers it in the email box. - Passkeys count as two-step sign-in: signing in with one doesn't ask for an authenticator code, and it meets a role's or the client portal's requirement for two-step sign-in. An agent who signs in with their password still needs their code as before. - Passkeys and credentials: a passkey that supports it (most current ones do) also opens an agent's credentials when they sign in with it. One that doesn't still signs them in, but usernames, passwords and 2FA codes are locked - the first one they open asks for their password, once, until they sign out. Each passkey in Your account > Security says which kind it is. - Admin > Settings > Security has a Passkeys switch, on. Off, passkeys already added are kept but don't sign anyone in until it's on again. - Resetting an agent's MFA (Admin > Users) or turning off a contact's two-step sign-in also removes their passkeys, for a lost or replaced device, and so do archiving an agent and resetting every agent's password. Agents and contacts are emailed when a passkey is added to or removed from their account, failed passkey sign-ins count towards the same lockout as passwords, and both show in the sign-in log. - Documents in Markdown: a document can be written in Markdown instead of the rich text editor - pick Markdown above the editor in New Document or Edit, write in the box, and Preview shows how it will look. Headings, lists, checklists, tables, code, quotes and links all work, and a picture pasted or dropped into the box is added to the document. Switching between Markdown and rich text converts what is already written, either way; switching to Markdown says when some formatting, such as colours or merged table cells, stays as HTML in it. New Document starts in whichever you used last. - Markdown files: the menu beside Upload on a client's Files has Import Markdown Files, which makes a document from each .md file picked, named by the heading it starts with or its file name. A document's page has a Markdown button beside PDF, which downloads it as a .md file - rich text documents too. - Markdown pasted into a document's rich text editor - copied from GitHub, VS Code, Obsidian or an AI chat - goes in as formatting. Ctrl+Shift+V pastes it as it is. ### Bug Fixes - Documents created or edited through the API no longer get extra backslashes added before quotes and line breaks, and changing only a document's name through the API no longer changes what it says. ### Developer Updates - Database 4.2.2: user_passkeys (each passkey's credential id and the SHA-256 of it to find it by, its public key, signature count, AAGUID, transports, whether it is synced, and for an agent a copy of the vault key sealed by the passkey's PRF output - AES-256-GCM under HKDF-SHA256, bound to the credential), users.user_passkey_handle (the random WebAuthn user handle) and settings.config_login_passkeys. - WebAuthn is checked by report-uri/passkeys-php 2.0.1 (MIT) in libs/webauthn - Report URI's maintained fork of lbuchs/WebAuthn 2.2.0, whose upstream is dormant, with the fixes from their penetration test: only attestation none (the other attestation formats' code is gone), cross-origin requests and Token Binding refused, the backup flags and the credential id's length checked, and the RP ID matched on a dot boundary. User verification is required, and the origin is still matched exactly against config_base_url, scheme and port included. functions/passkey.php holds the challenges (session, five minutes, single use), registration, the sign-in check and the vault copy. - Signing in: login_passkey.php answers the options and checks the browser's answer (JSON), then login.php's passkey_login step signs them in through its usual success path - the same as after a two-step code, session regeneration and new-device email included. js/passkey.js draws the button, offers passkeys in the email box (conditional mediation, never retried in a loop) and runs the add forms. - A locked vault: vaultLocked() and vaultUnlock(), with get_credential_via_id and get_totp_token_via_id in agent/ajax.php answering {locked}, and js/credentials.js opening the Unlock window (includes/footer.php). New calls: passkey_create_options and vault_unlock in agent/ajax.php; add_your_passkey and delete_your_passkey for agents; passkey_create_options, portal_passkey_add and portal_passkey_remove in client/post.php. The password checks for adding a passkey and unlocking are limited to five wrong ones in ten minutes per account (Password Failed). - $_SESSION['signed_in_with'] ('passkey' or 'password') lets includes/load_user_session.php and client/includes/check_login.php leave MFA enforcement out for a passkey sign-in. - generateUserSessionKey() reads config.php by its own path, so it works from agent/ as well as the root folder. - Database 4.2.3: documents.document_markdown and document_versions.document_version_markdown (longtext, NULL for rich text). A Markdown document's document_content is still the HTML every page shows, rendered from it on each save, so readers are unchanged; documentMarkdownReady(), documentMarkdownSql() and documentMarkdownSet() keep the writers working before the update. - functions/markdown.php: markdownToHtml() (league/commonmark 2.10 GitHubFlavoredMarkdownConverter, raw HTML allowed and then passed through documentHtmlPurify(), task boxes drawn as spans, tables given the app's table classes, all in div.itflow-markdown), htmlToMarkdown() (league/html-to-markdown 5.2 with tables; tables with merged cells and sized pictures kept as HTML), markdownSaveImages(), markdownImportSplit() (front matter title, leading heading) and documentMarkdownFile(). Both libraries and their dependencies (league/config, dflydev/dot-access-data, nette/schema, nette/utils, psr/event-dispatcher) are in libs/vendor through libs/composer.json. - agent/ajax.php markdown_to_html and html_to_markdown back js/document_markdown.js (loaded in includes/footer.php): the form's Rich text / Markdown switch, Write / Preview, pasted pictures held as pasted:N until Preview or Save, the remembered format for New Document, and the Markdown paste handler for .tinymce and .tinymce-page editors. New handlers export_document_markdown and import_markdown_documents in agent/post/document.php; versions, version restore, documentCopy() and the API's document create and update carry the Markdown (document_markdown in the API), and the API's create and update escape each value once. ## [26.12.2] ### Upgrading to 26.12.2 Update from Maintenance > Update — Queue Update hands the job to cron, which updates the files and applies this release's four database changes (4.1.8 to 4.2.1) in the same pass. They add a table for the problems of instances you manage and two settings for which of them open tickets, and a table for each instance's history with columns for its usage, and make room for a credential's 2FA key to be kept encrypted. Nothing else is required - the 2FA keys already saved are encrypted the first time an agent opens ITFlow after the update, and each agent's copy of the credential vault's key is sealed more strongly the next time they sign in (see Security). If you manage other ITFlow installs, the manager and its instances can be updated in either order. An instance sends its check-ins encoded only once both are on this version, so a web application firewall in front of the manager may need its exclusion for check-ins until then. An instance shows its agents and error categories once it is updated. Each instance's history starts with its first check-in after the manager is updated - there is none from before - and its usage once the instance is updated too. ### Security - Credential vault: each agent's and API key's copy of the vault's key was sealed under a key worked out from their password that was only 64 bits long, so someone with a copy of the database could find it without going through the password's 100,000 rounds. Copies are now sealed with AES-256 under the full 256 bits of a 600,000-round key. Each moves to it by itself - an agent's the next time they sign in, an API key's on its next call that reads credentials - and Admin > Backup lists those still sealed the old way, with a button to retire them. Signing in, and an API call that reads or writes credentials, takes about half a second longer. - Signing in: between the password and the two-step code, or the choice between the agent and client portal, the vault's key was kept unencrypted in the server's session - and left there when the sign-in wasn't finished. It's now kept encrypted, the way a signed-in session keeps it. - Credentials: a login's 2FA secret key was stored as it was typed, while its username and password were encrypted, so anyone with a copy of the database could make its 2FA codes. It's now encrypted with the same vault key. The keys already saved are encrypted the first time an agent opens ITFlow after the update. Everything that uses the key works as before - the code on the credential, the Edit window, shared links, exports and the API, which gives it decrypted as it gives the password. A shared link made before 2.9.0 stops showing its 2FA code once the key is encrypted, as a guest has no vault to open it with. ### New Features & Updates - Managed Instances: problems on the instances you manage can open tickets. **Problem Tickets** on Admin > Managed Instances picks which - **Problems**, at High: an instance that has stopped checking in, cron not running, a failed update, a database update not applied, or a security update waiting on one that doesn't update itself; or **Problems and warnings**, which adds backups failing or none for three days and errors being logged, at Medium - and the category they get. A problem opens a ticket once it has lasted ten minutes, so a blip doesn't, on the instance's client or on your own client record when it has none. The ticket says what's wrong, with the instance's address, version and last check-in, what to look at, and a link to its page. The same problem again goes on its ticket while that's open, reopening it if it was resolved, and when it clears the ticket is resolved unless someone has written on it. A suspended instance, or a new one waiting for its cron job, opens none. Each problem under Health on an instance's page links to its ticket. Off until you turn it on. - Managed Instances: an instance's page has a History card - its agents against its seat limit, its clients, storage, uptime, errors and backups, a day at a time, over 30 days, 90 days or a year. Uptime counts the gaps of more than ten minutes between its check-ins, and lists each with when it started and how long it lasted. Errors list the categories they came under, and backups show as a strip of the days one was made, failed or wasn't. Over a year, errors, uptime and backups go by the week. It's kept for good, from the day you update. - Managed Instances: how much each instance is used. Its History card has a Usage part - tickets opened and resolved and those that came in by email, replies and notes by its agents, how many agents signed in each day and over the last 30 days, client portal sign-ins, invoices made and payments recorded, email sent and failed, and API calls with the keys that made the most of them - each day as the instance counts it, by its own date. The list has a Last 30 days column - tickets opened, how many of its agents signed in and when one last did, and API calls - and sorting by it puts the ones hardly used first. Only counts are sent, never what any of them say, and Managed By on the instance says so. - Managed Instances: an instance's page has an Agents card - who holds its seats, with each agent's name, email, role, whether they sign in with MFA and when they last signed in, then the invites waiting and the day each runs out. API accounts are marked. The support user takes no seat and isn't listed. Managed By, on the instance, lists this among what it tells its manager. - Managed Instances: errors logged on an instance now say which categories they were logged under, in its health line and under Errors today, where the count and each category sign you in to it as support on its App Logs, showing just those errors. Only how many there are under each category is sent - never what an error says, which can hold a client's email address or a ticket's subject. - Logs: the log settings - how long the audit log and app logs are kept, and sending them on to a syslog server or SIEM - are now a **Settings** tab under Admin > Logs, beside Audit Logs, Sign-ins and App Logs, instead of a page of their own in the Settings menu. Find a setting still finds them. - Payment reminders: a client with more than one late invoice gets one reminder for all of them, instead of one for each invoice on its own dates. It goes on the days of their oldest late invoice, on your reminder schedule, and lists everything they owe - each invoice with its link, the late ones marked, and the total - with the statement PDF attached when reminder emails attach PDFs. Texts send one reminder the same way. An invoice that goes late in between is in the next one, and an invoice's page shows when that is. A client with just one late invoice gets that invoice's own reminder, as before, and reminders before and on the due date are still one per invoice. When the monthly statement falls on the same day, the reminder goes in its place. ### Bug Fixes - Signing in: after a mistyped two-step code, the right one signed the agent in with the credential vault closed - every username and password showed blank until they signed out and back in. - Managed Instances: a manager behind a web application firewall - ModSecurity with the OWASP Core Rule Set, say - could answer an instance's check-ins with 403, as the cron command and error text in its report looked like an attack, and the instance's Managed By page said "The manager answered 403". Check-ins are now sent encoded, so nothing needs excluding. An instance sends them that way once its manager says it reads them, and a manager still reads a plain check-in, so either side can be updated first. - Racks: on a rack's drawing, clicking an asset opens its page, and the pen for editing it there - to move it or take it out of the rack - only showed while you pointed at it, at the far right. It was easy to miss, and on a touch screen it never showed. The pen is now always on each asset, in a holder's slot too when the slot is wide enough, and an asset's own page has Edit or remove under Rack, in Where & who. - Interfaces: adding several ports at once dropped the space at the end of the name before the number, so Port 01, Port 02 were made as Port01, Port02 - though the window showed them with the space. They are now made as the window shows them. - Statements: an invoice marked Paid whose payments came to less than its total was listed as still owed. A Paid invoice now counts as settled, as it does everywhere else. ### Developer Updates - Check-in encoding: `MANAGED_REPORT_ENCODING` (`base64url`). The manager's connect and check-in answers carry `report_encoding`, which the instance keeps in `config_managed`; from then `managedCheckin()` sends `{"report": , "auth": ...}`. `managerCheckin()` decodes `report` before storing it as before - 413 when it is over 360,000 characters, 400 when it isn't a JSON object - and still reads a plain report. - Error categories: `managedReport()` adds `errors_by_category` - up to ten `app_log_category` values of the day's errors with their counts, and none of their text. `managedInstanceErrorCategories($report)` reads them, most first, for `managedInstanceHealth()` and `admin/managed_instance.php`. `managedSupportLink($row, $name, $email, $page)` signs a page as `p`, which `managedVerifySupportToken()` returns only when it is `admin/` or `agent/` and a `.php` file with a plain query, and `login_support.php` redirects there. `managed_support_sign_in` with `to=errors` and `category` builds `admin/app_logs.php?view=error&category=`. An instance from before this ignores `p` and lands on its start page. - Agents: `managedReport()` adds `agents.list` - up to 500 active agents, not `managedSupportUserId()`, each with `name`, `email`, `role`, `mfa` (a `user_token` set), `service` (`user_service_account`, when `serviceAccountsReady()`) and `last_login` (the latest successful `Login` log), then up to 500 invites waiting and in date, with `invited` and `expires_at`. The manager's card shows them only when the report has `agents.list`. - Database 4.1.8: `settings.config_manager_ticket_level` (`''` off, `danger` or `warning`) and `config_manager_ticket_category_id`, and `managed_instance_issues` - one problem an instance had: `managed_issue_key`, `_tone`, `_text`, `_ticket_id` (0 until it opens one), `_created_at` and `_cleared_at`. Re-runnable. - `managedInstanceHealth()` issues are `[tone, text, key]` - the key stays the same while the text changes: `offline`, `waiting`, `cron`, `db_update`, `update_failed`, `update`, `security_update`, `backup`, `errors` and `seats`. - `managerIssueTickets()`, run by `cron/managed_instances.php`, records a key when it is first seen, opens a ticket once the row is `MANAGED_ISSUE_GRACE_MINUTES` (10) old and `managedIssueOpensTicket()` passes it at the level, deletes a row that clears before then, and clears the rest through `managedIssueCleared()`, which resolves the ticket unless `rmmTicketWorked()`. `managedIssueTicket()` puts a key that comes back on its last ticket that isn't closed, reopening it if resolved. A key still there but no longer watched at the level isn't taken as cleared, and the rows of an instance removed or disconnected are cleared without touching their tickets. It does nothing with the level off or ticketing off. `managerTicketsReady()`, `managerTicketLevels()` and `managerTicketSettings()` read the settings. - Tickets it opens have `ticket_source = 'Managed'`, with an icon in `ticketSourceIcon()`, wording on the ticket page and `managed` in `ticketMailNewTicketAddress()`. `managedInstanceIssueTickets($instance_id)` gives an instance's open ones by key for the Health card. The window is `admin/modals/managed_instance/managed_instance_tickets.php`, posting `edit_managed_instance_tickets`. - Database 4.1.9: `managed_instance_stats` - one row per instance per day, by the manager's date (unique on `managed_stat_instance_id`, `managed_stat_date`): `_agents`, `_invites`, `_seat_limit`, `_clients`, `_uploads_mb`, `_db_mb`, `_errors` (the report's `errors_24h`, which at the day's last check-in is that day's) and `_error_categories` (JSON), `_backup` (`ok`, `failed` or `''`), `_version`, `_checkins`, and `_outages` (JSON, each `from` and `to`). Re-runnable. - `managedStatsRecord($row, $report)`, from `managerCheckin()` with the row as it was before the check-in, upserts today's row - `_checkins` + 1, and a day's `ok` backup never going back to `failed` or `''` - puts a backup made before midnight but first reported after it on its own day, and appends a gap of more than `MANAGED_OFFLINE_MINUTES` since the last check-in to today's `_outages` (the last 50). `managedStatsReady()` guards it before the update. - `managedInstanceHistory($row, $days)` reads a period, from the first day there is: each day's figures, its `uptime` and minutes `down` from the gaps overlapping it - one going on now included, while the instance is connected - the gaps newest first, uptime over the period, backups made and failed, errors and their categories most first, and the storage unit (MB, or GB from 2 GB). `admin/managed_instance.php` draws it with `reportChart()` and `js/reports.js`, `?history=30`, `90` or `365`, grouping the bar charts and the backup strip by week over 120 days. The strip is `.itflow-history-strip` in `css/itflow_custom.css`. - Deleting a managed instance now deletes its `managed_instance_issues` and `managed_instance_stats` rows too. - Usage: `managedUsage()` counts the instance's today and yesterday, by its own date, with a `GROUP BY` of the day each - `tickets_opened` and `tickets_email` (`ticket_created_at`, `ticket_source = 'Email'`), `tickets_resolved`, `replies` (`ticket_reply_by > 0` and not `Client`), `invoices` (`invoice_created_at`), `payments` (`payment_created_at`), `agent_signins` (distinct `Login` `Success` log users, not the support user), `portal_signins` (`Client Login` `Success`), `emails_sent` and `emails_failed` (`email_queue` status 3 by `email_sent_at`, 2 by `email_failed_at`), and `api_calls` with `api_keys` - the ten keys' names with most calls, from `api_key_usage` - and `agents_30d`. A count that can't be made is left out. `managedReport()` sends it as `usage` (`days`, `agents_30d`, `measured_at`), counted at most every ten minutes and kept in `config_managed.usage` meanwhile. - Database 4.2.0: `managed_instance_stats` gets a column for each of `MANAGED_USAGE_FIGURES`, `_api_keys` (JSON) and `_agents_30d`, all NULL for a day nothing was reported. Re-runnable. `managedStatsRecord()` writes each of the instance's days onto the row of the same date, when it is there and within three days, and `_agents_30d` onto today's; `managedUsageReady()` guards it. `managedInstanceHistory()` adds each day's figures, `usage` (their totals, or null), `api_keys` and `agents_30d`, and the weekly view adds the figures up - `agent_signins` taking the week's highest day. - `admin/managed_instances.php` reads each instance's last 30 days in one query, and sorts by tickets opened in them as `usage_tickets` - a sort key keeps to letters and underscores, as `filter_header.php` strips anything else. The Health column wraps, so the table fits. - Payment reminders: `cron/nightly_tasks.php` gathers each client's late invoices and reminds them once, when `billingReminderOnDay()` is true for the oldest one's days late - `billingOverdueEmail()` from `billingStatement()` with two or more late, and the invoice's own reminder with one. Each invoice in it gets a `Reminder emailed` history line, so the once-a-day check still holds. `billingReminderNext()` returns `with_others` and counts late days from `billingReminderClientOldestDue()`. `smsClientOverdueNotify()` sends the combined text, and `billingStatementLines()` builds the invoice rows for statements and the combined reminder. - Vault key copies: `setupFirstUserSpecificKey()` writes `VAULT_WRAP_FORMAT` (`v2:`) and then base64 of a 16 byte salt, 12 byte nonce, 16 byte GCM tag and the ciphertext - AES-256-GCM under `hash_pbkdf2('sha256', ..., VAULT_WRAP_ITERATIONS (600000), 32, true)`, the prefix as AAD. `decryptUserSpecificKey()` reads both formats and keeps what it opened for the rest of the request, so an API call derives the key once. `encryptUserSpecificKey()` returns false when the session's vault doesn't open - `userSetPassword()` then writes no copy, and a new API key is refused. `vaultSignIn($user_id, $ciphertext, $password)` opens the copy, rewrites an old-format one (checked to open, and only over the value read) and starts the vault session; `apiDecryptPasswordOpens()` rewrites an API key's the same way. `vaultWrapIsLegacy()` and `vaultCopies()` (Admin > Backup) tell them apart, and `retire_old_vault_copies` (admin/post/backup.php) blanks the old ones, only for an admin whose own copy is current. - Sign-in steps: `login.php` opens the vault at the password step with `vaultSignIn()`, so the vault session is in place before the role choice or two-step code. `pending_dual_login` and `pending_mfa_login` carry `agent_vault` (whether it opened) instead of `agent_master_key`, a retried code keeps it, and going on as the client drops the vault session. - Settings pages: a `settingsPages()` entry with `'under' => ''` is a tab of that `adminNavGroups()` entry - `settingsPageStart()` draws the group's tabs above it with no link back to Settings, and it isn't in the Settings menu or overview. Find a setting gives where it is as that entry - "Logs › Settings › ..." - and the top bar search the same. Log Settings (`settings_logs.php`) is the first, under `logs`. - 2FA keys: database 4.2.1 makes `credentials.credential_otp_secret` `varchar(500)`. A key is stored as `CREDENTIAL_OTP_VAULT` (`vault:`) and then what `encryptCredentialEntry()` gives - store one with `credentialOtpEncrypt()` (false when the vault isn't open) or `apiCredentialOtpEncrypt()`, and read it with `credentialOtpSecret()` or `apiCredentialOtpSecret()`. A value without the prefix was saved before and is read as it is. `credentialOtpVaultStored()`, from `includes/check_login.php`, encrypts those once a session, 500 at a time. It runs only when `vaultSessionOpens()` (the session's master key decrypts to 16 characters), checks that each decrypts back, and writes it only over the value it read. `credentialOtpSeed()` refuses a seed over 256 characters, so an encrypted one always fits. Pre-2.9.0 credential shares, which read the key live, show no code for an encrypted key. ## [26.12.1] ### Upgrading to 26.12.1 Update from Maintenance > Update — Queue Update hands the job to cron, which updates the files and applies this release's six database changes (4.1.1 to 4.1.7) in the same pass. They add a column to RMM providers for the asset type each kind of device comes in as, three to rack items for devices side by side in a holder, the tables for phone systems, and two columns and two tables for network platforms, their networks and where devices plug in, and change nothing that is there. Nothing else is required. ### New Features & Updates - RMM Providers: Link to another asset, in the ⋮ menu on an asset's RMM card, links the device to the asset it really is - when it was matched to the wrong one, or came in as a new asset beside the one you'd entered for it. Pick the asset: it keeps its name and what you've entered, and gets what it's missing from the RMM straight away. Archive, ticked when the RMM made the asset the device had, archives that one, with Undo. Assets another device already has can't be picked. - RMM Providers: when an asset has nobody assigned and the person signed in to it is one of the client's contacts, its RMM card offers Assign with their name. The username is matched to the contact's email or name - RDG\mwhitfield, marla.whitfield and AzureAD\MarlaWhitfield are all Marla Whitfield - and nothing is offered when no contact matches or more than one could. Bulk Action > Assign Signed-in Users on the assets list does it for every asset ticked that has nobody assigned. - RMM Providers: a provider's Edit has Asset types - what desktops, laptops, servers and virtual machines come in as, so they can be your own types, such as a Workstation, instead of ITFlow's. Assets whose type the RMM set follow a change at the next sync; one whose type you changed keeps yours. A type of yours that is renamed is renamed here too. - RMM Providers: a client with devices in an RMM has a card for it on its overview, beside Assets - how many are online, offline and overdue, and how many need a reboot, have patches waiting or have checks failing. Each line opens those devices on the assets list, whose RMM filter now also shows the ones that need a reboot, have patches waiting or have checks failing. Devices overdue are counted under Needs attention too. - RMM Providers: Bring back is on the client's row on the RMM Clients page as soon as you delete an asset that came from the RMM, rather than after the next sync, and the message for deleting it says so. - API: assets read through the API come with asset_rmm - each of the asset's devices in an RMM, with its status, when it was last seen, who is signed in, its IPs, and whether it needs a reboot, has patches waiting or has checks failing. - RMM Providers: most of a client's devices gone from the RMM at once - three or more, and at least half of them - are kept as they were for a day instead of being marked gone straight away. That is far more often the RMM, or a change to what its API key can see, than the devices, and marking them gone dropped them from managed device counts on recurring invoices. The provider's row names the client and how many, and the sync shows as failed so it is noticed. Still missing after a day, they are marked gone. A client deleted in the RMM is treated the same way, and agents reinstalled all at once are still matched to their assets. - Racks: more than one device on a rack row - two Tiny PCs in a 1U bracket, eight PLCs on a shelf, the cards in a media converter chassis. Turn on Holds devices side by side on a rack item - a shelf, bracket or chassis, an asset or not - and say how many fit across. What is in it is drawn side by side in it, and past that many it wraps onto another row, for stacks. Click an empty slot to add something there, or pick the holder under Goes in when you add it. Drag an asset from Not racked yet or an item from the rack onto an empty slot, or a device to another slot, with Undo. Moving the holder moves what is in it, and removing it takes what is in it out of the rack too, after asking - the assets stay. An asset's page and the assets list show its slot, the page with a link to the holder when that is an asset - a server node to its chassis - and a holder's own page has Devices in it, listing what is in each slot. The client export and the API have slots too. - Phone Systems: Admin > Phone Systems takes FusionPBX - without its API or its database. FreeSWITCH, underneath it, sends ITFlow each call's record as it hangs up and asks ITFlow for caller ID names; the system's Setup window gives the lines to paste, with its own key in them. Each of its domains is linked to the client it is, with the client it looks like suggested. A call on a client's domain is that client's; on your own company's domain it goes to whoever called, from any client. - Calls: a new Calls page, on the menu and on each client, lists the calls with who they were with - matched to a contact by their number, or to a client by its main number - the extension and agent that took them, how long they talked, and whether they were missed or went to voicemail, with a link to the call's page in FusionPBX and its recording. A contact's page has a Calls tab, and the menu counts the calls missed today that aren't on a ticket. Add to Ticket puts a call on one of the client's open tickets, or a new one, as an internal note with its talk time as time worked. - Phone Systems: as a call rings, desk phones show the contact and their client - Marla Whitfield - Ravenwood Dental - when ITFlow knows the number, and the carrier's name otherwise. - Phone Systems: Yealink and Polycom desk phones report themselves as they start up and register - the Setup window has the lines for each - and become Phone assets of their domain's client, named after their extension, with their make, model, firmware, IP and MAC address. A client's asset that already has the phone's MAC address is used instead. The asset keeps up with new firmware and IP addresses, except for fields changed in ITFlow, and has a card saying whether the phone is registered and its line. The Domains page counts each domain's phones. - Screen pops: pick your extension under My desk phone in Your account > Preferences, and calls on your desk phone pop up at the bottom right of every page as they ring - the contact and their client, or the caller's name and number, with their open tickets and New Ticket (Quick Ticket, with the client and contact picked). Answered, it counts your talk time; ended, Add to Ticket puts the call on a ticket once its record is in, with the ticket you made for it picked. It comes from the phones, through the same Setup lines. - Network Platforms: Admin > Network Platforms brings in your clients' UniFi gateways, switches and access points as assets - from a controller you host, signed in to with a local view-only admin; from a UniFi console, with an API key made in UniFi Network; or from every console on your UI account through UniFi's Site Manager, with nothing to open up on the clients' networks. Link each site to its client and its devices come in, matched to the assets you have by MAC address, serial number or name, with their model, firmware, IP and MAC address kept up to date. An asset shows whether the device is online, how long it has been up, its public IP and whether a firmware update is waiting. It uses the same sync as RMM Providers, and its devices don't count as managed devices on recurring invoices. The password or API key is kept encrypted with this install's own key. - Network Platforms: a linked site's networks and VLANs come in as its client's networks - matched to the one with the same subnet, or made - with their name, type, VLAN, subnet, gateway, DNS servers and DHCP range. Each detail follows UniFi until you change it in ITFlow, and the network's page has a card for the platform. WAN connections, site-to-site VPNs and VLANs with no subnet stay out. A network deleted in ITFlow isn't made again until Bring back on its site's row. - Network Platforms: an asset UniFi sees on the network has a Connection card - the switch and port it's plugged into, or the access point and Wi-Fi network it's on, with its IP address, and whether it's connected now or when it was last seen there. A UniFi switch's or access point's card lists the client's assets on it by port. Only devices that are the client's assets - by a MAC address on one of their interfaces, or their name - are kept, not every phone on the guest Wi-Fi. Through an API key UniFi says the switch or access point but not the port. - Network Platforms: a UniFi device that goes offline can open a ticket on its asset - a gateway or switch High priority, an access point or anything else Medium - resolved when it is back online, unless someone has written on it. Turn it on with Alerts open tickets in the platform's Edit. A site whose gateway goes offline gets one ticket for the gateway, saying how many of its other devices went with it, and through Site Manager a console that is offline gets one too. ### Bug Fixes - RMM Providers: unlinking a client left its assets showing as still in the RMM - the dot on the assets list, the card on the asset, Take Control and the RMM filter, all with what the RMM said when it was unlinked - and they went on counting as managed devices on recurring invoices. Now they stay as they are but are no longer in the RMM, and each asset's history says its client was unlinked. A client you unlinked before this update is put right at the next sync. Link it again and its devices are matched back to the same assets. - RMM Providers: reinstalling a device's agent in Tactical - which gives it a new id there - brought it in as a second asset, even with the same serial number and name, and marked the first one as no longer in Tactical. Deleting the extra asset and using Bring back made it again. A reinstalled agent is now matched to the asset its old one had. If you already have an extra asset from this, open it and use Link to another asset in the ⋮ menu on its RMM card to link the device to the first one - it archives the extra asset. - RMM Providers: a device moved to another linked client in Tactical stayed with its asset at the first client, and that asset took the new client's location. It is now matched or made at the client it moved to. The first client's asset stays there, no longer kept up, and its history says where the device went. Devices that moved before this update are put right at the next sync. - RMM Providers: one server with many disks - more than 255 characters of them - stopped every sync of its provider with "Data too long for column 'asset_spec_value'", and as that client was always tried first, no client's devices were brought in again. A device's CPU and storage are now cut to fit, and a device that can't be saved for any other reason no longer stops the sync: the rest come in, and the provider's row names it. - RMM Providers: an answer from the RMM that wasn't a list - an error page sent as a success, or a change to its API - was read as a client with no devices, or an RMM with no clients, and everything in it would have been marked gone. It is now an error, and nothing is changed. - Pickers: as a page loaded, a picker's "nothing" choice showed as "- Anyone -" for a moment before it became "Anyone" - on the tickets list's filters and in pickers across the app and the client portal. It is "Anyone", in its quieter grey, from the start. - Lists: the date filter box - on tickets, invoices, quotes, expenses, the audit log and the rest - was empty as the page loaded, then filled in with All Time or its dates a moment later. It says so from the start. - Lists: the tabs along the top of the lists - Workstations, Network and Other on the assets list, a ticket's status, Admin > Users and the rest - and the tabs on an asset's, contact's or other record's page didn't change under the pointer. One that isn't picked now darkens its text when you point at it or tab to it. - Reports: switching Profit & Loss or Tax Collected to Quarterly changed the table but not the chart, which stayed by month - and Tax Collected opens on Quarterly. Quarterly now has a card for each quarter in place of the chart: income, expenses and net profit on Profit & Loss, and taxable sales, tax collected and net tax on Tax Collected, each with its change on the same quarter last year. The quarter under way says So far and is compared with last year's to the same date, and quarters still to come are dimmed. Monthly keeps its chart. ### Developer Updates - `rmmForgetClientDevices($rmm_client_id, $name, $why)` in `functions/rmm.php` deletes an RMM client's `rmm_devices` rows and adds an asset history line for each asset that is still there. Unlinking a client and linking it to another one both use it, and `rmmSync()` runs it for any of the provider's clients with `rmm_client_client_id = 0` that still have rows. - `rmmSync()` marks a client's unlisted devices removed before it saves the listed ones, and `rmmAssetMatch()` no longer counts a removed device as holding its asset, so a reinstalled agent (a new `remote_id`) is matched to the asset its old one had, and the old removed row is deleted. `rmmDeviceSave()` treats a device whose asset belongs to another client as new at this one, leaving that asset with a history line. - Database 4.1.2: `rmm_providers.rmm_provider_asset_types`, JSON of the type the sync guesses (`Desktop`, `Laptop`, `Server`, `Virtual Machine`) to the asset type to make it - NULL, or a kind it doesn't name, keeps the guessed type. Re-runnable. `rmmProviderAssetTypes($provider)` gives the four, falling back to the guessed type for one that no longer exists, and `rmmDeviceSave()` applies them before matching and following. `rmmProviderCheck()`, `rmmProviderWrite()` and `rmmProviderChangeLines()` take them from the window's `asset_types[...]`, and `assetTypeRenameEverywhere()` calls `rmmProviderAssetTypesRename()`. - `rmmDeviceLinkAsset($device, $asset_id)` relinks a device by hand: it refuses an asset of another client or one another live device of the provider has, deletes the provider's removed rows on the asset picked, resets `rmm_device_synced` to `[]` so the follow rule only fills what is empty, and writes both assets' history. The `rmm_link_asset` handler in `agent/post/asset.php` then runs `rmmSync()` for the device's RMM client and archives the old asset with `undoArchiveBefore()` when asked. `rmmDeviceById()` and `rmmDeviceLinkTargets()` feed `agent/modals/asset/asset_rmm_link.php`. - `rmmUserContact($client_id, $logged_user)` matches a signed-in user to exactly one unarchived contact by `rmmUserKey()` - the username after the last backslash and before any @, letters and digits only - against the contact's email local part, full name, first initial and last name, and first name and last initial. Generic accounts such as administrator are never matched. `rmmAssignUserContacts()` uses it through `assetQuickSet()` for the `bulk_rmm_assign_contacts` handler, and the card's Assign posts `rmm_assign_contact`. - `rmmClientSummary($client_id)` counts a client's unarchived assets with a live device by state, cached per request, for the client overview card and the Devices overdue item in `clientOverviewAttention()`. `agent/assets.php` has `rmm=reboot`, `rmm=patches` and `rmm=checks`. - `rmmAssetsDeleted($asset_ids)` sets `rmm_device_asset_id = 0` for deleted assets - single, bulk and API delete - so Bring back counts them at once. - `api/v1/assets/read.php` sets `$api_asset_rmm`, and `api/v1/read_output.php` adds `asset_rmm` through `rmmApiAttach()`. It picks device columns only - never the provider's key or secret. - `rmmSync()` saves each device in its own `try`, so a `Throwable` from one is a line in the note (the first five, with how many more) and the rest go on. `rmmDeviceAssetValues()` cuts `cpu` and `storage` to 255, the width of `asset_specs.asset_spec_value`, and `rmmAssetWrite()` cuts any detail to it too. - `rmmIsList()` - the Tactical kind's clients, devices and alerts answers must be JSON lists, or the call is an error. Another kind should do the same. - The sync's unlisted devices are held when at least `RMM_GONE_AT_ONCE` (3) of a client's live devices, and at least half, are missing from a whole list, until their `rmm_device_synced_at` - when they were last listed - is `RMM_GONE_HOLD_HOURS` (24) old. Held ids go to `rmmDeviceSave()` and `rmmAssetMatch()` as `$free`, so a reinstalled agent can still take an asset one of them has, deleting its row. Clients the RMM no longer lists stay in that clean-up while they have live devices, not only when first marked. The sync is `ok` false while any are held. - `rmmAlertsCleanup()`, from `cron/nightly_tasks.php`, deletes alerts cleared more than `RMM_ALERTS_KEEP_DAYS` (180) ago. Only open ones are read, so the minute's poll no longer scans every alert there has been. - `js/itflow_select_early.js`, loaded in the `` of `includes/header.php`, `client/includes/header.php`, `agent/client_onboarding.php`, `admin/getting_started.php` and `setup/index.php` (a file, as the portal allows no inline scripts), watches the page as it is parsed and takes the dashes off a `- None -` option of a `select.select2`, marking it `data-none="1"` - before the first paint, so the raw ``: in `js/itflow_select.js` a picker's `.anchor` puts the panel under that element, and closing fires `itflow:close`. With no `to`, the options are grouped by kind and their values are `type:id`. The link windows (`agent/modals/link/link.php` and its one-pair wrappers, `contact_link_asset.php`, `contact_link_credential.php`, `asset_link_credential.php`, `project_link_ticket.php`, `service_link_ticket.php`, `ticket_link_service.php`, `ticket_link.php`) and the handlers only they posted to (`link_items`, `link_tickets`, `link_service_tickets`, `link_ticket_services`, `link_ticket_to_project`, `link_contact_to_asset`, `link_contact_to_credential`, `link_asset_to_credential`) are gone; the unlink handlers stay. `js/ajax_modal.js` keeps a window's URL in `data-modal-url`, so a quick look loads again in place after a change, and `js/tab_fold.js` exposes `window.itflowTabFold()`. - Code boxes: `otpCodeInput()` in `functions/user.php` draws a 6-digit code field (options: id, label, class, autofocus, submit, invalid) and `js/otp_input.js` (loaded by `includes/footer.php`, `client/includes/footer.php`, `login.php`, `agent/user/mfa_enforcement.php` and `guest/share.php`) lays the one see-through input over six `.itflow-otp-slot` boxes - typing, paste and autofill go to the input, the boxes only show it. Non-digits are stripped (a pasted "123 456" fills them all), the caret stays at the end, a value set from script redraws them (the input's own `value` property), and the `is-invalid` class on the input turns them red until the next digit. `data-otp-submit` sends the form with `requestSubmit()` and its first submit button once the sixth digit is in; `window.itflowOtp(input)` does one added later. One with `autofocus` is focused (without scrolling) when its modal opens (`shown.bs.modal`), and on load when the browser skipped it - a page opened at a `#fragment`. `login.php` (agent and client steps), `agent/user/includes/mfa_setup.php`, `client/profile.php` and `guest/share.php` use it; `.itflow-mfa-code` is gone. - Autofill: `js/autofill_off.js` (loaded by `includes/footer.php` on agent and admin pages, not the guest portal) gives every input, textarea and select whose autocomplete is missing, `off` or `new-password` an unrecognised `autocomplete="itflow-none"` (Chromium offers no autofill or past entries for one, where it ignores `off` for names and addresses) - `new-password` on password fields, so the saved ITFlow login isn't offered - plus `data-1p-ignore`, `data-lpignore`, `data-bwignore` and `data-form-type="other"`, and marks it `data-autofill-off`. Fields added later are done by a `MutationObserver`, which also puts it back when a script sets `autocomplete="off"` again (`js/autocomplete.js`). Left alone: `current-password`, `username`, `one-time-code`, any other real autofill value, and anything inside `[data-autofill]` - `#profileForm` and `#passwordForm` in Your account. - First reply assigns: database 4.0.9 adds `settings.config_ticket_reply_assigns` (on to start with), read by `ticketReplyAssigns()` in `functions/ticket_fields.php` (on before the update). In `add_ticket_reply` (`agent/post/ticket.php`), a Public reply on a ticket with `ticket_assigned_to = 0` calls `ticketChangeAssignee($ticket_id, $session_user_id)` after the first response is set - so moving New to Open sends no "ticket assigned" message - with its internal note, history, audit and `ticket_assign` custom action. Bulk replies, AI notes and the no-response resolve leave the assignee alone. - Dates: `formatDate()`, `formatDateTime()` (with `$seconds` for logs), `formatTime()` and `formatDay()` in `functions/format.php` show a stored date or time (or a timestamp) as `M j, Y`, `M j, Y g:i A`, `g:i A` and `D, M j, Y`, and give '' for nothing or a zero date. Raw `Y-m-d` values printed on pages, windows, `includes/billing_paper.php`, `functions/billing_pdf.php` and the guest pages now go through them, as do the `title` hovers beside `timeAgo()`; `billingEmailDate()` calls `formatDate()`; the odd `date()` formats (`g:ia`, `M d, Y • g:i A`, `D j M`, `F j, Y`, `m/d/Y`, `M y` and the like) are the standard ones; `$config_date_format` is `M j, Y`; and the scripts' `toLocale*String()` calls pass `en-US` so they match. New code uses the helpers. - Messages: a note added to an asset or a contact sets its message with `flashAlert()`, its names escaped, rather than writing `$_SESSION['alert_message']` itself; the `archive_ticket_reply` and `archive_account` handlers offer Undo through `undoArchivedBefore()` / `undoOfferArchived()`; and the SLA list no longer builds the archive prompt's text. - Pickers: the 78 plain `` to the picker, so one set narrow inside an input group stays narrow. Every select in a window is the picker now - new ones should be too. - Money: the 51 places that called `numfmt_format_currency($currency_format, ...)` themselves - client and vendor lists and pages, payment and credit messages, the client portal's home, the guest card payment page, and the report, dashboard and search helpers - call `billingMoney($amount, $currency)`, the one formatter. Left as they are: `billingMoney()` itself, `reportMoneyWhole()` (whole amounts), the trip rate (more decimals) and the localization settings' sample. - Windows: submit buttons say Create on new-record windows and Save on edit windows; Add stays where a window adds existing things to the record it names. Every field `