3
0

73 Commits

Author SHA1 Message Date
Denis Arh
d130e7e641 Fix tools & specs (internal => pkg) 2019-10-01 18:21:09 +02:00
Denis Arh
a54cb00efa Move internal/settings to pkg/settings 2019-10-01 18:13:26 +02:00
Denis Arh
f493f4fb6b Move internal/permissions to pkg/permissions 2019-10-01 17:53:20 +02:00
Denis Arh
ebfa4cbffd Move internal/payload to pkg/payload 2019-10-01 17:51:39 +02:00
Denis Arh
5e3f3f1342 Move internal/mail to pkg/mail 2019-10-01 17:51:06 +02:00
Denis Arh
82bf6e3617 Move internal/store to pkg/store 2019-10-01 17:50:24 +02:00
Denis Arh
52901a9385 Move internal/http to pkg/http 2019-10-01 17:49:59 +02:00
Denis Arh
9a51289d81 Move internal/db to pkg/db 2019-10-01 17:48:51 +02:00
Denis Arh
62aa794b84 Move internal/auth to pkg/auth 2019-10-01 17:47:43 +02:00
Denis Arh
f5f0096035 Remove internal/test pkg 2019-10-01 17:42:26 +02:00
Denis Arh
77ce40cf1a Move version, rand and organisation pkgs (internal=>pkg) 2019-10-01 17:42:26 +02:00
Denis Arh
c240bb6a20 Refactored configuration provisioning 2019-09-30 10:20:40 +02:00
Denis Arh
9c37d6d4e2 Automation script exp/imp, tweaking compose exporters 2019-09-30 10:20:39 +02:00
Denis Arh
823dffdd1b Improve compose resource importing 2019-09-30 10:20:39 +02:00
Denis Arh
62bc97dbe9 Permissions importer, store & ref logic 2019-09-30 10:20:39 +02:00
Denis Arh
9d5dea7551 Add handle pkg 2019-09-30 10:20:39 +02:00
Denis Arh
9f91a3ae0e Importer for base compose & system elements 2019-09-30 10:20:39 +02:00
Tomaž Jerman
c00eb03001 Allow deferred & interval triggers 2019-09-20 12:27:38 +02:00
Tomaž Jerman
7a992d5744 Extra tests 2019-09-20 12:27:38 +02:00
Tomaž Jerman
615c2337ab Run deferred scripts 2019-09-20 12:27:38 +02:00
Tomaž Jerman
b1d9fff457 Add support for interval triggers 2019-09-20 10:19:46 +02:00
Tomaž Jerman
f28684a99f Fix typo 2019-09-20 10:19:46 +02:00
Tomaž Jerman
21e7aa1222 Fix mutexes 2019-09-20 09:22:06 +02:00
Denis Arh
d6b7e0c9bf Add integ. tests for automation scripts & triggers 2019-09-11 13:40:06 +02:00
Denis Arh
872f80ae46 Add missing operator on header matcher test 2019-09-05 19:37:55 +02:00
Denis Arh
7be6ee738e Fix mail conditions, polishing 2019-09-04 21:35:11 +02:00
Denis Arh
8c2953a7fc Improve mail header matching, add runner watcher 2019-09-03 18:29:25 +02:00
Denis Arh
6b5ef8aaae Basic system autuomation, mail processing 2019-09-03 09:09:44 +02:00
Denis Arh
0792f04262 Mail GW automation basics
- automation service for runner, script, trigger
 - mailproc service for email parsing
 - MailMessage type & protobuf
2019-09-01 15:33:16 +02:00
Tomaž Jerman
986c69a812 Provide entry count 2019-08-29 17:48:42 +02:00
Tomaž Jerman
a8b5e3b063 Add record importing from json & csv 2019-08-29 17:48:42 +02:00
Denis Arh
2709fab920 Fix integration tests for automation
Broken due new namespace features
2019-08-27 18:17:45 +02:00
Denis Arh
91633e9695 Make automation S&T namespace bound 2019-08-26 08:39:33 +02:00
Denis Arh
0b16df555c Add ability to log masked (string) values 2019-08-25 12:43:35 +02:00
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
33288e4ff6 Additional check for page>0 to satisfy integration tests 2019-08-24 16:49:57 +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
dd4d1d86ae Make sure we do not set offset to 0 2019-08-23 15:12:56 +02:00
Denis Arh
d06f2a44a8 Fix broken automation tests 2019-08-23 13:49:36 +02:00
Denis Arh
a94185a481 Add (and disable) support for executing deferred scripts as scheduled 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
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
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
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
4bbc85e1b4 Migrate storage path to options.StorageOpt struct 2019-08-23 13:49:35 +02:00