Commit Graph

829 Commits (c7ccff5e1e22e279a460b0ef463d432da7080ab8)

Author SHA1 Message Date
Andras Iklody 8ca22760e0
fix: [mysql] create if exists rather than drop + create
- made sense early in development, however, it no longer does
2021-11-24 13:47:10 +01:00
Andras Iklody c647ae95eb
fix: typo in mysql.sql 2021-11-24 13:44:12 +01:00
iglocska 8c8aba3fbc
Merge branch 'develop' into main 2021-11-24 01:53:10 +01:00
iglocska 4bcdf9534a
chg: [cakephp] version bump 2021-11-24 01:52:03 +01:00
iglocska bacb3dc85e
fix: [API] fixed broken API
- don't call functions specifically meant for the UI when in an ACL context
- also fixed breaking issues with the logging
2021-11-24 01:50:55 +01:00
iglocska 92fee87a7f
fix: [keycloak] when enrolling users in keycloak, use the user organisation_id instead of the individual's first alias 2021-11-24 01:34:15 +01:00
iglocska 3cc857c42f
fix: [auditlog] use insert() rather than save() as that is not available in the behavior
- fixes exception on logging deletes, blocking any actual deletions
2021-11-24 01:33:26 +01:00
iglocska 22e4a90af0
chg: [ACL] tightened ACL for several controllers
- org admins now have access to new functionalities, added ACL for them
- Affected controllers:
  - Authkeys, encryptionkeys, users, sharinggroups
- sets defaults/restricts access accordingly
2021-11-24 01:32:05 +01:00
iglocska 0fe7f4f931
new: [CRUD] added additional features to the CRUD component
- conditions passable to add/edit/index/delete
- refactored get() requests internally to finds to accomodate for additional parameters
- delete() now takes a params[] array as a second argument
2021-11-24 01:30:28 +01:00
iglocska 5483357e1c
chg: [ACL] fix permissions for org admins
- also, fix a bug with the simple permissions being ignored
2021-11-24 01:29:39 +01:00
iglocska dad310f434
chg: [appcontroller] include user org in loaded user object during authentication
- also log username as username rather than name
2021-11-24 01:28:52 +01:00
iglocska 6d7a555368
chg: [index views] slight changes
- hide inaccessible action buttons on org index
- add owner to sharing group index
2021-11-24 01:28:01 +01:00
iglocska e708730e97
chg: [roles] hide action buttons on the role index when they wouldn't be available anyway 2021-11-24 01:27:14 +01:00
iglocska ed848e9cee
chg: [sharing groups] show owner org on the index 2021-11-24 01:26:55 +01:00
iglocska 061f3fc468
chg: [profile] added org to profile menu 2021-11-24 01:26:29 +01:00
iglocska 81ab202917
chg: [templates] org fields added to user templates 2021-11-24 01:25:57 +01:00
iglocska e5e4e74cae
chg: [users] associated with orgs 2021-11-24 01:25:32 +01:00
iglocska 9619989a94
new: [migration] organisation_id added to users
- also, grab the first org for a default
2021-11-24 01:24:25 +01:00
iglocska 18b78e8eec
fix: [audit log] filtering now uses request_action rather than the renamed action field 2021-11-17 16:04:57 +01:00
iglocska 7f138325a8
fix: [log index] use the proper action column 2021-11-17 16:04:02 +01:00
iglocska 0def46149f
Merge branch 'main' into develop 2021-11-17 16:00:07 +01:00
iglocska 38b4b99bb1
Merge branch 'develop' of github.com:cerebrate-project/cerebrate into develop 2021-11-17 15:59:32 +01:00
iglocska 92ddd04ba0
fix: [JSON fields] fixed escaping issues 2021-11-17 15:58:52 +01:00
iglocska ff77af0a8e
new: [appmodel] moved constants related to the logging along with a getter to app model 2021-11-17 15:58:06 +01:00
iglocska fe8e217d61
chg: [audit log naming] renamed action to request_action to avoid reserved keyword usage 2021-11-17 15:57:34 +01:00
iglocska 7b52d29320
new: [login] log success/failure 2021-11-17 15:49:28 +01:00
iglocska bc2e2fa488
new: [open] individualscontroller fix
- import badrequest exception
2021-11-17 15:48:49 +01:00
iglocska cc04373375
new: [crud component] fixes
- add hidden option
- fix afterfind
2021-11-17 15:47:32 +01:00
iglocska 1f77569344
chg: [auditlog] log api authentication failures / successes 2021-11-17 15:46:32 +01:00
iglocska 2e1ee2d064
new: [audit log] behaviour tied into the appropriate models 2021-11-17 15:43:52 +01:00
iglocska 72bd564120
new: [migration] scripts added
- also updated mysql.sql
2021-11-17 15:40:44 +01:00
iglocska a305bdf9f1
new: [mysql] added new table for audit logs 2021-11-17 14:45:45 +01:00
iglocska af4f114f2f
chg: [audit logs] tied into side menu 2021-11-17 14:45:20 +01:00
iglocska de2ee49ccf
new: [auditlogs] UI 2021-11-17 14:44:54 +01:00
iglocska 23dc460359
new: [auditlog system] added
- port of Jakub Onderka's implementation from MISP
- Still not fully realised, lacking search functionalities
2021-11-17 14:44:07 +01:00
Andras Iklody d9066f4276
Merge pull request #77 from drizzit56/main
Added an nginx config for cerebrate
2021-11-03 10:53:15 +01:00
Andras Iklody 180bb9a07e
Merge pull request #78 from cudeso/main
Update INSTALL.md
2021-11-03 10:49:52 +01:00
Koen Van Impe ae4a011600
Update INSTALL.md
Minor installation documentation changes
2021-11-01 16:58:10 +01:00
drizzit56 e3168dacfa adding nginx config 2021-10-29 00:33:11 +01:00
drizzit56 5c48de7779 Adding nginx alternative config file and updating INSTALL.md for nginx usage 2021-10-29 00:29:46 +01:00
Andras Iklody 7ec7032581
Merge pull request #76 from DocArmoryTech/dat-patch
Dat patch
2021-10-29 00:03:57 +02:00
DocArmoryTech f10e022563
Create logs dir 2021-10-28 22:58:38 +01:00
DocArmoryTech 27c2d07e3c
Keep composer happy with permissions
partial resolution to issue #75 

