3
0
Commit Graph

125 Commits

Author SHA1 Message Date
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
Peter Grlica
4e43020bf0 Added registry, updated handlers
Updated modules

Added function definition endpoint
2021-08-11 17:25:04 +02:00
Denis Arh
969581343c Implement split-credentials-check auth flow 2021-08-05 20:09:44 +02:00
Andre Perry
6977ade5df Add ValidConfiguration and test for external auth provider 2021-08-05 19:09:48 +02:00
Denis Arh
02b137d19e Fix non-OIDC IdP skip due to invalid req. check 2021-07-23 06:41:08 +02:00
Denis Arh
205da42186 Move seeder package under pkg 2021-07-22 07:58:45 +02:00
Denis Arh
64ab501394 Remove RBAC reload on provisioning 2021-07-21 21:58:22 +02:00
Denis Arh
dca5757fe7 Add system user to context for system CLI ops 2021-07-15 12:31:51 +02:00
Denis Arh
5962d19cd0 Fix external auth provider management 2021-07-14 21:38:52 +02:00
Vivek Patel
568a9e6262 Adds fake data generation for compose records and users
- For users, It takes struct fields and generated value using third party pkg
- For records, It takes module fields type and options to generate the value
- Also adds cli integration for it
2021-07-13 21:27:44 +05:30
Denis Arh
20e05280b3 System wide RBAC changes 2021-07-08 11:42:18 +02:00
Denis Arh
b923953ca5 Removing superuser logic 2021-07-08 11:24:12 +02:00
Denis Arh
48e1d0e4aa Optimized boot levels order & logic 2021-07-08 11:23:18 +02:00
Denis Arh
7941e7ba4a Add general suport for new role types 2021-07-08 11:22:11 +02:00
Vivek Patel
537791389e Adds integration tests for compose, system and automation 2021-07-02 17:57:51 +05:30