Commit Graph
357 Commits
Author SHA1 Message Date
Leo Vasanko cc439aaf12 Light/dark selection in user profile, if set this is preferred on the whole system, together with app overrides (the first one on the URL wins). 2026-01-30 23:31:06 +00:00
Leo Vasanko 0096727b41 Light/dark override for in-app login dialogs to match app style e.g. light only 2026-01-30 23:00:02 +00:00
Leo Vasanko d22879c0f6 Screenshots on README. 2026-01-29 22:50:54 +00:00
Leo Vasanko 75c592dbc0 Log proper action for delete_session depending on what function it performs: logout, delete_session (user's own) or admin:delete_session. 2026-01-29 22:44:22 +00:00
Leo Vasanko 4258ddcf04 Smarter change logging on console, properly display newly created items (not available via jsondiffs). 2026-01-29 22:39:16 +00:00
Leo Vasanko 635422a5f5 Better change entry logging. 2026-01-29 22:09:26 +00:00
Leo Vasanko 5d52eb0b22 Silence type checker about our unconventional imports. 2026-01-29 22:09:03 +00:00
Leo Vasanko 4e80e82b38 Fix WS access log IP margin size change missed in earlier commit. 2026-01-29 21:39:30 +00:00
Leo Vasanko 4ee131563b Add paskia-js to Python build; update build-frontend to use fastapi-vue utils for JS_RUNTIME that also can be set via env now. Fix paskia-js compatibility issue with deno, now works with all three runtimes. 2026-01-29 21:33:39 +00:00
Leo Vasanko e9cc84f3c6 Smarter access log formatting with IPv6. 2026-01-29 21:17:50 +00:00
Leo Vasanko 8749067da7 Add support for perm=foo+bar to specify multiple scopes that are required. Multiple perm args are acceptable too. Pretty logging of permission denied errors. 2026-01-29 21:11:29 +00:00
Leo Vasanko ac85379779 Restrict remote auth to the existing granting user's credentials. 2026-01-29 20:24:26 +00:00
Leo Vasanko 09c241aa2c Cleanup auth WS code, refactor to remove duplication and pass proper context. 2026-01-29 20:15:01 +00:00
Leo Vasanko ba6dea03d3 Add missing context on update_session. 2026-01-29 19:51:56 +00:00
Leo Vasanko 5fc5226480 Create a stand-alone paskia npm package (paskia-js). Make the frontend use it (but from source tree to keep synced). 2026-01-29 19:46:26 +00:00
Leo Vasanko 9b9086b52e Add a screenshot. 2026-01-29 19:15:17 +00:00
Leo Vasanko a0de041348 More of a normal white path color. 2026-01-29 16:57:30 +00:00
Leo Vasanko d8743d9f90 Refactor to separate paskia lib functionality generally useful for various apps. 2026-01-29 16:55:46 +00:00
Leo Vasanko 760b109eef Consistent and stronger session revalidation checks in Auth profile and Admin App. Fix missing handling of link generation network errors. 2026-01-29 16:02:29 +00:00
Leo Vasanko f89e812c86 Logging cleanup, better colors, suppress more useless messages. Enable reloading in devmode again (needs uvicorn.run to function). 2026-01-29 14:49:22 +00:00
Leo Vasanko 33f6512b4b Smarter change logging on console. 2026-01-28 23:22:13 +00:00
Leo Vasanko f3646ed6c5 Improved access logging. 2026-01-28 23:01:35 +00:00
Leo Vasanko 6b8a2a2376 Cleanup 2026-01-28 20:31:33 +00:00
Leo Vasanko 89d0a12a6f Implement versioning in metadata, outside of the DB itself. Cleanup to migration handling and changes. Implement new migration step using msgspec normalization. 2026-01-28 20:23:00 +00:00
Leo Vasanko 5ec50be922 Add migrate:msgspec for changes in schema that don't require version bump. Rename the other migrations to migrate:sql and migrate:v{N}. 2026-01-28 19:24:15 +00:00
Leo Vasanko 93fd496254 Cleanup 2026-01-28 19:17:24 +00:00
Leo Vasanko ff3c4a00e5 Modules missing git add 2026-01-28 19:04:18 +00:00
Leo Vasanko a70eba3440 Make database changes outside of transaction a fatal error. Fix bootstrap and migrate to work with various latest changes. 2026-01-28 19:04:00 +00:00
Leo Vasanko 21f3a713f6 Fix a bug with validate returning 401 when a session was refreshed. Simplify & cleanup. 2026-01-28 18:45:02 +00:00
Leo Vasanko 7614d0e8d9 API to use msgspec structs as well. 2026-01-28 18:31:45 +00:00
Leo Vasanko b79f367495 Implement full ORM. Various other cleanup. 2026-01-28 17:19:56 +00:00
Leo Vasanko dcc89181b7 Move get_session_context to DB.session_ctx(). 2026-01-28 14:52:18 +00:00
Leo Vasanko 6546b0730d Problem solved, remove extraneous migration, reset to v1. 2026-01-28 02:29:53 +00:00
Leo Vasanko f59451d3b4 Debug DB problem 2026-01-28 02:27:26 +00:00
Leo Vasanko ed8de169de Credential update was being done out of transaction, now part of login. 2026-01-28 02:22:47 +00:00
Leo Vasanko f29bd98020 Debug DB problem 2026-01-28 02:19:54 +00:00
Leo Vasanko 9983245652 Remove get_session_context setting of host (now read only op as expected). Make session host, ip and user_agent always set (the ua potentially empty string). 2026-01-28 02:14:34 +00:00
Leo Vasanko 78a7c4f07a Fix migration logic. 2026-01-28 02:02:18 +00:00
Leo Vasanko 614e5a289d Fix migration logic. 2026-01-28 01:58:36 +00:00
Leo Vasanko f90d9e4eb1 Implement migration to remove created_at timestamp from Orgs that already has one, bumping db v1. 2026-01-28 01:52:33 +00:00
Leo Vasanko c6a7429f11 Remove Org.created_at to maintain compatibility with old versions (the field was not being used). 2026-01-28 01:31:35 +00:00
Leo Vasanko e3ff1f9db1 Hardened PATCH handling (only allow updating select fields). Hardened DB transactions, rollback. 2026-01-28 01:13:05 +00:00
Leo Vasanko 8a6540aa91 Fix background task still running twice, and add a check to prevent that happening again (double expiry). 2026-01-27 23:51:13 +00:00
Leo Vasanko 4cf0bda26d Disable API docs that display very much broken due to missing request/response typing. 2026-01-27 23:27:42 +00:00
Leo Vasanko dea62d799f Remove unnecessary use of async now that db access doesn't need awaiting. 2026-01-27 23:16:17 +00:00
Leo Vasanko 46083d8bce Broken import 2026-01-27 22:46:49 +00:00
Leo Vasanko b09fb7fe26 DB background worker cleanup, avoid issue with double cleanup. Faster write to disk. 2026-01-27 22:21:33 +00:00
Leo Vasanko 43ffb31414 Cleaner typing to avoid some checking errors. 2026-01-27 22:04:14 +00:00
Leo Vasanko d40a2b8682 DB transactions cleanup, better actor/user data. Simplified admin API. Use UUID to refer to a specific permission in admin API. Other cleanup. 2026-01-27 21:48:21 +00:00
Leo Vasanko e3b64ef537 Move imports to top of file. 2026-01-27 20:16:32 +00:00