Denis Arh
bf166323e7
Fix broken messaging spec.json
2019-08-25 19:02:23 +02:00
Denis Arh
5a8df3f246
Mask sensitive settings values
...
Closes #14
2019-08-25 12:44:31 +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
99b02bd37b
Revert to with(ctx) pattern for automation script loader
2019-08-24 13:05:42 +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
466938c7d2
Remove clutter from .realize.yml and make it more compact
2019-08-24 09:39:13 +02:00
Denis Arh
dd4d1d86ae
Make sure we do not set offset to 0
2019-08-23 15:12:56 +02:00
Denis Arh
b6262cefdd
Merge branch 'automation'
2019-08-23 14:38:49 +02:00
Denis Arh
9c85319120
Disable filtering by ref in .drone.yml
2019-08-23 14:11:11 +02:00
Denis Arh
d06f2a44a8
Fix broken automation tests
2019-08-23 13:49:36 +02:00
Denis Arh
683f415e8c
Remove compose_trigger table after data migration
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
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
cf13c950a0
Fix automation API docs
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
3db9368a99
Add ability to pass custom struct as module & record to script runner
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
82e2c58d0a
Fix test tasks in Makefile
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
4bbc85e1b4
Migrate storage path to options.StorageOpt struct
2019-08-23 13:49:35 +02:00
Denis Arh
8848d0ed94
Add ability to pass param to codegen.sh
2019-08-23 13:49:35 +02:00
Denis Arh
dff0df54cb
Add basic support for script-runner (protobuf, grpc)
2019-08-23 13:49:35 +02:00
Denis Arh
b15629afe2
Fix .drone.yml to build on version tags
2019.9.0-rc.1
2019-08-23 11:40:07 +02:00
Denis Arh
9a10e10a40
Fix broken compose service tests
2019-08-23 08:39:57 +02:00
Tomaž Jerman
5f35988dd7
Fix paging offset
2019-08-22 13:52:19 +02:00
Denis Arh
af4d15e262
Ad XLSX exporting capabilities
2019-08-15 16:43:25 +02:00
Denis Arh
5423cf43c8
Add JSON(L) and CSV record exporting capabilities
...
API endpoints, CSV and JSON record encoders, dedicated svc/repo methods
2019-08-15 16:42:51 +02:00
Denis Arh
5ee1a90655
Switch to rh package for handling record paging
2019-08-15 12:38:22 +02:00
Denis Arh
53c946efe8
Reset page to 1 when page=0
2019-08-15 12:36:39 +02:00
Denis Arh
69602148dc
Add ability to precheck (in db query) access on resources
2019-08-14 17:19:10 +02:00
Denis Arh
bf8deb9e0c
Explicitly log (on debug level) crashes on HTTP requests
2019-08-14 17:18:45 +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
Denis Arh
aabff3df6e
Add sentry wrapper, improve recover() logic
2019-08-14 17:07:56 +02:00