3
0
Commit Graph

134 Commits

Author SHA1 Message Date
Denis Arh
0ea543b2a2 Migrate codegen for fed&automation, remove old def dir 2022-01-26 17:18:34 +01:00
Denis Arh
a4e5d2691a Fix invoker/runner mixup & move exec access-control check higher 2022-01-25 15:34:50 +01:00
Denis Arh
e203300736 Fix logging workflow functions 2022-01-24 17:48:22 +01:00
Denis Arh
6c3bef0750 Refactor token-issuer (ex-jwt) to be more robust and configurable 2022-01-21 15:31:10 +01:00
Tomaž Jerman
4b113af9cc Allow content-type header to specify the charset 2022-01-18 21:50:19 +01:00
Denis Arh
59ec77e204 Refactor JWT implementation 2022-01-18 21:50:18 +01:00
Denis Arh
3ffa0ef8be Fixing codebase after JWT lib switch 2022-01-11 15:35:05 +01:00
Denis Arh
72999ca692 Replacing dgrijalva/jwt-go with lestrrat-go/jwx 2022-01-11 10:56:17 +01:00
Denis Arh
60020f8510 Upgrade go-chi&co 2022-01-11 10:53:49 +01:00
Peter Grlica
177eb2f1bd JWT workflow handler test 2022-01-11 08:30:13 +01:00
Tomaž Jerman
3a1d62d2a1 Remove debugging leftovers 2021-12-21 10:04:55 +01:00
Tomaž Jerman
907cb25ceb Add support for multipart/form-data request parsing 2021-12-21 09:11:51 +01:00
Denis Arh
a89a28b330 Fix run-as issue persistance after trigger was removed 2021-12-17 12:59:24 +01:00
Denis Arh
922243605d Refactored and cleanedup workflow exection 2021-12-17 12:53:06 +01:00
Denis Arh
87f08d8bfb Fix run-as issue persistance after trigger was removed 2021-12-15 06:43:59 +01:00
Vivek Patel
0564fe7190 Add support for role permission cloning
It clones all RBAC rules from one role to another, but also removes all existing rules from role.
2021-12-10 00:54:59 +05:30
Peter Grlica
eecf867090 Added jwt generate wf function 2021-12-08 10:21:50 +01:00
Denis Arh
486a5752b2 Tune workflow session flushing frequency 2021-12-08 09:55:53 +01:00
Vivek Patel
3241ff4ec2 Fixes corredor uint64 conversion
- It fixes roundedID issue for WF step corredor automation script executor by adding case for slice of interface in sanitizeMapStringInterface to fix missing ID conversion for it
2021-11-15 23:39:12 +05:30
Denis Arh
7fb993d784 Resolve duplicate issues 2021-11-04 11:19:26 +01:00
Denis Arh
7b065769da Revert "Updates WF step verification logic before creating graph"
This reverts commit e2e7510c07.
2021-11-04 10:53:33 +01:00
Denis Arh
556ffc5ec4 Fixes res. translation enc/dec (accents, html) 2021-10-21 20:49:33 +02:00
Denis Arh
415982c8fd Improve workflow-trigger registration on startup
In situation when there is a combination of
invalid trigger and/or workflow but workflow
issues are not set, boot procedure crashed.

This is due to combination of old wf/trigger
setup that was successfuly saved before special
trigger verification was introduced.
2021-10-21 11:03:42 +02:00
Vivek Patel
e2e7510c07 Updates WF step verification logic before creating graph
- Fixes duplicate issues for function, iterator and gateway steps
- Extends workflow tests for above scenario
2021-10-18 12:54:13 +05:30
Denis Arh
96a27b13ad Elevate permissions for user lookup when registering triggers, iterators 2021-10-08 17:40:11 +02:00
Tomaž Jerman
859aec34eb Revert "Fixes Wf duplicate issues for gateway steps"
This reverts commit d4bf6fc6bb.
2021-10-08 17:18:01 +02:00
Vivek Patel
d4bf6fc6bb Fixes Wf duplicate issues for gateway steps
Prevents gateway steps from verifying again by fixing return logic for converting those step definitions into workflow.Step instances
2021-10-07 15:08:48 +05:30
Denis Arh
179381ef08 Improve workflow & system tests, logging
A set of changes touching different parts of system
all related to initialization of system users and
groups
2021-10-03 17:53:41 +02:00
Tomaž Jerman
2def92d41f Tweak expr record value selection and bool casting
* properly handle casting of false values (empty string)
* add support for record.values.xyz expressions where values is not set
2021-10-01 12:40:23 +02:00
Tomaž Jerman
4092f1bfc7 Add a call stack to prevent infinite WF invocations 2021-10-01 10:08:58 +02:00
Tomaž Jerman
f865d63bc1 Add a call stack to prevent infinite WF invocations 2021-10-01 10:08:58 +02:00
Tomaž Jerman
951f6e9e17 Add context role support for workflows 2021-10-01 10:08:58 +02:00
Tomaž Jerman
f9398a6ebf Ignore workflow issues when working with triggers 2021-09-27 12:47:51 +02:00
Tomaž Jerman
e7fb1e3e07 Tweak typed value Array casting; add missing selected prop 2021-09-27 10:42:35 +02:00
Denis Arh
806dbfaa01 Implement invoker and runner wf scope vars 2021-09-23 07:37:49 +02:00
Denis Arh
3515cf2a06 Fix trigger loading on workflow execution
Triggers are now loaded directly from store and
without access control
2021-09-23 07:01:55 +02:00
Denis Arh
5b5bec9767 Covert ID (uint64) values before JSON encode
This is problematic in two places:
 - accessing JSON serialized meta data on action log
 - serializing Corredor script argument
2021-09-22 19:43:32 +02:00
Tomaž Jerman
3ba9c61986 Fixup envoy codegen 2021-09-22 11:26:14 +02:00
Denis Arh
948e587ed9 Implement access control for resource translation management 2021-09-22 11:26:14 +02:00
Tomaž Jerman
8cae39f231 Extend codegen for system resources
* Rename generated services
* Add definitions for reports
2021-09-22 11:26:14 +02:00
Denis Arh
3e746c3b57 Improve resource-translation locale codegen
Do NOT use key (string) as a fallback in case
of a missing translation. Return empty string
2021-09-22 11:26:14 +02:00
Tomaž Jerman
cea8ca39d3 Additional codegen tweaks 2021-09-22 11:26:14 +02:00
Denis Arh
f40f7982c7 Add run-as validation for subset of triggers 2021-09-03 16:50:53 +02:00
Peter Grlica
828a044a67 Added oauth2 outbound auth handler 2021-09-02 15:14:40 +02:00
Tomaž Jerman
03bea8d9bd Add function to add recipients 2021-08-30 09:39:13 +02:00
Denis Arh
62c1571bdc Add configurable locale reloading (via options) 2021-08-25 17:07:14 +02:00
Denis Arh
ca86a36a5d Make service actions translatable
String placeholders are now wrapped with
double curly brackets for consistency
2021-08-23 19:10:21 +02:00
Peter Grlica
49a9e5fdd5 Added duration to apigw pipeline, fixed int64 input to jsenv 2021-08-19 10:38:06 +02:00
Peter Grlica
6645ac0c66 Reload routes on filter update, jsenv update, http handler body fix 2021-08-18 14:10:14 +02:00
Tomaž Jerman
244b0cf8ed Rework workflow step scheduling to improve stacktraces
The initial implementation caused them to be flaky when working
with loops.
2021-08-17 09:18:50 +02:00