3
0
Commit Graph

49 Commits

Author SHA1 Message Date
Denis Arh
c8d552e6a6 Implement new store infrastructure 2020-08-24 15:40:15 +02:00
Denis Arh
f3e03a58f8 Migrated types to new codegen 2020-08-24 15:39:39 +02:00
Denis Arh
d6b7157463 Add updated-at to scripts, fix prefix-filtering 2020-07-23 19:06:15 +02:00
Denis Arh
da28b761a1 Add healthchecks for db, mail, scheduler, corredor, store 2020-07-11 13:26:52 +02:00
Denis Arh
c89b4713e9 Switch all *after event from dispatch to waitfor
It removes a problem where (http) requests ends before *after script are
executed with canceled context
2020-06-27 21:21:54 +02:00
Denis Arh
75a394f82d Refactor FindByAny() to support context param
This simplifies DI for corredor
2020-06-19 19:34:58 +02:00
Denis Arh
2f064020f0 Improve locking on corredor script update (r/w of last-modified) 2020-06-19 12:42:20 +02:00
Denis Arh
053ac9c09f Use the right variable for client scripts mod-since timestamp 2020-06-09 17:27:12 +02:00
Denis Arh
888d08e9a6 Lower severity when client script bundle does not exist 2020-06-03 13:00:10 +02:00
Denis Arh
10d9dbfcbb Add corredor user lookup cache 2020-05-26 18:42:09 +02:00
Denis Arh
f52ea84f65 Remove gRPC (debug) logging via corteza log facility
If needed, sufficiant logging can be achieved with enviromental variables:
GRPC_GO_LOG_VERBOSITY_LEVEL=99 #
GRPC_GO_LOG_SEVERITY_LEVEL=info # (error, warning, info, fatal)
2020-05-06 09:09:31 +02:00
Denis Arh
7072afff20 More verbose logging on corredor connection 2020-05-05 08:15:43 +02:00
Denis Arh
2f631f055a Corredor TLS certs are now disabled by default 2020-03-27 22:23:24 +01:00
Denis Arh
63eb346a4a Fix server script security
Security params must be processed before procesing iterator
2020-03-27 12:46:58 +01:00
Denis Arh
2fac997b61 Fix script exec permission testing
Explicity triggered scripts are no longer the only source of
permissions - iterators use the same mechanisms
2020-03-26 19:07:14 +01:00
Denis Arh
33721bf870 Refactor corredor service, add supprot for iterators 2020-03-26 19:07:14 +01:00
Denis Arh
db789e10fd Add debug routes for eventbus & corredor service 2020-03-26 19:07:13 +01:00
Denis Arh
ce10e46e71 Refactor corredor service and make it less events-oriented 2020-03-26 19:07:13 +01:00
Denis Arh
44f818e180 Refactor handler ops maker functions 2020-03-26 19:07:13 +01:00
Denis Arh
5cba50e3b2 Update registerTriggers fn() comment 2020-03-26 19:07:13 +01:00
Denis Arh
027fb6af1b Minor var. name fixes 2020-03-26 19:07:13 +01:00
Denis Arh
700fae5e00 Call coredor (via gRPC) with independent context & timeout
Reusing context caused random case of context cancelation
on server side and "illegal buffer" error on corredor
2020-03-12 20:17:28 +01:00
Denis Arh
2aee9f80b9 Add capability to set CORREDOR_MAX_RECEIVE_MESSAGE_SIZE, set default to 16MB 2020-03-04 14:19:41 +01:00
Denis Arh
19e50302df Comply with corredor settings (enabled/disabled) 2020-02-07 13:00:31 +01:00
Denis Arh
4e1a201327 Allow indirect (no current user) script execution 2020-01-31 00:29:15 +01:00
Denis Arh
37079d77e1 Implement if-modified-since logic for client/server script loading 2020-01-30 17:17:42 +01:00
Denis Arh
666145a837 Protobuf codegen, add uiProps 2020-01-29 20:25:49 +01:00
Denis Arh
eeb1a9a831 Refactord manual event type filtering logic & strategy 2020-01-29 08:16:40 +01:00
Denis Arh
2706d9f019 More robust grpc connection testing 2020-01-28 18:51:47 +01:00
Denis Arh
b89b1d1056 Bundle code serving 2020-01-22 18:07:49 +01:00
Denis Arh
b9cd860bf2 Improve script filtering 2020-01-22 17:39:14 +01:00
Denis Arh
0cdc03d60a Min typo fix, import reordering 2020-01-22 08:14:33 +01:00
Denis Arh
9fd7adcaa2 Implements script security, add on-manual sec. check 2020-01-22 07:46:49 +01:00
Denis Arh
c26704b4cb Fix broken tests, typos 2020-01-21 10:52:56 +01:00
Denis Arh
db07e26fc8 Update protobuf, rename event&resource props on triggers 2020-01-20 21:21:25 +01:00
Denis Arh
50fdd5c4c3 Renamed triggers to handlers 2020-01-18 07:05:35 +01:00
Denis Arh
abf4d106bb Improve eventbus & constraints handling
Constraints are now preparsed into active structs
that can be used for matching
2020-01-18 07:05:35 +01:00
Denis Arh
1e096d1abc Unify trigger endpoint names 2020-01-18 07:05:35 +01:00
Denis Arh
1195534dcd Automation REST handler & filter cleanup 2020-01-18 07:05:35 +01:00
Denis Arh
ce1fc3402d Add more tests to pkg/corredor 2020-01-18 07:05:34 +01:00
Denis Arh
04b365d484 Add support for gRPC transport credentials 2020-01-18 07:05:34 +01:00
Denis Arh
ce69229816 Pass request ID to Coredor's exec call 2020-01-18 07:05:34 +01:00
Denis Arh
c0d1594eb3 Refactors corredor initialization, run-as logic & trigger execution 2020-01-18 07:05:34 +01:00
Denis Arh
8a1d808466 Refactor corredor, add tests 2020-01-18 07:05:34 +01:00
Denis Arh
133fe3aab2 Better corredor error response handling 2020-01-18 07:05:34 +01:00
Denis Arh
63f03a2111 Refactor eventbus, scheduler, corredor for naming consistenct 2020-01-18 07:05:34 +01:00
Denis Arh
f109f722f9 Add new corredor service 2020-01-18 07:05:34 +01:00
Denis Arh
b7bc26d647 Add scheduler package, service 2020-01-18 07:05:34 +01:00
Denis Arh
95b49e7061 Add new corredor service 2020-01-18 07:05:34 +01:00