3
0

70 Commits

Author SHA1 Message Date
Denis Arh
eb1c1cf65f Add trigger management access-control, disable direct trigger management 2019-08-25 09:54:16 +02:00
Denis Arh
c671de3df7 Adopt new protobuf structure, automation code cleanup 2019-08-24 17:49:48 +02:00
Denis Arh
f3ee556b3f Make corredor calls more configurable
JWT is now sent as part of the Config prop, along with msg/sys/cmp base api URLs

This still needs to be configured through env:
 - CORREDOR_API_BASE_URL_SYSTEM
 - CORREDOR_API_BASE_URL_MESSAGING
 - CORREDOR_API_BASE_URL_COMPOSE
2019-08-24 12:21:42 +02:00
Denis Arh
2b3f196e60 refactored/renamed: ScriptRunner => Corredor 2019-08-24 12:14:41 +02:00
Denis Arh
e4f0c5a3b6 Improve automation script create/update flow 2019-08-23 13:49:36 +02:00
Denis Arh
9a428f05b4 Add missing real-record-col 2019-08-23 13:49:36 +02:00
Denis Arh
5bfafd4adc Support run-as for automation scripts
Add grpc-server capabilities for system service (make jwt, find user by id)
Add jwt generation (via grpc) to compose for run-as automation-scripts
Add SuperUser for system-level tasks and operations that are ran in the background w/o initiator
and require permision checking
2019-08-23 13:49:36 +02:00
Denis Arh
1611f9ede7 Add module-name uniqueness check 2019-08-23 13:49:36 +02:00
Denis Arh
7fd9c7fdfb Support searching modules by name 2019-08-23 13:49:36 +02:00
Denis Arh
a0bbe01c24 Support record sorting by ID 2019-08-23 13:49:36 +02:00
Denis Arh
751317d544 Support automation script testing and manual running 2019-08-23 13:49:36 +02:00
Denis Arh
f66a9ce766 Better corredor error handling 2019-08-23 13:49:36 +02:00
Denis Arh
ffdeef1da2 Support for manual/explicit running of user scripts
Moved user-script endponts under /automation/
Add permission checking for trigger running
2019-08-23 13:49:36 +02:00
Denis Arh
6463df9af1 Improvements of automation trigger management 2019-08-23 13:49:36 +02:00
Denis Arh
2094684d5b Removing old trigger struct, svc, repo 2019-08-23 13:49:36 +02:00
Denis Arh
38fe06998c Extreact & refactor automation scripts & triggets
Automation (scripts and triggers) is now a standalone package and can be used
in other services.
2019-08-23 13:49:36 +02:00
Denis Arh
c0552d3e6a Include only enabled triggers/scripts 2019-08-23 13:49:36 +02:00
Denis Arh
94e2acfc17 Add ability to disable script runner calls
With script runner disabled, all critical scripts would fail
2019-08-23 13:49:36 +02:00
Denis Arh
ecc73e10fc Redirect grpclog to zap logger 2019-08-23 13:49:36 +02:00
Denis Arh
bb7dc471d7 Add script-runner configuration capabilities 2019-08-23 13:49:36 +02:00
Denis Arh
dff0df54cb Add basic support for script-runner (protobuf, grpc) 2019-08-23 13:49:35 +02:00
Denis Arh
9a10e10a40 Fix broken compose service tests 2019-08-23 08:39:57 +02:00
Denis Arh
5ee1a90655 Switch to rh package for handling record paging 2019-08-15 12:38:22 +02:00
Denis Arh
3e68bfa7e0 Extract repository helpers to pkg/rh package 2019-08-14 17:18:35 +02:00
Denis Arh
9f58f8e83e Migrate storage path to options.StorageOpt struct 2019-08-14 17:09:43 +02:00
Tit Petric
f472ac05d1 fixes after database profiler/logger refactor 2019-08-06 20:27:56 +00:00
Denis Arh
84ed53f429 Refactor repo functions to UPDATE instead of REPLACE 2019-07-23 07:08:14 +02:00
Denis Arh
8d7fb9c814 Explicit casts on order-by for record values 2019-07-19 06:48:46 +02:00
Denis Arh
38b117044c Remove "ORDER BY" before counting rows 2019-07-19 06:32:31 +02:00
Denis Arh
ed4acf58ca
Add support for IS NULL and IS NOT NULL syntax 2019-07-16 09:54:39 +02:00
Denis Arh
f601e0aa96 Improve record attachment upload capabilities
Add missing upload-to-non-existing record featue by moving endpoint away
from specific record and moving recordID, fieldName from PATH to POST
parameters
2019-07-08 08:14:19 +02:00
Denis Arh
6c3f5f1bbe Ignore deleted record when building report
Fix: cortezaproject/corteza-webapp-compose#68
2019-07-02 09:56:04 +02:00
Denis Arh
c1de0a5adf Do not parse filters on empty string (avoid "empty node set" error) 2019-07-02 06:27:25 +02:00
Denis Arh
8f3c9d72eb Allow page reorder on root
We require page creation permissions to reorder on root
2019-06-27 15:54:50 +02:00
Denis Arh
c52c2ae8f7 Add AST node validation 2019-06-26 23:01:51 +02:00
Denis Arh
59a5df253f Better record value sanitization, refactor & split tests 2019-06-26 23:01:26 +02:00
Denis Arh
08947f2b9b Add namespace.manage permission rule
UI needs to know if user can access admin pages and manage specific namespace
Administrators (role) get this permission in the preset
2019-06-25 19:13:59 +02:00
Denis Arh
a8ae581e8f Cleaner CLI options definition (env keys as tags) 2019-05-30 02:08:01 +02:00
Denis Arh
1f8c2930c3 Fix integration tests 2019-05-28 12:51:46 +02:00
Denis Arh
22476933f4 Improve cli env setup & running 2019-05-26 08:41:20 +02:00
Denis Arh
36b32fa2fe Move logger package from internal to pkg 2019-05-24 13:30:48 +02:00
Denis Arh
b66ed81136 More flexible "compose", move to Corteza
- more control over starting procedure, cli commands...
 - fix package paths
 - renaming symbols, comments, strings from Crust to Corteza
2019-05-24 12:42:35 +02:00
Denis Arh
3b81f88957 Add AC check for page reorder 2019-05-20 18:15:45 +02:00
Denis Arh
f1443a076f Remove obsolete errors (pt2) 2019-05-16 14:55:28 +02:00
Denis Arh
0baf38fdb5 Protect record values on non-updatable fields 2019-05-16 11:31:41 +02:00
Denis Arh
55a0e613a6 Prevent module field name & type changes 2019-05-16 11:00:21 +02:00
Denis Arh
83e95a870c Improve compose module create/update, round created/updated-at values 2019-05-16 01:51:11 +02:00
Denis Arh
e0121d3a53 Same API endpoint for permission signature over three services 2019-05-15 11:16:34 +02:00
Denis Arh
3931e151ac Implement basic record/value-module/field access control 2019-05-14 17:09:39 +02:00
Denis Arh
c15eb72b06 Cleanup testing procedures
- remove "unit" build flag
 - make sure tests without build flag (integration, external) run
   without deps
 - move unit-tests step in front of "docker image build" drone pipeline
2019-05-14 14:51:57 +02:00