1
0
Fork 0
forked from sr2/cloud-api
Commit graph

31 commits

Author SHA1 Message Date
c689ac1e10 minor: ruff formatter
All changes are either:
- Correcting tabs
- Adding/removing line breaks
- Adding trailing commas
2026-06-08 15:31:37 +01:00
b2e5dd2ebb feat: sqlite integrity error handle 2026-06-08 15:24:42 +01:00
903b24d17d ruff: config and initial run 2026-06-08 10:45:38 +01:00
f600664789 tests: improved coverage 2026-06-05 09:10:55 +01:00
c8024daa97 minor: renames and error messages 2026-06-04 14:53:35 +01:00
c9cd75a7ad fix: missing src in imports 2026-06-03 09:15:25 +01:00
65a9514be6 fix: drop superfluous column in usergroups
Group org is assigned in the Group table. Also assigning it in the UserGroups table complicated relationship creation and it was never used.
2026-06-02 16:11:52 +01:00
b8b5b6dbd3 fix: permission search typing 2026-06-02 15:55:50 +01:00
ae0181c3ff fix: create permission endpoint
Verifies service exists before attaching permission.

Response built manually because calculated properties are not handled by .__dict()__

Request model uses Service ID mixin.

Service ID mixin verifies ID > 0
2026-06-02 15:36:05 +01:00
5d1606aa9d fix: permission search changed to post
Get requests cannot have bodies.
2026-06-02 15:13:00 +01:00
511480dffe fix: wrong org dependency in get perms 2026-06-02 14:44:30 +01:00
3052565258 fix: userschema config
Required for Pydantic to map a SQLAlchemy model to it.
2026-06-02 14:37:07 +01:00
2f4b7b8733 fix: missing org id in req 2026-06-02 14:21:05 +01:00
5ec1f2272a minor: >0 perm & group id in bodies 2026-06-02 14:18:04 +01:00
c6542f48c1 fix: multiple inverted conditionals 2026-06-02 13:52:52 +01:00
5104257a50 fix: missing org id in req body 2026-06-02 13:50:13 +01:00
3ea782d68f minor: min length on group name post 2026-06-02 13:37:42 +01:00
7d109f0f73 fix: inverted conditional in get group users 2026-06-02 12:22:36 +01:00
da5099e172 minor: global exception names 2026-05-29 09:50:09 +01:00
6cfacad131 docs: iam model docstring
Issue: #13
2026-05-28 15:06:38 +01:00
9a1975c389 minor: iam schema nomenclature 2026-05-28 13:37:32 +01:00
0e169af456 docs: iam docstrings
Issue: #13
2026-05-28 13:22:24 +01:00
0c1c9f62ee fix: permission dependency 2026-05-28 13:19:54 +01:00
1ed0cfb38c feat: handling for integrity errors
Resolves: #7
2026-05-27 16:26:34 +01:00
7e8ec08283 feat: auth requirements to iam endpoints 2026-05-27 15:35:06 +01:00
868e56ce40 feat: custom exceptions instead of direct fastapi.httpexceptions
Resolves #2
2026-05-27 14:58:10 +01:00
657f91d73d feat: org dependencies
Org endpoints use query/body model dependencies to perform initial db lookups.

Issue #6

Org ID path params have been replaced with either query params (get endpoints) or body values.

Resolves #10

Endpoints in other modules that rely on an org model lookup have also been updated.
2026-05-27 12:21:30 +01:00
c6a2b301dc feat: iam dependencies
IAM endpoints now use dependencies to perform most initial database get requests.

Issue #6
2026-05-27 12:21:30 +01:00
d4f1b73deb feat: iam endpoint req/res models 2026-05-26 16:25:14 +01:00
a80767d870 feat: condensed user get endpoints
The process also added improved ORM relationships for multiple models.
2026-05-25 12:06:24 +01:00
23f2ce98d7 feat: iam rbac system
Endpoints and db architecture to support a role based IAM system.
2026-05-25 09:05:17 +01:00