3
0
Commit Graph

94 Commits

Author SHA1 Message Date
Denis Arh b478b37775 Add support for page config 2022-02-10 13:55:54 +01:00
Denis Arh 6c3bef0750 Refactor token-issuer (ex-jwt) to be more robust and configurable 2022-01-21 15:31:10 +01:00
Tomaž Jerman 2c873d269f Add integration tests for namespace import/export 2022-01-18 21:50:19 +01:00
Denis Arh 59ec77e204 Refactor JWT implementation 2022-01-18 21:50:18 +01:00
Denis Arh 3ffa0ef8be Fixing codebase after JWT lib switch 2022-01-11 15:35:05 +01:00
Denis Arh 60020f8510 Upgrade go-chi&co 2022-01-11 10:53:49 +01:00
Denis Arh edbbf2f01b Fix bool/false value sanitization
Boolean value sanitization MUST return empty string for false boolean
value to ensure consisten behaviour when empty or false value for field
is send back and that field is read-only (via RBAC).
2021-11-21 18:07:00 +01:00
Tomaž Jerman aced989ae6 Fix default record module field value validation setup 2021-11-15 12:45:24 +01:00
Denis Arh 20757e58fa Disallow use of reserved names for module fields
List of reserved names:
 - recordID
 - ownedBy
 - createdBy
 - createdAt
 - updatedBy
 - updatedAt
 - deletedBy
 - deletedAt
2021-10-21 13:20:50 +02:00
Denis Arh 832a4557c5 Return default language when there are no headers
This change also affects test setup: we need to load locale service
without any languages/translations to avoid test flakines
2021-10-07 15:24:59 +02:00
Tomaž Jerman 43fe13a128 Add integration tests for record ctx roles 2021-10-01 10:08:58 +02:00
Vivek Patel b342ec91d8 Fixes token generation in integration test 2021-10-01 10:08:58 +02:00
Vivek Patel a9c762aacc Fix integration tests
- Extends helper for integration test with token generation
2021-09-24 19:24:00 +05:30
Tomaž Jerman f7922d9736 Add support for namespace clone, export, import 2021-09-23 13:05:08 +02:00
Denis Arh 92f225654c Fix access token handling in integration test 2021-09-22 21:23:42 +02:00
Denis Arh 9e87b43b33 Enforce mode & level for debug logger, cleanup test logging init 2021-09-02 15:14:08 +02:00
Denis Arh af09848dd8 Fix tests (use translation keys) 2021-08-23 19:10:21 +02:00
Tomaž Jerman a2b964c53e Remove AC from ComposeRecord import 2021-07-15 14:29:30 +02:00
Denis Arh 92d2de8639 Add *.search RBAC ops check 2021-07-12 08:58:24 +02:00
Denis Arh 20e05280b3 System wide RBAC changes 2021-07-08 11:42:18 +02:00
Denis Arh b923953ca5 Removing superuser logic 2021-07-08 11:24:12 +02:00
Denis Arh 6a6f74d4a6 Refactored resource/role logic 2021-07-08 11:22:11 +02:00
Vivek Patel afba9a6364 Fixes attachment integration test 2021-07-04 20:00:03 +05:30
Vivek Patel 537791389e Adds integration tests for compose, system and automation 2021-07-02 17:57:51 +05:30
Tomaž Jerman ee850124f6 Sanitize text record values 2021-06-22 09:39:26 +02:00
Tomaž Jerman 02c6345e8e Add tests for field-level access control 2021-06-08 14:16:22 +02:00
Tomaž Jerman 90cb471481 Fix compose record update on modules with deleted fields 2021-06-08 11:45:50 +02:00
Tomaž Jerman a429e1c71c Fix module field default value validation 2021-06-01 12:49:54 +02:00
Tomaž Jerman 53cf96848a Tweak ComposeRecord exporting
* Fix pagination cursors
* Use service functions for AC
* Add tests
2021-05-10 10:53:13 +02:00
Tomaž Jerman eb79b192be Fix record ref updates 2021-03-31 10:16:26 +02:00
Tomaž Jerman 28aa9b3744 Tweak default compose record value logic 2021-03-22 08:16:17 +01:00
Tomaž Jerman d14573b503 Test tweaks 2021-03-19 08:48:58 +01:00
Tomaž Jerman 6bc4f1102d Fix record report operations over floating point numbers 2021-03-16 16:31:42 +01:00
Tomaž Jerman c3be43ed51 Fix module field removal logic 2021-03-05 10:42:35 +01:00
Tomaž Jerman 398c9449cc Rework compose record import/export
- Tweak importing to avoid record service
- Rework record export to use Envoy
2021-02-24 15:57:44 +01:00
Denis Arh 53be013377 Implement new auth UI, deprecate auth API endpoints 2021-02-23 07:34:10 +01:00
Denis Arh 01a7aa6526 Remove .With(ctx) pattern 2021-01-25 18:05:24 +01:00
Denis Arh 46620d46a9 Fix record-value storing issues
Under certain conditions, values did not get removed/saved properly
2020-12-10 13:20:43 +01:00
Denis Arh 4fd7ee27b8 Add CRUD tests for field expr 2020-11-30 20:31:02 +01:00
Denis Arh b82ddad83a Implement support for labels on compose resources 2020-11-06 08:32:42 +01:00
Denis Arh fc74d44563 go vet fixes 2020-11-05 19:57:47 +01:00
Denis Arh eca90b1fc1 Fix record update with update-denied fields
Scenario:
 - values already exist on the record
 - record is updated with users that can not update all fields
 - only values for updatable fields are provided

Access control was moved from generalValueSetValidation to procCreate/procUpdate
to allow return of record value error set.

Existing values from fields with update-deny set are copied to updating set
to ensure proper handling by RVS's Merge fn().
2020-11-05 10:39:25 +01:00
Denis Arh ed8fc547f7 Config. environment (throughenv var 'ENVIRONMENT') 2020-11-04 15:13:27 +01:00
Denis Arh ecb7f52c31 Improve error creation & handling by API 2020-11-04 14:18:33 +01:00
Denis Arh 7508659165 RBAC refactored (pkg renamed, init improved) 2020-09-18 07:56:58 +02:00
Denis Arh 3a7cc105d0 Renamed temp ng-store variables to store 2020-09-16 07:37:06 +02:00
Denis Arh 5e55340759 Renamed pkg/store to pkg/objstore (Object Store) 2020-09-16 07:37:06 +02:00
Denis Arh edbeb57f48 Fix ordering records by values, record organizer 2020-09-09 13:11:11 +02:00
Denis Arh be76207e50 Fix compose integration tests 2020-09-08 14:51:19 +02:00
Denis Arh f64bf4673e Ported pkg/rh to pkg/filter and removed obsolete code 2020-09-06 16:33:57 +02:00