Security architecture: layers and features
For: developers and architects. The map of the October 2026 security track (branch aj-security): what each piece does and where its pages are. Pieces are documented one at a time, after review.
How the layers fit
| Layer | Question it answers | Features |
|---|---|---|
| Sign-in | Are you who you say you are? | B2, B3, B4, B5 |
| Endpoint | May your role call this endpoint at all? | A3 |
| Record | May you act on this user, branch or field? | A0, A2, A4 |
| Query | Can a request change the SQL itself? | A1 |
| Record keeping | Who did what, and can it be trusted later? | B1, B6 |
Features
| # | Feature | What it does | Pages |
|---|---|---|---|
| A0 | Grant guard | Nobody gives out, or acts on, more than their own role holds | Users and roles: technical design · Users and roles: who can grant what · Users and roles: admin guide · Runbook: user and role access problems |
| A1 | Report sorting | Sort columns come from a fixed menu and page numbers are checked, so a request cannot change the SQL | Report sorting and paging: technical design |
| A2 | Branch scoping | Users see and change only the branches they are assigned to, administrators included | Branch scoping: technical design · Branches: who sees and changes what · Branches: admin guide · Runbook: branch access problems |
| B1 | Audit log | Records sign-ins, access changes and every change to money, stock and access data; nobody can edit it, and each day is sealed | Audit log: technical design · Audit log: what is recorded and why it can be trusted · Runbook: audit log problems |
| A3 | Endpoint privileges | Every endpoint declares the right it needs, and the server refuses everyone else; shared endpoints also check the record's kind | Endpoint privileges: technical design · Endpoint rules: what each role may do · Role rights: admin guide · Runbook: refused requests |
| A4 | Purchase cost | What stock cost is left blank for roles without View Purchase Price, except on purchase and production work; a role that cannot see cost cannot set it | Purchase cost: technical design · Purchase cost: who sees what stock cost · Purchase cost: admin guide · Runbook: missing cost and other questions |
| B2 | Sessions | A 15-minute access token tied to a server session, renewed by a rotating HttpOnly cookie; sign-out, password change and admins end sessions at once; wrong passwords lock the name and the network | Sessions and sign-in lockout: technical design · Sessions and sign-in lockout: the rules · Sign-ins and lockouts: admin guide · Runbook: locked out and signed out |
| B3 / B4 | Sign-in and password reset | The sign-in page says why it failed without revealing which names exist; Remember me is a choice; a forgotten password is reset from a one-time emailed link on the shop's own address | Sign-in page and Remember me: technical design · Password reset by email: technical design · Sign-in and password reset: the rules · Forgotten passwords and Remember me: admin guide · Runbook: sign-in messages and forgotten passwords |
| B5 | Two-step sign-in | After the password, a code from the person's own phone; required for anyone who manages users, roles or the Activity log; a first setup also needs a code emailed to them; recovery codes for a lost phone | Two-step sign-in: technical design · Two-step sign-in: the rules · Two-step sign-in (MFA): user guide · Two-step sign-in: admin guide · Runbook: two-step sign-in problems · Two-step sign-in: server key (MFA_KEY) · Runbook: reset two-step for a locked-out last admin |
| B6 | Activity log | Users › Activity log searches sign-ins and data changes across the business, with export; readers need Read and two-step sign-in, and never see secrets, or cost without the right; every user sees their own account's activity on their profile | Activity log: technical design · Activity log: who reads what · Activity log: admin guide · Recent activity: user guide · Runbook: Activity log questions |
Release steps for all of them, in order: Runbook: release checks for the security release.
Related pages
- Users and roles: technical design
- Report sorting and paging: technical design
- Branch scoping: technical design
- Audit log: technical design
- Endpoint privileges: technical design
- Purchase cost: technical design
- Sessions and sign-in lockout: technical design
- Sign-in page and Remember me: technical design
- Password reset by email: technical design
- Two-step sign-in: technical design
No comments to display
No comments to display