3
0
Commit Graph

106 Commits

Author SHA1 Message Date
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
Denis Arh a229d0ec5f Refactor options & env loading to respect order of execution 2021-06-29 13:44:46 +02:00
Denis Arh a94e39b393 Make env file loading more stable 2021-06-28 17:56:15 +02:00
Denis Arh 6496027ab4 Add --env-file param and improve overall env-var loading 2021-06-21 11:35:18 +02:00
Vivek Patel a3d5b7d21e Adds validation for corredor steps in workflow
- Adds check at workflow step level for corredorExec function
- Adds `disabled` flag for corredor related functions from `workflows/functions` api response if corredor is disabled
2021-05-26 21:58:47 +05:30
Denis Arh 41dc9d8658 Basepath cleanup & improvements 2021-05-21 09:35:52 +02:00
Denis Arh 28e1774cd2 Rework/cleanup log stacktrace level, add LOG_STACKTRACE_LEVEL to control it 2021-05-21 06:58:41 +02:00
Peter Grlica bb1043181c Added SAML service 2021-05-18 08:07:50 +02:00
Denis Arh 70dedcaaba Refactor & move websocket code under pkg 2021-05-13 14:08:54 +02:00
Vivek Patel 7d58795123 Adds watcher at service level and sends reminders via websocket 2021-05-13 14:08:54 +02:00
Vivek Patel 1e126f8981 Refactors sending pending prompts via websocket and Adds gorilla/websocket to go.mod 2021-05-13 14:08:54 +02:00
Vivek Patel ac72bd7bcb Improves sending pending prompts via websocket and adds config for log enabled for websocket 2021-05-13 14:08:54 +02:00
Vivek Patel 21c9e9010e Sends pending prompts via websocket 2021-05-13 14:08:54 +02:00
Vivek Patel d6b3278b6e Implements websocket along with in memory websocket sessions.
- Implements route for websocket
- Adds default config and encoder for websocket messaging
2021-05-13 14:08:54 +02:00
Denis Arh 63dbe7024d Fix failed mount on disabled webapps 2021-05-11 08:08:28 +02:00
Denis Arh 1d59a3acf2 Allow custom URL prefix for all corteza endpoints
Add new env. variables and options
 - HTTP_BASE_URL to control URL prefix, defaults to /
 - HTTP_SSL_TERMINATED to explicitly set if Corteza is running behind HTTPS
Refresh and document webapp/Makefile with more dev tasks
Fix all absolute URLs in applications, logos, icons
Improve logic behind integrated webapp serving, inject/replace <base href> tag according to URL prefix
Prevent mounting api & webapps to the same base
2021-05-09 16:47:19 +02:00
Peter Grlica d81c3339fe Refactored messagebus handlers to consumers, removed readers, added
eventbus consumer
2021-04-26 08:54:03 +02:00
Peter Grlica 8bba825706 Added rest api 2021-04-21 10:19:50 +02:00
Denis Arh 64c9b664df Added messagebus, generated store files, workflow triggers 2021-04-21 10:19:50 +02:00
Denis Arh 2f54a9611e Fixed another TLS typo 2021-03-29 08:52:09 +02:00