3
0
Commit Graph

892 Commits

Author SHA1 Message Date
Tomaž Jerman
78cb155be3 Fix count expr function when typed values are used 2022-02-14 13:40:06 +01:00
Denis Arh
d74239c735 Improve HTTP server startup, add wrapping handler
HTTP server now initializes much earlier and mounts "waiting"
router with debugging, version and health check routes.

When server is fully activated it switches to "active"
router.

Shutdown stage is also handled with catch-all route.
2022-02-13 18:52:59 +01:00
Denis Arh
e833796aaa Fix actionlog's meta type enc/dec 2022-02-12 12:27:01 +01:00
Denis Arh
1949782ccd Remove unused CustomRowScanner & RowScanners features from store 2022-02-12 09:00:13 +01:00
Denis Arh
53dd7cc292 Validate token and resolve identity from token earlier in the chain. 2022-02-09 10:58:47 +01:00
Denis Arh
d103d60a3d Refactor option definitions 2022-02-08 09:13:56 +01:00
Tomaž Jerman
849ac9410c Use custom token middleware to use JWT via query params 2022-02-07 09:21:31 +01:00
Tomaž Jerman
38a32ddeb3 Fix inconsistent NULL ordering with PGSQL <-> MySQL 2022-02-07 09:21:31 +01:00
Vivek Patel
760aec1c18 Update argument type of set expr function
It changes 3rd argument type os set expr function from TypedValue to interface, since GvalParser parses argument to native types before evaluating the expression.
2022-02-07 09:21:31 +01:00
Denis Arh
a035e6106f Ported options codegen to cue 2022-01-29 12:18:00 +01:00
Denis Arh
0ea543b2a2 Migrate codegen for fed&automation, remove old def dir 2022-01-26 17:18:34 +01:00
Denis Arh
74d6eabf94 Various template & def fixes 2022-01-26 16:27:38 +01:00
Denis Arh
1284371bb3 Add cue tooling & codegen to makefile 2022-01-26 16:27:36 +01:00
Denis Arh
52209c476b Port all v3 codegen to cue-based codegen 2022-01-26 16:25:54 +01:00
Denis Arh
a437913f85 Migrate codegen for envoy to CUE 2022-01-26 16:25:53 +01:00
Denis Arh
3568d0841e Migrate codegen for locale to CUE 2022-01-26 16:25:53 +01:00
Denis Arh
c19ee84f5d Base CUE, def, schemas 2022-01-26 16:25:53 +01:00
Denis Arh
43de7ebba7 Add uncommited codegen changes 2022-01-26 15:41:13 +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
9fe21dd8ce Tweaked CORS settings 2022-01-22 21:47:51 +01:00
Denis Arh
6c7d89a921 Fix user-id claim parsing 2022-01-22 21:47:36 +01:00
Denis Arh
6c3bef0750 Refactor token-issuer (ex-jwt) to be more robust and configurable 2022-01-21 15:31:10 +01:00
Denis Arh
665a15093c Fix how errors are reported/masked 2022-01-21 15:31:09 +01:00
Denis Arh
46675080fe Another set of after-update JWT fixes 2022-01-19 14:55:33 +01:00
Tomaž Jerman
4b113af9cc Allow content-type header to specify the charset 2022-01-18 21:50:19 +01:00
Tomaž Jerman
2c873d269f Add integration tests for namespace import/export 2022-01-18 21:50:19 +01:00
Tomaž Jerman
99a5597547 Fix edgecase where ref value would become nil and panic the system 2022-01-18 21:50:18 +01:00
Tomaž Jerman
9086bf34f4 Improve resource identification
* Stop relying on names (eg. module name),
* use slices as underlying structure to avoid potential hashmap
  order related accidents.
2022-01-18 21:50:18 +01:00
Tomaž Jerman
a47c1112e1 Allow non handle identifiers for related resources 2022-01-18 21:50:18 +01:00
Vivek Patel
f893e8834a Add expr function for sorting an array
It allows ascending/descending sorting along with sorting of native and non-native types
2022-01-18 21:50:18 +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
Denis Arh
771a60abd7 Post dep-upgrade fixes 2022-01-11 10:53:49 +01:00
Denis Arh
2ab2c17a51 Upgrade deps 2022-01-11 10:53:48 +01:00
Peter Grlica
86deaea911 Added find expr function, support for find, has of Vars 2021-12-23 14:43:37 +01:00
Vivek Patel
23a24469ed Refactor minion store
- Extends env variable `MINIO_BUCKET` for more flexibility over bucket name
- Introduces env variable for `MINIO_PATH_PREFIX` for flexibility over bucket paths
- Decouples minio client from New method
- Provides methods for generating bucket name, object name with path using bucket related env variables
- Adds tests
- Fixes issue#295
2021-12-22 21:12:07 +05:30
Tomaž Jerman
d700d76c39 Allow format QL nodes to properly format their arguents 2021-12-21 10:06:06 +01:00
Tomaž Jerman
907cb25ceb Add support for multipart/form-data request parsing 2021-12-21 09:11:51 +01:00
Denis Arh
92c0c3feb7 Add support for additional argument when invoking Corredor script 2021-12-17 12:59:24 +01:00
Denis Arh
922243605d Refactored and cleanedup workflow exection 2021-12-17 12:53:06 +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
Tomaž Jerman
047b647af6 Prevent envoy from panicking for automation blocks with no references 2021-12-09 16:41:16 +01:00
Tomaž Jerman
59ef8da1ac Fix panicking report filter marshaling when invalid 2021-12-09 15:55:53 +01:00
Tomaž Jerman
08ef5ab104 Add missing entry to the expr type registry 2021-12-09 15:09:24 +01:00
Peter Grlica
3473a26793 Added int caster to gval functions 2021-12-08 10:21:50 +01:00
Peter Grlica
d5001341ad Added unix strftime support to gval functions 2021-12-08 10:21:50 +01:00
Peter Grlica
96a1c1de96 Added unit test 2021-12-06 13:19:53 +01:00
Peter Grlica
e433f3303a Added json postfilter, HttpRequest custom type 2021-12-06 13:19:52 +01:00