Denis Arh
2d07357a75
Test HTTP server options before init/activation
...
Prevents full server initialization and activation on broken connections
and when Corteza can not listen for HTTP requests.
2022-09-28 07:27:42 +02:00
Tomaž Jerman
077788d9b8
Remove operations from models and connections
...
For now, operations will be defined on a DB driver.
2022-09-15 13:55:21 +02:00
Denis Arh
8ff4015192
Re-enable primary-store healtcheck
2022-09-14 12:18:43 +02:00
Denis Arh
06a9c61e5c
Store codegen fixes (primary-key & DAL changes)
2022-09-14 12:18:43 +02:00
Denis Arh
58d26c91a2
Resource definitions (CUE) modifications (MySQL)
...
A series of small modifications on resource defintions
to simplify MySQL handling. Text fields included into indexes have
length and existing lengths are lowered to fit into ~3k char limitation.
Most of the changed attributes are can function within the new
limitations anyway.
2022-09-14 12:18:43 +02:00
Denis Arh
44ba447678
Add support for meta data on attribute types (rdbms:type=integer)
2022-09-14 12:18:43 +02:00
Denis Arh
6939d9e226
Model definition fixes (dal, index)
2022-09-14 12:18:43 +02:00
Denis Arh
4e96804d46
Add support for RDBMS index creation
2022-09-14 12:18:43 +02:00
Denis Arh
a6c0d8ecee
Base support for creating RDBMS tables from models
2022-09-14 12:18:43 +02:00
Peter Grlica
7f0fe201db
Deprecated Corteza plugin support
...
The current plugin support was not stable enough in go >= 1.18, so the
current implementation was dropped for a future alternate solution.
2022-09-13 10:57:42 +02:00
Tomaž Jerman
319a29fdc6
Cleanup system/reporter - DAL/pipeline migration
2022-09-01 16:55:21 +02:00
Denis Arh
4bb8270189
Fix DAL implementation with Envoy
2022-08-23 08:12:38 +02:00
Tomaž Jerman
6799d3f8de
Fix global value store URL construction with custom paths
2022-08-22 15:59:49 +02:00
Denis Arh
818f0ccb9b
Generate models for all resources
...
Some refactoring of CUE files
2022-08-21 15:54:03 +02:00
Denis Arh
ccfb4c09bb
Restructured CUE resource definitions (struct, attributes)
2022-08-17 19:12:20 +02:00
Denis Arh
345eee72cb
Various DAL codebase improvements and cleanups
2022-08-10 21:38:04 +02:00
Vivek Patel
75b7d78eac
Fix SMTP values in settings on server restart
...
It addresses issue with SMTP_* setting value, which were overwritten by values from env on server restart and also, removed default value of SMTP_HOST and SMTP_PORT, which were also causing the same issue.
2022-08-04 18:06:29 +05:30
Tomaž Jerman
bba02ec9df
Implement base valuestore for env variables
...
* Base facility to store generic values,
* integrate with templates,
* integrate with workflows.
2022-08-02 13:13:28 +02:00
Denis Arh
89eefa5bc2
Use model/attribute terminology in CUE files
2022-08-01 19:01:19 +02:00
Denis Arh
353d6ad37d
Unified CUE file names
2022-08-01 18:22:55 +02:00
Denis Arh
39bf9b75ea
Deprecate ACTIONLOG_COMPOSE_RECORD_ENABLED
2022-08-01 08:55:46 +02:00
Denis Arh
389cf7d997
Misconfigure server start no longer outputs CLI usage help
2022-07-28 19:57:11 +02:00
Tomaž Jerman
9d44fa8679
Fix RDBMS filter construction for applications and flags
...
* Add a new byFlag resource filter feature to support filtering
using flags.
False by default since only system applications use it.
* Add filter definitions to flag pkg resource.
* Add support for using []string inside byValue filters.
2022-07-27 16:53:04 +02:00
Tomaž Jerman
aaa536441b
Prevent boot levels from panicking if default language not set
2022-07-18 18:03:18 +02:00
Vivek Patel
07a8fdbbd5
Fix test notification cli command
...
Also, addresses issue with SMTP_* env vars value, which were ignored on server startup.
2022-07-18 17:12:12 +05:30
Denis Arh
d1d00d7771
Handle new auth options for signature algo & key
2022-07-14 11:09:26 +02:00
Denis Arh
e5a50a7191
Move auth initialization steps to a dedicated initAuth boot fn
2022-07-14 11:09:26 +02:00
Vivek Patel
0d9b63635e
Add env config for webapp sentry DSN
...
Also, updates sentry DSN entry in config.js for webapp
2022-07-11 14:58:18 +05:30
Denis Arh
f7f18af5f4
Update description of AUTH_*_LIFETIME options
2022-07-04 13:03:06 +02:00
Vivek Patel
e7a36e26c5
Add env options to enable/disable Compose record action log
...
It will enable/disable action log entry for compose record create, update or delete.
2022-07-04 12:53:39 +02:00
Denis Arh
013053d8a8
Fix label handling (broken after store refactor)
2022-07-03 13:20:00 +02:00
Denis Arh
bdd9318f93
Refactor and improve DAL implementation and init
...
Changes:
- Boot initialization follows standard impl
- Improved DAL connection management (adding, reloading, removing)
- Cleaner and more detailed logging
- Primary store connection is now reused when added to DAL
2022-07-01 18:13:54 +02:00
Denis Arh
8cbb2026e0
Fix and extend RDBMS upgrade procdures
2022-06-29 15:46:37 +02:00
Tomaž Jerman
d7be55948c
Quick refactor of other services for DAL
...
@todo cleanup, refactor
2022-06-14 12:08:18 +02:00
Tomaž Jerman
1be620d787
Tweak dal connection meta for easier FE work
...
* Default capabilities to empty slice
* Include primary connection connection parameters in REST
responses.
2022-05-31 13:00:21 +02:00
Tomaž Jerman
a70087ace8
Refactor primary DAL connection to be preserved in DB
2022-05-30 15:43:03 +02:00
Tomaž Jerman
35469c4749
Tweak DAL setup to prevent the server freezing
...
Errors are now logged and they don't kill the setup process.
This will be improved.
2022-05-26 18:13:54 +02:00
Tomaž Jerman
a0a6314ea9
Introduce DAL model ident formatter to simplify the interfaces
2022-05-26 17:41:15 +02:00
Tomaž Jerman
94fbe4bd44
Improve DAL sensitivity level
...
* Integrate with pkg/dal package
* Additional validation/constraints
2022-05-26 13:24:16 +02:00
Tomaž Jerman
ac07f133b5
Expand DAL REST API structure and exposed resources
...
* Cleanup DAL connection REST endpoints, remove primary connection
endpoint.
* Make connection search endpoint return federation nodes and
primary connection along user-defined DAL connections
* Expose DAL connection drivers
* Prepare DAL sensitivity level resource
2022-05-25 14:10:52 +02:00
Peter Grlica
fb5b0b59f8
Fixed federation uri node generation
2022-05-25 09:41:29 +02:00
Denis Arh
17406362dd
Rename Connection to DalConnection
2022-05-24 14:29:22 +02:00
Denis Arh
691e3e2900
Fix session & cookie exp. setting logic
...
Ensures that cookies on non-permanent login are set without max-age to
ensure removal when browser/tab is closed.
Sessions stored in the database are now updated and expiration value
slides forward in time with every activity from the user.
2022-05-24 10:46:21 +02:00
Denis Arh
dd3d25a5ae
Deprecate/remove AUTH_JWT_EXPIRY
...
JWT expiration is now controled via AUTH_OAUTH2_ACCESS_TOKEN_LIFETIME
2022-05-24 10:44:54 +02:00
Tomaž Jerman
bda52ed992
Add endpoint for primary DAL connection
2022-05-20 15:37:33 +02:00
Tomaž Jerman
383b07d1d7
Base DAL service integration into Compose services
2022-05-20 15:37:33 +02:00
Tomaž Jerman
e6264c8195
Add support for record page button settings
2022-04-26 03:04:03 +02:00
Denis Arh
fe107a6cfc
Additional error wraps for clarity
2022-04-23 16:34:07 +02:00
Denis Arh
773d64636f
Refactored store codegen, replace squirrel with goqu
2022-04-23 16:34:04 +02:00
Peter Grlica
679af2f556
Added CLI jwt token duration option
2022-04-05 09:01:40 +02:00