3
0
Commit Graph

3731 Commits

Author SHA1 Message Date
Denis Arh
353d6ad37d Unified CUE file names 2022-08-01 18:22:55 +02:00
Denis Arh
885e633ba2 Improve (cue) codegen performance 2022-08-01 18:17:31 +02:00
Denis Arh
507e5cd72f Add support for min upper/lower-case password constraints 2022-08-01 16:37:46 +02:00
Denis Arh
54060f5ff8 Add user credentials management endpoints 2022-08-01 15:19:47 +02:00
Denis Arh
1b4a03827c Merge branch '2022.9.x-feature-record-revisions' into 2022.9.x 2022-08-01 13:27:03 +02:00
Denis Arh
c9442260c5 Add support for revisions on compose records 2022-08-01 08:55:46 +02:00
Denis Arh
39bf9b75ea Deprecate ACTIONLOG_COMPOSE_RECORD_ENABLED 2022-08-01 08:55:46 +02:00
Denis Arh
508dddd304 Implement generic package for revisions 2022-07-31 16:29:28 +02:00
Denis Arh
04e93ede90 Cleanup compose module fields configs 2022-07-31 16:05:06 +02:00
Denis Arh
0ae4311003 Add generic filter build for filter.Filter 2022-07-31 11:50:31 +02:00
Denis Arh
c710aa079d Reduce code & refactor Scan & Value fn 2022-07-30 16:11:06 +02:00
Denis Arh
a58eb1e052 Restructure config on compose module 2022-07-30 15:11:13 +02:00
Denis Arh
7d91b4eaaf Improve error message when database is misconfigured 2022-07-28 19:57:28 +02:00
Denis Arh
389cf7d997 Misconfigure server start no longer outputs CLI usage help 2022-07-28 19:57:11 +02:00
Denis Arh
020b2c75b4 Moved pkg/decoder under fed/service/decoder 2022-07-28 19:44:20 +02:00
Denis Arh
a59f1dd361 Remove wrapping function from scheduler's watch() 2022-07-28 19:41:11 +02:00
Denis Arh
f170760765 Fix RBAC rule filtering 2022-07-28 18:06:19 +02:00
Denis Arh
05bdf6a1d4 Handle RBAC trace req on wildcard resource with contextual roles 2022-07-28 15:55:06 +02:00
Denis Arh
773fe7a602 Prevent error when wildcard resources are requested for RBAC trace 2022-07-28 15:01:16 +02:00
Denis Arh
34c767127f Fix DAL terminology (remove "record") 2022-07-28 14:16:01 +02:00
Denis Arh
55b4f4ece7 Remove wrapError utility func 2022-07-28 13:02:15 +02:00
Denis Arh
98722f67eb Rename ModelFilter to ModelRef 2022-07-28 12:58:40 +02:00
Denis Arh
2959f43f0d Ensure error is properly handled on searchSql() 2022-07-28 11:11:10 +02:00
Denis Arh
2c6ff9b834 More robust rdbms model cache handling 2022-07-28 11:11:10 +02:00
Denis Arh
816e3ab041 Add cast2 package for simpler type-casting & value setting 2022-07-28 11:11:10 +02:00
Denis Arh
20cfc5b4e4 Cleanup record-value type, use Clone() 2022-07-28 11:11:10 +02:00
Denis Arh
8fa9f3b058 Remove record changing code from DAL (soft-delete) 2022-07-28 11:11:10 +02:00
Denis Arh
f725624697 Move DAL iterator interface and add IteratorEncodeJSON 2022-07-28 11:04:56 +02:00
Vivek Patel
fef77a7a47 Refactor rules endpoint
- Removes specific params
- Improves RuleSet.FilterResource to accept multiple resources
- Rework FindRules method in access-controller tpl
2022-07-27 22:43:07 +05:30
Tomaž Jerman
aae7152a66 Merge branch '2022.9.x-dal-test-fix' into 2022.9.x 2022-07-27 16:55:43 +02:00
Tomaž Jerman
459589a69e Fix broken tests due to DAL related introduction 2022-07-27 16:53:05 +02:00
Tomaž Jerman
a78c917226 Temporarily remove timestamp sorting params due to cursor issues 2022-07-27 16:53:04 +02:00
Tomaž Jerman
5391944f6e Fix permission clone tests failing due to endpoint refactor 2022-07-27 16:53:04 +02:00
Tomaž Jerman
8e5ffab785 Add missing values to record Organize filter construction
Previous version defaulted filter's module and namespace references
if not provided; the new one does not which would cause all the
records to be used.
2022-07-27 16:53:04 +02:00
Tomaž Jerman
1ddb770f39 Fix record owner management logic and tests
* The service improperly checked record value errors causing
  invalid owner update attempts to pass.
* Fixed invalid tests due to RBAC internal logic corrections and
  missing initial record ownership.
2022-07-27 16:53:04 +02:00
Tomaž Jerman
76b99bd0ed Umbrella commit for generic commits
* Removed f.Check requirement from compose/dalutils.
* Added ref to original module when preparing target records for
  DAL value setter processing (helps with properly setting Ref field).
* Updated codegen & added missing imports.
2022-07-27 16:53:04 +02:00
Tomaž Jerman
978c538748 Make DAL Purge method not remove the primary store since its invalid 2022-07-27 16:53:04 +02:00
Tomaž Jerman
db4bdbe4ba Make DAL sensitivity level removal graceful
It does not error out if it does not exist like with other
resources.
This makes it more consistent and easier to work with in tests.
2022-07-27 16:53:04 +02:00
Tomaž Jerman
cbc92dcc63 Fix module field update logic when records exist
The logic will need to be adjusted for DAL model issues, but the
current functionality is preserved with this.
2022-07-27 16:53:04 +02:00
Tomaž Jerman
b890f50098 Improve record value setter to utilize module when possible 2022-07-27 16:53:04 +02:00
Tomaž Jerman
9d44fa8679 Fix RDBMS filter construction for applications and flags
* Add a new byFlag resource filter feature to support filtering
  using flags.
  False by default since only system applications use it.
* Add filter definitions to flag pkg resource.
* Add support for using []string inside byValue filters.
2022-07-27 16:53:04 +02:00
Tomaž Jerman
702196dafa Improve native type support for JSON rdbms columns
Allow driver.Value types to be used as is.
This avoids cases where valid values would be encoded into
strange, invalid JSON strings (such as passing `{"k": "v"}`).
2022-07-27 16:53:04 +02:00
Tomaž Jerman
cce11cf19d Skip tests which can not yet be fixed due to envoy/reporter 2022-07-27 16:53:04 +02:00
Tomaž Jerman
fe27e4bf90 Temporarily remove envoy and reporter tests until they are reworked 2022-07-27 16:53:04 +02:00
Tomaž Jerman
3fbf5c3eb8 Bring back the make test.all command 2022-07-27 16:53:04 +02:00
Denis Arh
c6f8862681 Properly handle empty label name exception list in RDBMS store 2022-07-27 11:45:50 +02:00
Denis Arh
9a0e37a6d9 Fix multivalue attribute init and encoding 2022-07-27 11:24:23 +02:00
Vivek Patel
b41504dbe3 Improve KV related expr types, add r/w locking
Also extended filter for compose record values
2022-07-27 14:00:18 +05:30
Vivek Patel
fad8725a63 Fix sensitive level check for data privacy modules
A module have one or more module field with have a sensitivity level then it will consider as private module.
2022-07-26 09:30:59 +05:30
Tomaž Jerman
eb917eed6e Refactor data-privacy/sensitive-data to data-privacy/records 2022-07-25 16:56:15 +02:00