create/initialise a `/var/www/.composer` director to keep composer happy and explicitly tell sudo to set the home dir `-H`
2021-10-28 22:56:25 +01:00
DocArmoryTech 8df9708258
Added missing 'Cerebrate' section
Second part of resolution to Issue #75

Added missing Cerebrate config section to resolved the following error:

```
warning: Warning (2): in_array() expects parameter 2 to be array, null given in [/var/www/cerebrate/src/Controller/Component/Navigation/sidemenu.php, line 130]
Request URL: /users/login
Referer URL: http://127.0.0.1:8000/users/login?redirect=%2F
Client IP: 127.0.0.1
```
2021-10-28 22:23:38 +01:00
Andras Iklody 3916941e07
chg: [docker] updated image path to the github package of this repo 2021-10-25 18:00:33 +02:00
Andras Iklody 94b33f77e3
Merge pull request #74 from cerebrate-project/feature/docker-ci
Feature/docker ci
2021-10-25 17:01:38 +02:00
Rémi Laurent 4dc79a2a51 [skip ci] changing triggering branch in workflow 2021-10-25 16:31:06 +02:00
Rémi Laurent 2c9a1d1d05 Merge branch 'feature/docker-ci' of github.com:cerebrate-project/docker-cerebrate into feature/docker-ci 2021-10-25 15:47:05 +02:00
Rémi Laurent cfe8b7cd46 dockerfile and configuration 2021-10-25 15:46:47 +02:00
Rémi Laurent 058314af52
Create docker-publish.yml
initial attempt at GH actions docker build and push
2021-10-25 15:46:04 +02:00