3
0

139 Commits

Author SHA1 Message Date
Peter Grlica
65fa3d1551 Fixed SMTP options env values 2022-03-21 15:06:28 +01:00
Peter Grlica
d72870a77d Fixed options parameter, more verbose info output, hit handling on panic 2022-03-21 13:06:50 +01:00
Peter Grlica
f33336b21d Added global profiler setting, options to apigw handlers 2022-03-21 12:59:01 +01:00
Peter Grlica
476084a3bf Added profiler to apigw 2022-03-21 12:59:01 +01:00
Denis Arh
7bde98697a Corteza discovery
- It provides mappings of corteza resources(Namespaces, Modules, Records, Users) along with values to corteza discovery indexer.
- It also save recordLogs for create, update, deletion of resources.
- Extend settings to hold discovery enabled/disabled flag
- Adds URL of compose resources for namespace and record and for module still pending, added todo with notes to code
2022-02-22 17:13:59 +05:30
Denis Arh
a81f35d5a2 Nice api landing & 404 pages 2022-02-21 18:56:09 +01:00
Denis Arh
f66ab4550a Implement asset serving 2022-02-21 15:46:21 +01:00
Denis Arh
7fa5e43d08 Add HTTP_SERVER_ASSETS_PATH option
Fix description for AUTH_ASSETS_PATH
2022-02-21 13:45:11 +01:00
Denis Arh
a709f0f411 Refactor, cleanup logger initialisation 2022-02-17 17:21:01 +01:00
Denis Arh
22c47d6ba7 Add webconsole 2022-02-17 17:21:01 +01:00
Tomaž Jerman
bc1550938f Prevent compose-system import cycles 2022-02-17 13:11:50 +01:00
Denis Arh
23c7f357fb Fix "disconnect" on SQLite (data lose) 2022-02-16 20:34:36 +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
d103d60a3d Refactor option definitions 2022-02-08 09:13:56 +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
1284371bb3 Add cue tooling & codegen to makefile 2022-01-26 16:27:36 +01:00
Denis Arh
c19ee84f5d Base CUE, def, schemas 2022-01-26 16:25:53 +01:00
Denis Arh
f9c8066e2d Implement token validation & identity decoding for websockets 2022-01-21 17:45:01 +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
46675080fe Another set of after-update JWT fixes 2022-01-19 14:55:33 +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
60020f8510 Upgrade go-chi&co 2022-01-11 10:53:49 +01:00
Vivek Patel
c3516dd184 Allow version in DB_DSN for dev mode
If server is executed through Makefile we set BUILD_VERSION in .env and use it to replace {version} in DB_DSN.

This would help developers to automatically use different db when switching between versions.
2022-01-07 13:04:17 +05:30
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
Vivek Patel
a2091dbbf6 Add Corteza OIDC support
This provides `well know` endpoint for corteza which defines a set of values that can be retrieved by a client in order to self-configure.

Added route for `public-keys` which can help a client to determine if the public key is changed since the last time and automatically update itself to use this new information.
2021-12-06 13:55:29 +05:30
Tomaž Jerman
420b5ee195 Implement support for base password constraints 2021-11-22 13:36:32 +01:00
Denis Arh
614d2b3015 Initial support for plugins 2021-11-02 18:45:08 +01:00
Denis Arh
0b69d1a2e3 Support SMTP server config via setting with dynamic reload 2021-10-21 11:45:23 +02:00
Peter Grlica
94d1e89ac3 Refactored messagebus out of service layer 2021-10-19 08:56:31 +02:00
Tomaž Jerman
5acd267470 Fix improper auth context when processing automation scripts 2021-10-07 10:48:58 +02:00
Vivek Patel
124b9e2a05 Instantiates API GW after system service
Fixes workflow filter panics after reloading API GW routes
2021-10-06 19:50:30 +05:30
Denis Arh
6c8bec2c3c Re-enable API Gateway route handling (/api/gateway/...)
API Gateway routes are now bind under <base>/api/gateway.

This also removes custom route method validation and
handles not-found responses with a chi's NotFound method
2021-10-03 15:51:35 +02:00
Tomaž Jerman
0d429fa641 Improve API GW route mounting for easier remounting 2021-10-03 13:57:15 +02:00
Denis Arh
2ee926940a Cleanup app settings, implement env var to enable res. translatons 2021-10-01 10:08:58 +02:00
Vivek Patel
54cbfe20d8 Adds JWT token generation methods
- Generates token encoded with user and save it to store
- Updated token generation method usage in Corredor and Impersonalization
2021-09-22 21:09:55 +02:00
Denis Arh
1e02164c01 Implement access to lang lists in the (current) app settings 2021-09-22 11:26:14 +02:00
Denis Arh
75c5efb520 Move resource locale initial load to boot proc 2021-09-22 11:26:14 +02:00
Denis Arh
1b3a811cfd Add resource limiting for users 2021-09-22 07:16:40 +02:00
Denis Arh
c6f95e858f Extend settings to hold federation enabled/disabled flag 2021-09-14 07:44:31 +02:00
Vivek Patel
3ac2a1f3fa Extends user add cli command
- Adds flag `make-password-link` to generate temp token to create users password
- Adds route and handler for create user password
- Updates few auth label translation reference
- Fixes reset-password issue with existing login session
- Updates tests
2021-09-12 12:49:34 +05:30
Denis Arh
922f4c3138 Add explicit option for enabling RBAC logging 2021-08-26 17:52:21 +02:00
Denis Arh
77b593a192 Refactor log init, add new env options, filter 2021-08-26 17:28:50 +02:00
Peter Grlica
34aaad7800 Refactored pipelines, errors 2021-08-26 10:36:38 +02:00
Denis Arh
3a9348500b Refactor lang loading, support sorting, enabling 2021-08-25 22:46:15 +02:00
Denis Arh
04d274fb70 Improve lang-detection on backend 2021-08-25 16:10:53 +02:00
Denis Arh
5d6945cec9 Add locale handling, translation dec/enc and serving 2021-08-23 19:10:21 +02:00
Peter Grlica
da9100287c Refactored services, rest and rdbms
Added tests

Added ac to routes and functions

Proxy processer and auth servicer

Added options and extensive logging

Fixed calls to rbac in service, added default http handler on gateway root
2021-08-11 17:25:10 +02:00
Peter Grlica
9fe52398a9 Added workflow processer 2021-08-11 17:25:09 +02:00