Skip to content

v0.3.8

Latest

Choose a tag to compare

@bariscelik bariscelik released this 24 Nov 09:43
· 49 commits to main since this release

A security release, 24 commits since v0.3.7. Upgrade if anyone other than an admin signs in to your Inkvoice, especially if SSO creates accounts on first login.

Security

  • Reports, the dashboard, search and the activity log now check permissions (GHSA-mqrf-52cp-r688). These routes only required a signed-in user. Two things followed:

    • Any non-admin, including the read-only Viewer that SSO creates on first login, could read the whole activity log: sign-ins, password resets, session revocations, and permission changes with the usernames involved. A non-admin now sees only entries about records they may read. Account entries are for admins.
    • A user limited by per-resource permissions (accounts from before roles, with no role set) could read every financial report, the dashboard figures, the accounting export and search results. These now need read access to the invoices or expenses behind them, and CSV downloads need export.

    Viewers, Accountants and Admins keep the reports and dashboard they had, since their roles already read those records. Nothing could be changed through these routes. Thanks @lml20000827 for the report.

Also in this release

  • Subtotal after discount is shown in invoice totals, so the amount VAT is charged on is visible (#39). Thanks @MoinJulian for raising it (#35).

Fixes

  • Credit notes keep the invoice's discount and exchange rate. They are carried into the credit note, into PEPPOL BIS, FatturaPA and the hybrid PDF, and shown with the right sign in the form and the PDF. Thanks @5eBeKs (#33).
  • Gateway payments an invoice refuses are now logged. A customer could finish a Stripe or PayPal payment after the invoice was voided or deleted, and the payment was dropped without a trace. Repeated Stripe webhook deliveries are also deduplicated. Thanks @5eBeKs (#23).
  • Outstanding totals count partially paid invoices on the dashboard. Thanks @5eBeKs (#24).
  • E-invoice PDFs and emails follow your locale, number format and date format instead of always using en-US (#31), and the ZUGFeRD PDF no longer prints the seller address twice (#30). Thanks @nestoririondo for both reports (#28, #27).
  • Links in custom invoice email templates are no longer HTML-escaped, so {{public_url}} works again (#32). Thanks @nestoririondo (#29).
  • A half-typed locale in Settings no longer crashes the page (#26). Thanks @MoinJulian.

Upgrade notes

No database migrations in this release.

If a non-admin account has no role and only a few per-resource permissions, it now gets "Forbidden" on reports and the dashboard it is not allowed to read. Give it a role, or the matching read permission, if that is not what you want.

API clients: GET /api/v1/activity returns fewer entries for a non-admin, and total_expenses and net_income in GET /api/v1/dashboard/stats are null for a user who may not read expenses.

Run it

docker pull ghcr.io/pigontech/inkvoice:0.3.8

If you pin 0.3, pulling it again gets this release. Full instructions for Docker Compose, Dokploy and Coolify are in the README. Live demo, no signup needed: demo.inkvoice.app with demo / demo.

MIT licensed.