Commit Graph

598 Commits

Author SHA1 Message Date
Michael Hoennig
eb6b56e476 fix Rbac most Rbac Integration-Tests (view->SELECT etc.) 2024-03-08 19:46:35 +01:00
Michael Hoennig
d71d0215ec fix RbacOp check 2024-03-08 18:00:40 +01:00
Michael Hoennig
c2ad5a7e28 fix Debitor RBAC system 2024-03-08 16:04:58 +01:00
Michael Hoennig
7fab1186ed WIP trying to fix Debitor RBAC system 2024-03-08 14:51:04 +01:00
Michael Hoennig
bbcef53b87 fix tests in Hostsharing-Office Entity-Tests 2024-03-08 14:03:56 +01:00
Michael Hoennig
d40cf019cc implement assumed in Generator 2024-03-08 13:21:00 +01:00
Michael Hoennig
86c0bb3e76 some minor amendments after self-code-review 2024-03-08 08:53:28 +01:00
Michael Hoennig
eb7dea54b5 fix TestCustomerControllerAcceptanceTest 2024-03-07 18:12:33 +01:00
Michael Hoennig
1fb1dcce50 .createRole().with.owningUser(CREATOR) is not working 2024-03-07 16:03:44 +01:00
Michael Hoennig
20fc37da22 better error message for failing insert of rbacpermission, but leaving RbacOp domain check commented for now 2024-03-07 15:54:22 +01:00
Michael Hoennig
9ecfdc722a fix currentContext resp. define Context and fix related fixme 2024-03-07 14:42:25 +01:00
Michael Hoennig
b37e8044b2 implement insert trigger if no explicit grant rule is specified 2024-03-07 12:26:07 +01:00
Michael Hoennig
20de9ba7a4 fixes and improvements after self-review 2024-03-07 11:27:21 +01:00
Michael Hoennig
4e2b17a216 integrate RbacGrantsDiagramService in ContextBasedTest and TestCustomerRepositoryIntegrationTest 2024-03-07 08:27:00 +01:00
Michael Hoennig
18ce4fd8e9 WIP 2024-03-06 16:04:34 +01:00
Michael Hoennig
0a9fd9f83b add RbacGrantsDiagramService 2024-03-06 15:45:39 +01:00
Michael Hoennig
3cc5185551 initially working version of generated INSERT-Trigger
WIP

WIP
2024-03-06 15:45:27 +01:00
Michael Hoennig
4df5c2606a use identity view projection for restricted view orderBy if none is explicitely specified 2024-03-05 10:04:15 +01:00
Michael Hoennig
b2cea1e882 insert (into) table permission 2024-03-05 09:44:44 +01:00
Michael Hoennig
fa15378fd2 generate identityview, restrictedview and roledescriptors 2024-03-02 19:53:21 +01:00
Michael Hoennig
b187c705b1 finally working version for UPDATE-trigger-function with separated INSERT+UPDATE trigger functions 2024-03-01 18:46:41 +01:00
Michael Hoennig
17282c857f first working version for UPDATE-trigger-function 2024-03-01 12:34:02 +01:00
Michael Hoennig
bc33f1fd9d only render the update trigger if there are any updatable entity aliases 2024-02-29 11:19:35 +01:00
Michael Hoennig
5276471adb frame for update trigger 2024-02-29 09:22:54 +01:00
Michael Hoennig
fef6e1c01c split trigger function from the procedure which actually generates the groles and grants 2024-02-28 15:37:59 +01:00
Michael Hoennig
dff9803dc3 add RBAC for HsOfficeSepaMandateEntity, improved DSL and Postgres-generator 2024-02-28 13:58:55 +01:00
Michael Hoennig
59ea077a4e stable and better readable order of generated grants 2024-02-28 10:04:20 +01:00
Michael Hoennig
e521c3c9c3 added PartnerDetails as SubEntity and amend genertors accordingly 2024-02-27 16:59:47 +01:00
Michael Hoennig
4bef9391e1 fix some warnings 2024-02-27 12:41:29 +01:00
Michael Hoennig
12010b4dae rbacDef for HsOfficePartnerEntity and related amendments of generators 2024-02-27 12:34:52 +01:00
Michael Hoennig
4ba78a70c2 fix TestCustomerEntity + Flowchart generator 2024-02-27 10:11:22 +01:00
Michael Hoennig
faf6710ef1 generates Postgres for Relationship 2024-02-26 15:48:03 +01:00
Michael Hoennig
86cf4f6c97 use StringWriter in Postgres generator 2024-02-26 13:35:39 +01:00
Michael Hoennig
d7f0727efe fix relationship holderPerson-role 2024-02-26 11:19:38 +01:00
Michael Hoennig
c1c67b3c7b align naming to rootEntityAlias 2024-02-26 09:07:09 +01:00
Michael Hoennig
2171424118 fix duplicate grangs error 2024-02-25 14:14:02 +01:00
Michael Hoennig
5ac616e425 improve RBAC definition DSL 2024-02-25 13:19:27 +01:00
Michael Hoennig
b4d6930fbe introduce StringWriter and generate properly indented Flowchart 2024-02-25 11:58:45 +01:00
Michael Hoennig
f45f88ba77 add customer and outgoing grants to RelationshipEntity 2024-02-25 09:30:07 +01:00
Michael Hoennig
fc1cc5815f introduce RbacObject and initial test for RbacViewMermaidFlowchart 2024-02-25 09:30:07 +01:00
Michael Hoennig
8d3fb4e951 Merge remote-tracking branch 'origin/master' into experimental-rbacview-generator 2024-02-24 09:15:48 +01:00
d9558f2cfe add-trigger-object-to-rbacgrant (#18)
Co-authored-by: Michael Hoennig <michael@hoennig.de>
Reviewed-on: #18
Reviewed-by: Timotheus Pokorra <timotheus.pokorra@hostsharing.net>
2024-02-24 09:04:07 +01:00
Michael Hoennig
3e2fa5a6f6 rekursive Entity-Imports and render complex Mermad-Flowcharts (example: Debitor with parterRel+personRel and holderPerspn+anchorPerson each) 2024-02-23 16:09:10 +01:00
Michael Hoennig
54cff5ece9 check for unused grants 2024-02-23 12:31:08 +01:00
Michael Hoennig
74071c15db generate postgres trigger function + trigger for RbacView for simple objects 2024-02-23 12:17:41 +01:00
Michael Hoennig
f11edc082d generate flowchart for RbacView, with import of simple objects 2024-02-23 09:22:35 +01:00
c7003148ae Merge pull request 'fix misleading findPermissionId naming' (#19) from fix-findPermissionId into master
Reviewed-on: #19
Reviewed-by: Timotheus Pokorra <timotheus.pokorra@hostsharing.net>
2024-02-22 09:27:07 +01:00
Michael Hoennig
a0473976d5 improve readability for defineEntityAlias 2024-02-21 13:22:45 +01:00
Michael Hoennig
491516e516 experimental RbacView: API for a potential Mermaid + pl/pgSQL generator 2024-02-21 13:02:54 +01:00
Michael Hoennig
36654a69d8 fix misleading findPermissionId naming 2024-02-16 16:48:37 +01:00