mirror of
https://github.com/itflow-org/itflow
synced 2026-11-29 15:48:59 +00:00
Update changelog
This commit is contained in:
13
CHANGELOG.md
13
CHANGELOG.md
@@ -6,21 +6,27 @@ This file documents all notable changes made to ITFlow.
|
||||
|
||||
### Upgrading
|
||||
|
||||
Update from Maintenance > Update — Queue Update hands the job to cron, which updates the files and applies this release's one database change (3.5.4 to 3.5.5) in the same pass. Nothing else is required.
|
||||
Update from Maintenance > Update — Queue Update hands the job to cron, which updates the files and applies this release's one database change (3.5.4 to 3.5.5) in the same pass. Nothing else is required. Everyone is signed out once after the update, agents and client portal contacts alike - see Security. The new Payment Provider Fees job in Maintenance > Cron is set up by itself.
|
||||
|
||||
### Security
|
||||
|
||||
- Setup: the Restore a backup option on the setup page is open to anyone until the first user is created, as it has to be on a new install. A backup built for the purpose could use it to make the web server run code it carried into the uploads folder. This needed Apache with .htaccess overrides switched on - installs on nginx, and Apache servers that ignore .htaccess files, were not affected. A restore no longer brings in the files that decide how the web server treats a folder, it never writes into the folder backups are kept in, and ITFlow's own protections on the uploads folder are put back after every restore. Every release from 26.08 to 26.11.2 is affected. If an install of yours sat at the setup page where others could reach it, look through its uploads folder for .htaccess, .user.ini or .php files that ITFlow didn't put there.
|
||||
- Passwords: changing a password now signs that account out everywhere else. Before, a browser that was already signed in stayed signed in after the password changed - including after the incident-response reset in Admin > Users, which is meant to lock out someone who has got in. It covers changing your own password, an admin setting someone's, the incident-response reset, and on the client portal a contact changing theirs, a password reset link, and an agent setting a contact's portal password. On the portal, the browser making the change stays signed in. An agent's View as contact ends too when their password changes.
|
||||
- MFA: an agent whose account requires multi-factor authentication but who hadn't set it up yet could use ITFlow without ever setting it up, by going straight to other pages after signing in. Until it is set up, every page now goes back to setting it up, or signing out - including for an agent who is already signed in when an admin requires MFA, or resets it, for them. View as contact isn't offered to them either.
|
||||
- Client portal: the two-step sign-in set up that Admin > Client Portal can require could be got past in two ways - by adding a page name to the end of the address, or by sending another action along with setting it up. A contact who still had to set it up could open their tickets and invoices, and raise or resolve tickets. Neither works now.
|
||||
- MFA: agents are now emailed when multi-factor authentication is turned on for their account, as client portal contacts already were. Setting it up takes only the password, so this is how someone finds out an authenticator they didn't add was put on their account.
|
||||
|
||||
### New Features & Updates
|
||||
|
||||
- API: products can be updated through the API (`products/update`). Only the fields you send are changed, and the key's user needs edit access to Sales, the same as editing a product in ITFlow.
|
||||
- API keys: agents are notified in ITFlow a week before an API key expires, so an integration doesn't stop without warning.
|
||||
- Payment Providers: Stripe's fee on a card payment is now recorded as an expense about 15 minutes after the payment, instead of the next morning. A new Payment Provider Fees job in Maintenance > Cron does it, and you can run it more often there. Record fees now still works any time.
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- Transactions: the list, its Transfers pill, Reconcile and the transactions export load faster again. On a test with eight years of books, the Transfers pill went from about a third of a second in 26.11.2 to under a fifth.
|
||||
- Expenses: billable expenses waiting to go on an invoice slowed down every page, because the side menu counts them and each one was checked against every expense. With a few hundred waiting, that was about a third of a second on every page. The invoice page, Add Expenses and an expense's quick look had the same delay. All of them are quick again.
|
||||
- Transactions: on All accounts, Money in and Money out counted every transfer between your own accounts twice - once out of one account and once into the other - so both were far too high. A Stripe payout to the bank, a check deposit or paying off a card all added to both. They now leave transfers between your accounts out, as the dashboard and Income already did. The Transfers pill still lists them, and one account on its own still counts them as money in and out of that account. The Difference was always right.
|
||||
|
||||
### Developer Updates
|
||||
|
||||
@@ -30,6 +36,11 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u
|
||||
- Database 3.5.5 indexes `expenses.expense_refund_of_id`. `expenseUnbilledCount()` (the side menu, on every agent page), `expenseUnbilled()`, `expenseOnInvoice()` and `expenseRow()` sum each expense's refunds in a correlated subquery, which scanned every expense for each one. Like 3.5.4, it is safe to run again, and `db.sql` has the key.
|
||||
- `api/v1/products/update.php` takes `product_id` and any of the `product_*` fields mapped in `api/v1/products/product_model.php`, and saves through `productSave()`. At least one field is required and each must be a scalar. `product_track_stock` accepts `1`, `true`, `yes`, `on` or `tracked`, and sending `product_type` without `product_track_stock` turns stock tracking off, as the product form does. `enforce_api_rbac.php` gates it on `module_sales` at write level, and it logs a Product Edit and an API Success.
|
||||
- `cron/nightly_tasks.php` sends an `appNotify()` "API Key Expiring" notification for each key whose `api_key_expire` is seven days away, once, on that day.
|
||||
- Sessions carry `$_SESSION['user_session_stamp']`, `userSessionStamp()` in `functions/user.php`: a SHA-256 digest of the user's `user_password` hash, never the hash itself. It is set at the three places a session is made - `login.php` (agent and client portal) and `client/login_microsoft.php` - and checked with `hash_equals()` on every request in `includes/load_user_session.php` and `client/includes/check_login.php`, next to the existing status and archived checks. Any write to `users.user_password`, from any code path, ends every session made before it, with no new column and no migration. A session without the stamp is signed out, which is the one-time sign-out on updating.
|
||||
- `userSetPassword()` calls `userSessionRestamp()`, which gives the current session a new id (`session_regenerate_id(true)`) and the new stamp when the password changed is its own user's - so only the other sessions end. The client portal's own password change does the same. `portalViewAsAccess()` returns `agent_session_stamp`, checked against the agent's session while viewing as a contact.
|
||||
- New `requestIsMfaSetup($allowed)` in `functions/auth.php` decides what a session that still has to set up MFA may request: the script really running (`realpath($_SERVER['SCRIPT_FILENAME'])` under the app root, never `PHP_SELF`, which a path added after the script name changes), and every GET and POST key inside one of the shapes allowed for that script. `includes/load_user_session.php` applies it when `user_config_force_mfa` is 1 and `user_token` is empty, allowing `agent/user/mfa_enforcement.php` with no parameters and `agent/user/post.php` with only `csrf_token`, `enable_mfa` and `verify_code`, or `?logout` - everything else redirects to the set up page, modals and AJAX included. The client portal gate in `client/includes/check_login.php` now uses it too (`profile.php?mfa`, and `post.php` with `portal_mfa_enable` or `?logout`), replacing its `basename($_SERVER['PHP_SELF'])` test; the separate gate in `client/post.php`, which let any request through that carried `portal_mfa_enable` or `logout` alongside other actions, is gone. `portalViewAsAccess()` refuses an agent still owing MFA set up. The `enable_mfa` handler sends `userNotifyChange()`.
|
||||
- `accountLedgerShows($all_accounts)`: across every account, the `in` and `out` cuts leave out `txn_kind` `transfer_in` and `transfer_out`. `agent/transactions.php` does the same for its Money in and Money out totals, except on the Transfers pill, and notes it in the table footer when the listed lines include transfers the totals leave out. The transactions export, which takes its cuts from the same function, follows.
|
||||
- Stripe fees are recorded by a new job, `cron/payment_provider_fees.php` (`payment_provider_fees` in `includes/cron_jobs.php`, every 15 minutes, interval-safe), instead of `cron/nightly_tasks.php`. The dispatcher seeds its row the first time it sees it. `paymentProviderRecordFees()` now holds `GET_LOCK('itflow_payment_provider_fees', 0)` around the work, which moved to `paymentProviderRecordFeesLocked()`, and returns `'busy' => true` when another run has it - "has no fee yet" is read before the fee is written, so two runs at once would each record it. Record fees now says when a run is in progress.
|
||||
|
||||
## [26.11.2]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user