Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main branch with changes from development branch (incl CoreBundle ^1.2.30) #1588

Merged
merged 201 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
7db5e21
all subscribers moved to corebundle
bbrands02 Jun 30, 2023
127f7bd
composer corebundle with subscribers update
bbrands02 Jun 30, 2023
94d6a9d
Merge remote-tracking branch 'origin/development' into feature/GW-147…
bbrands02 Jun 30, 2023
27f4fa3
small fix
bbrands02 Jun 30, 2023
e14e60d
use statement fixes
bbrands02 Jul 7, 2023
6455660
Merge pull request #1517 from ConductionNL/feature/GW-1470/subscriber…
WilcoLouwerse Jul 10, 2023
2eb080e
Add Read object
rjzondervan Jul 10, 2023
e531b23
Revert read object and add createAuditTrails to entity from/toSchema
WilcoLouwerse Jul 11, 2023
7b32b82
Merge branch 'development' into feature/DIT-166/read-object
WilcoLouwerse Jul 11, 2023
3a9094d
Moved the current dateRead code to CoreBundle
WilcoLouwerse Jul 11, 2023
f3b953e
Marked more old coded as deprecated
WilcoLouwerse Jul 11, 2023
2ec76d0
Lets keep creation dates simple
WilcoLouwerse Jul 13, 2023
e5ce7c5
Added sql query to AuditTrailRepository for finding dateRead information
WilcoLouwerse Jul 13, 2023
821edbe
Mark old stuff as deprecated
WilcoLouwerse Jul 13, 2023
87f6290
Small changes in AuditTrail and AuditTrailRepository for dateRead
WilcoLouwerse Jul 13, 2023
6c7f4da
Remove default larping bundle
WilcoLouwerse Jul 14, 2023
44dc2ed
Merge pull request #1521 from ConductionNL/feature/remove-larping-bundle
WilcoLouwerse Jul 14, 2023
cd74777
Also do composer require/upgrade when you increase a bundle version!
WilcoLouwerse Jul 14, 2023
a845119
Merge pull request #1523 from ConductionNL/feature/fix-composer-lock
WilcoLouwerse Jul 14, 2023
ad6fe76
Add configurable option for maxRequestSize
WilcoLouwerse Jul 14, 2023
21a9d7a
Merge pull request #1524 from ConductionNL/feature/helm-max-request-size
WilcoLouwerse Jul 14, 2023
47f2812
Performance fix by not running endless subobjects
rjzondervan Jul 14, 2023
997ad66
Merge remote-tracking branch 'origin/development' into fix/performance
rjzondervan Jul 19, 2023
80d1ab3
Added link to coreBundle in README.md
WilcoLouwerse Jul 20, 2023
4711361
Merge pull request #1526 from ConductionNL/fix/performance
rjzondervan Jul 20, 2023
00a36a1
upgrade pvc.yaml storage size
WilcoLouwerse Jul 21, 2023
8bd37f6
Merge pull request #1527 from ConductionNL/feature/helm-pvc-nfs
WilcoLouwerse Jul 21, 2023
2074dcd
Make SyncService checkObjectEntity public
WilcoLouwerse Jul 21, 2023
66e0bcb
Use a working cache apdapter for symfony
rjzondervan Jul 24, 2023
a12e5d0
Merge remote-tracking branch 'origin/development' into fix/cache
rjzondervan Jul 24, 2023
867aa07
Merge pull request #1528 from ConductionNL/fix/cache
rjzondervan Jul 24, 2023
05c5cf8
Merge branch 'development' into feature/DIT-166/read-object
WilcoLouwerse Jul 25, 2023
e76b130
Small note for AuditTrail->getCreationDate function
WilcoLouwerse Jul 25, 2023
6a2d746
Merge pull request #1525 from ConductionNL/feature/DIT-166/read-object
WilcoLouwerse Jul 25, 2023
a3e6e32
small fix for /me endpoint
WilcoLouwerse Jul 25, 2023
427046f
Merge pull request #1529 from ConductionNL/fix/me-endpoint
WilcoLouwerse Jul 25, 2023
2ede412
Fixes for toArray embedded
WilcoLouwerse Aug 1, 2023
681ba22
Merge pull request #1531 from ConductionNL/feature/dit-171/show-embedded
WilcoLouwerse Aug 1, 2023
2d0f018
Remove CORS override from helm file
rjzondervan Aug 3, 2023
d6fc7c6
Merge pull request #1533 from ConductionNL/fix/cors-errors
rjzondervan Aug 3, 2023
9f31243
Merge remote-tracking branch 'origin/main' into fix/cors-errors
rjzondervan Aug 8, 2023
51b5654
Update how we show synchronization data in object response _self
WilcoLouwerse Aug 8, 2023
2330f7b
Add resource requests to helm file, add installed dependencies to rea…
rjzondervan Aug 8, 2023
0d95daf
Merge remote-tracking branch 'origin/development' into feature/gw-154…
rjzondervan Aug 8, 2023
b59d924
Reset composer files to development default version
rjzondervan Aug 8, 2023
e7e03be
Revert bundles.php and symfony.lock to their prior state
rjzondervan Aug 8, 2023
b4bd6a9
Add warning and link to readme.md about up-to-date documentation
rjzondervan Aug 8, 2023
1f8281f
Add a link to CoreBundle repo
WilcoLouwerse Aug 8, 2023
6558fb8
Merge pull request #1534 from ConductionNL/feature/gw-1545/resource-r…
rjzondervan Aug 8, 2023
0fc84ea
Allow */* as accept-type for getting /admin/objects
WilcoLouwerse Aug 8, 2023
239e3b0
Make the log level of monolog configurable
rjzondervan Aug 9, 2023
7a8476c
Add new settings to helm repository
rjzondervan Aug 10, 2023
a85319b
Merge pull request #1535 from ConductionNL/fix/xz/log-settings
rjzondervan Aug 10, 2023
983d557
Fix object->synchronization relation
WilcoLouwerse Aug 11, 2023
73728f8
Fixes for Entity MaxDepth during toArray function
WilcoLouwerse Aug 11, 2023
424b7f9
Merge pull request #1536 from ConductionNL/feature/OC-778/entity-maxD…
WilcoLouwerse Aug 11, 2023
72330c5
Merge branch 'development' into feature/OC-779/federalization
WilcoLouwerse Aug 14, 2023
1101ae1
Merge pull request #1537 from ConductionNL/feature/OC-779/federalization
WilcoLouwerse Aug 14, 2023
3395456
added check
smisidjan Aug 14, 2023
956f152
Merge pull request #1538 from ConductionNL/feature/OC-778/coreBundle-…
WilcoLouwerse Aug 15, 2023
8728f0e
Update corebundle and messenger
rjzondervan Aug 16, 2023
3a58fdd
Merge remote-tracking branch 'origin/development' into feature/XZ-160…
rjzondervan Aug 16, 2023
b25fd17
Merge pull request #1539 from ConductionNL/feature/XZ-160/cache-async
rjzondervan Aug 16, 2023
3144998
Prevent DateInterval creation with impossible dateInterval
WilcoLouwerse Aug 17, 2023
b1c1924
Merge pull request #1540 from ConductionNL/feature/DIT-169/max-try-co…
WilcoLouwerse Aug 17, 2023
149de00
Helm repo version 1.5.2: higher resoures for gateway php container
rjzondervan Aug 18, 2023
cfb8d89
Merge pull request #1541 from ConductionNL/fix/GW-1545/updated-resour…
rjzondervan Aug 18, 2023
e2f431f
Re-resize pvc
rjzondervan Aug 18, 2023
053ee5c
Merge pull request #1542 from ConductionNL/fix/GW-1545/updated-resour…
rjzondervan Aug 18, 2023
c0bd17b
Synchronization->objectEntity cascade persist
bbrands02 Aug 25, 2023
b06c53a
Merge pull request #1543 from ConductionNL/fix/synchronization-object…
bbrands02 Aug 25, 2023
85c44e0
Don't throw errors if there are no groups, log result from OIDC provider
rjzondervan Sep 5, 2023
3d2f924
Codacy fixes
rjzondervan Sep 5, 2023
a4029f1
Merge pull request #1544 from ConductionNL/fix/beheer-358/adfs-error
rjzondervan Sep 5, 2023
8c28590
Hotfix: add missing ;
rjzondervan Sep 5, 2023
88ec330
Merge pull request #1545 from ConductionNL/fix/beheer-358/adfs-error
rjzondervan Sep 5, 2023
b831dc0
add loggingConfig to the fromSchema function
smisidjan Sep 5, 2023
1f9d646
Add references to templates and add a constructor
rjzondervan Sep 8, 2023
c94398e
Fix a bug in embedded rendering
rjzondervan Sep 8, 2023
cdbb6fd
Added from en toSchema for a Template
smisidjan Sep 8, 2023
7fb0b94
Merge pull request #1547 from ConductionNL/feature/DIT-177/Templates-…
rjzondervan Sep 8, 2023
ac4fdac
Merge pull request #1546 from ConductionNL/feature/NH-7/log-request-h…
smisidjan Sep 12, 2023
6240451
added accept type for html
smisidjan Sep 12, 2023
78c0ef2
Merge pull request #1548 from ConductionNL/feature/BEL-9/html
smisidjan Sep 12, 2023
68c73fd
Merge branch 'feature/DIT-177/waardepapieren' into feature/BEL-9/html
Sep 12, 2023
09b0f7b
fix template entity
smisidjan Sep 12, 2023
ca7baeb
Add new message to the messenger, render stringValue if objectValue h…
rjzondervan Sep 12, 2023
54ecb4b
BEL-10 added text/docx to getAcceptType
smisidjan Sep 13, 2023
10bcf68
deleted unnecessary sql queries
smisidjan Sep 13, 2023
839571e
Merge pull request #1550 from ConductionNL/feature/BEL-9/html
smisidjan Sep 13, 2023
5bee5c0
fix acceptType
smisidjan Sep 13, 2023
de7d0a9
Merge pull request #1551 from ConductionNL/feature/BEL-10/docx
smisidjan Sep 14, 2023
a91d4aa
Add xlsx and csv to content types on admin endpoints
rjzondervan Sep 14, 2023
d94a549
Merge pull request #1552 from ConductionNL/fix/BEL-17/respons-types
rjzondervan Sep 14, 2023
7f93648
Merge pull request #1549 from ConductionNL/feature/XZ-163/couple-async
rjzondervan Sep 15, 2023
f778607
Compatibility fixes for amqp, mongodb and rabbitmq
rjzondervan Sep 15, 2023
32bb122
Merge pull request #1553 from ConductionNL/fix/bRK-50/compatibility-f…
rjzondervan Sep 15, 2023
c70ebd5
Make sure the default admin user always has the PATCH admin scope
WilcoLouwerse Sep 22, 2023
93448b1
Merge pull request #1554 from ConductionNL/feature/default-patch-scope
WilcoLouwerse Sep 22, 2023
e96e601
Merge branch 'development' into feature/MF-9/action-cronjob-user
WilcoLouwerse Sep 22, 2023
d48a8c7
Added user_id to Action and Cronjob
WilcoLouwerse Sep 22, 2023
14c2fd0
Add (&remove) CronJob->user to session
WilcoLouwerse Sep 22, 2023
b00958f
update comment in ObjectEntityService
WilcoLouwerse Sep 25, 2023
843d831
No longer set default owner & org in SyncService use subscriber for this
WilcoLouwerse Sep 26, 2023
93cc302
User->Organization not Organisation
WilcoLouwerse Sep 26, 2023
a82c344
Cache doctrine responses
rjzondervan Sep 26, 2023
0fcca80
Merge remote-tracking branch 'origin/development' into feature/MF-39/…
rjzondervan Sep 26, 2023
d0bd0f6
Merge pull request #1556 from ConductionNL/feature/MF-39/doctrine-in-…
rjzondervan Sep 26, 2023
c49d78d
Organization not Organisation
WilcoLouwerse Sep 26, 2023
def2de1
Add Cronjob->userId to user feedback for running cronjobs/actions
WilcoLouwerse Sep 26, 2023
7c71bcd
Fix typo in session currentCronjobUserId
WilcoLouwerse Sep 26, 2023
6a0ce3a
Merge branch 'development' into feature/MF-9/action-cronjob-user
WilcoLouwerse Sep 26, 2023
e54e931
Fix /admin/organizations endpoint with Z ipv S
WilcoLouwerse Sep 28, 2023
d5767d1
Undo this change for User->organisation for now untill GW-1583 is done
WilcoLouwerse Sep 28, 2023
8765844
Don't forget other side of the relation
WilcoLouwerse Sep 28, 2023
9ce5a5f
style shizzl in user.php
WilcoLouwerse Sep 28, 2023
e44401c
User->organization because reverting to organisation took too much time
WilcoLouwerse Sep 28, 2023
e031ae1
Some cleanup in syncService
WilcoLouwerse Sep 28, 2023
b31842f
Merge branch 'feature/GW-1583/organization-with-z' into feature/MF-9/…
WilcoLouwerse Sep 29, 2023
3fda4f8
Fix cache pools
rjzondervan Sep 29, 2023
1bb3423
Merge pull request #1560 from ConductionNL/feature/MF-9/action-cronjo…
WilcoLouwerse Oct 2, 2023
9404603
Show less in login response
WilcoLouwerse Oct 2, 2023
c1d0723
Merge pull request #1562 from ConductionNL/feature/login-response
WilcoLouwerse Oct 2, 2023
3fa8cf0
added custom endpoint
smisidjan Oct 2, 2023
ee73ca7
Fix applications for now.
rjzondervan Oct 3, 2023
9409102
Array instead of ArrayCollection
rjzondervan Oct 3, 2023
5781d8c
Merge pull request #1563 from ConductionNL/fix/hack-applications
rjzondervan Oct 3, 2023
e84a0c0
Small fix on count
rjzondervan Oct 3, 2023
95b84ad
Merge remote-tracking branch 'origin/development' into feature/MF-46/…
Oct 3, 2023
c017f08
added todo
smisidjan Oct 3, 2023
3b17e74
Merge pull request #1565 from ConductionNL/feature/MF-46/klanten
smisidjan Oct 3, 2023
0521012
Merge pull request #1564 from ConductionNL/fix/hack-applications
rjzondervan Oct 3, 2023
c4d83ff
re-enable finding application on domain
rjzondervan Oct 6, 2023
66a294d
Merge pull request #1566 from ConductionNL/fix/hack-applications
rjzondervan Oct 6, 2023
017aaa5
Circumvent max-depth settings if value is expected to be in json format
rjzondervan Oct 11, 2023
cf57ae2
Also set correct format if maxLength is passed
rjzondervan Oct 12, 2023
367c102
remove unnecessary or
rjzondervan Oct 12, 2023
62b4d98
Merge pull request #1567 from ConductionNL/fix/XRZ-1/max-depth
rjzondervan Oct 12, 2023
62fc8c7
Fix a missing variable
rjzondervan Oct 12, 2023
c3712de
Merge pull request #1568 from ConductionNL/fix/XRZ-1/create-object
rjzondervan Oct 12, 2023
49e5e34
Make api prefixes dynamic
rjzondervan Oct 12, 2023
0fe478e
Write the correct value to log
rjzondervan Oct 17, 2023
4fa1334
Merge pull request #1571 from ConductionNL/fix/beheer-358/correct-data
rjzondervan Oct 17, 2023
990eb79
Add accept type for aggregations to zzcontroller
rjzondervan Oct 18, 2023
39c5b1b
Merge pull request #1569 from ConductionNL/fix/MF-46/dynamic-path
rjzondervan Oct 18, 2023
d940191
Merge pull request #1572 from ConductionNL/feature/OP-82/aggregations
rjzondervan Oct 18, 2023
05db2ed
Create an alternate route for working without refresh token, or groups
rjzondervan Oct 18, 2023
23a9d5b
Add some docblocks
rjzondervan Oct 18, 2023
c06b55a
Remove unecessary capabilities from nginx container
rjzondervan Oct 18, 2023
ff556ed
Merge pull request #1573 from ConductionNL/fix/beheer-358/alternate-r…
rjzondervan Oct 18, 2023
0c0d2a7
remove to do
WilcoLouwerse Oct 23, 2023
bd5b8c0
Add creating an actionEvent on log
rjzondervan Oct 24, 2023
73e0051
update comment in EmailService
WilcoLouwerse Oct 24, 2023
7997e58
Working conditions
rjzondervan Oct 24, 2023
11c7f30
Split adding session data and sending a log
rjzondervan Oct 24, 2023
b301d8b
Add docblock for entitymanager
rjzondervan Oct 24, 2023
e24d12a
added new log email (example) template
WilcoLouwerse Oct 24, 2023
e53c1f2
Merge remote-tracking branch 'origin/feature/IM-83/trigger-action-on-…
WilcoLouwerse Oct 24, 2023
beb6c06
Merge pull request #1574 from ConductionNL/feature/IM-83/trigger-acti…
rjzondervan Oct 24, 2023
9dbf4d3
Fixes for handling logging actionEvents and creating emails
WilcoLouwerse Oct 24, 2023
978efcd
Added sendinblue-mailer to composer
WilcoLouwerse Oct 24, 2023
defc20f
Exclude Notice and Warning from Log Actions
WilcoLouwerse Oct 24, 2023
1ee5cca
Also accept group as field for groups
rjzondervan Oct 24, 2023
0de5dd8
Merge pull request #1575 from ConductionNL/feature/IM-85/log-email-te…
WilcoLouwerse Oct 24, 2023
bfc72e1
Remove refresh token and default to fallback route as ADFS does not c…
rjzondervan Oct 24, 2023
6bd64b4
Merge pull request #1576 from ConductionNL/fix/beheer-358/also-accept…
rjzondervan Oct 24, 2023
68b4d82
catch another ADFS error
rjzondervan Oct 24, 2023
bdf8be1
Merge pull request #1577 from ConductionNL/fix/beheer-358/also-accept…
rjzondervan Oct 24, 2023
f2f350e
Fix a typo
WilcoLouwerse Oct 24, 2023
3c504bb
Merge pull request #1578 from ConductionNL/feature/typo-fix
WilcoLouwerse Oct 24, 2023
425954d
Renamed log created event, consistency with other default gateway events
WilcoLouwerse Oct 26, 2023
746340a
Merge pull request #1579 from ConductionNL/feature/IM-86/rename-log-e…
WilcoLouwerse Oct 26, 2023
8b01cae
Make sure to not create new (duplicate) subobjects when we don't need to
WilcoLouwerse Oct 27, 2023
40cf6f5
Merge pull request #1580 from ConductionNL/feature/DIT-197/hydrate-fix
WilcoLouwerse Oct 30, 2023
daf4262
Merge branch 'development' into feature/GW-1588/applications-domains
WilcoLouwerse Nov 9, 2023
1f4773d
Some code cleanup for login, applications and session (/logging) stuff
WilcoLouwerse Nov 9, 2023
a0e8f16
Small changes for storing user id & org id in session (better logs)
WilcoLouwerse Nov 9, 2023
eee5ed8
Improve login error responses & added dql finding applications by domain
WilcoLouwerse Nov 9, 2023
8e9b129
Added note for later, only allow user login on app/domain they may use
WilcoLouwerse Nov 9, 2023
b84ab13
remove one line if statements
WilcoLouwerse Nov 10, 2023
d88ab12
Merge pull request #1581 from ConductionNL/feature/GW-1588/applicatio…
WilcoLouwerse Nov 10, 2023
2c809b4
Added BL for synchronization sha
WilcoLouwerse Nov 10, 2023
a67cb9f
Merge pull request #1582 from ConductionNL/feature/OP-125/synchroniza…
WilcoLouwerse Nov 10, 2023
f7c1ce3
Log more data for Error, Critical and higher level logs
WilcoLouwerse Nov 17, 2023
d59ac91
Let's always log Method
WilcoLouwerse Nov 17, 2023
f466051
Fix & added mongoDBFilter to error logs
WilcoLouwerse Nov 17, 2023
20e3b94
Added logging for request calls & responses on Sources
WilcoLouwerse Nov 20, 2023
a53a77d
Fixes in logging context
WilcoLouwerse Nov 20, 2023
b6620dd
Fix to prevent duplicates when loading in testdata
WilcoLouwerse Nov 23, 2023
65e3a66
Merge pull request #1583 from ConductionNL/feature/test-data-duplicat…
WilcoLouwerse Nov 23, 2023
4db2eea
Merge branch 'development' into feature/MF-24/improved-logging
WilcoLouwerse Nov 23, 2023
d3c7b5c
Added loggingConfig for Sources
WilcoLouwerse Nov 23, 2023
de9d304
Don't show irrelevant properties in logs for sources
WilcoLouwerse Nov 23, 2023
e92115c
Some codacy fixes
WilcoLouwerse Nov 23, 2023
1daef08
Merge pull request #1584 from ConductionNL/feature/MF-24/improved-log…
WilcoLouwerse Nov 23, 2023
919e23e
Let's remove read secure for Gateway->loggingConfig
WilcoLouwerse Nov 24, 2023
743558b
Merge pull request #1585 from ConductionNL/feature/MF-24/source-loggi…
WilcoLouwerse Nov 24, 2023
7396daf
Clear query,result & metadata doctrine cache before migrations in init
WilcoLouwerse Nov 24, 2023
81fab5b
Merge pull request #1586 from ConductionNL/feature/clear-cache-for-mi…
WilcoLouwerse Nov 24, 2023
a236b5a
Require latest version CoreBundle or higher
WilcoLouwerse Nov 27, 2023
bccb7b4
Merge pull request #1587 from ConductionNL/feature/BEHEER-447/require…
WilcoLouwerse Nov 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,5 @@ RABBITMQ_PASSWORD=changeme!
PUBLICCODE=

APP_DEFAULT_REDIRECT_URL=http://localhost/login/oidc/dex

LOG_LEVEL=debug
93 changes: 92 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/commonground-gateway)](https://artifacthub.io/packages/search?repo=commonground-gateway)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/b6de6f6071044e1783a145afa27f1829)](https://www.codacy.com/gh/CommonGateway/CoreBundle/dashboard?utm_source=github.com&utm_medium=referral&utm_content=CommonGateway/CoreBundle&utm_campaign=Badge_Grade)


The Common Gateway repository provides a quick Kubernetes wrapper for the Common Gateway Symfony Bundle. In other words, it doesn't aim to be its own code base but simply contains the files needed to create Kubernetes images and Helm installers for the core bundle.

If you are looking for the Common Gateway code base, please refer to the Core Bundle repository instead, as that's where you will find all the appropriate documentation.
If you are looking for the Common Gateway code base, please refer to the [Core Bundle repository](https://github.com/CommonGateway/coreBundle) instead, as that's where you will find all the appropriate documentation.

## Quick start (for local development)
> **Warning**
> The most recent documentation for setting up your common gateway is maintained in [this document](https://github.com/CommonGateway/CoreBundle/blob/master/docs/features/Installation.md). The documentation in this document might or might not be up to date with this documentation.


> **Dependencies**
> - To clone the codebase to your locale machine you will need Git
> - To run the gateway on your local machine, you will need Docker Desktop.
Expand Down Expand Up @@ -91,3 +96,89 @@ If you want your cluster to be able to set up its own certificates for SSL/HTTPS
$ kubectl apply -f letsencrypt-ci.yaml --kubeconfig=[path-to-your-kubeconfig]
````

### Installed dependencies
The common gateway relies on a number of software dependencies the helm chart installs alongside the common gateway. If you want however to connect to existing versions of these dependencies, you can disable them.

#### PostgreSQL
The common gateway is dependent on a SQL database for internal operations. We recommend to use PostgreSQL as the database type the common gateway was designed with. However we also support MySQL, MariaDB and Microsoft SQL Server, although the latter defers from newer standards and henceforth can cause some issues and therefore is not recommended.

To disable PostgreSQL: set the setting `postgresql.enabled` to `false`, and enter a SQL url (`pgsql://`, `psql://` for postgres, `mysqli://` for MySQL and MariaDB or `pdo_sqlsrv://`) in the field `postgresql.url`. Also, if the database is a Microsoft SQL Server database, don't forget to change the field `databaseType` to mssql.

The PostgreSQL database that is installed if `postgresql.enabled` is set to `true` is installed with [this chart](https://artifacthub.io/packages/helm/bitnami/postgresql/12.1.2). This chart contains default resource requests that are not overwritten.

In case the resource requests and/or limits have to be overridden this can be done using the following parameters:
```yaml
postgresql:
primary:
resources:
limits: {}
requests: {}
```
The default requests are 256Mi memory and 200m vCPU.


#### MongoDB
For serving content quickly the common gateway relies on a document cache which is run in MongoDB. MongoDB is also used to store the logs of the common gateway.

To disable MongoDB: set the setting `mongodb.enabled` to `false`, and enter a SQL url (`mongodb://`) in the field `mongodb.url`.

The MongoDB database that is installed if `mongodb.enabled` is set to `true` is installed with [this chart](https://artifacthub.io/packages/helm/bitnami/mongodb/13.4.4). This chart does not contain default resource requests, therefore the gateway chart overrides these requests with the following values:

```yaml
mongodb:
resources:
requests:
cpu: 1
memory: 6Gi
```

These limits are set to high limits to accommodate for large databases, and can be tweaked to lower values if the size of the database is not expected to exceed a couple of Gigabytes.

#### RabbitMQ
To run events from the event-driven architecture asynchronously, the common gateway uses a message queue on RabbitMQ.

The RabbitMQ dependency can be disabled by setting `rabbitmq.enabled` to `false`. However, it is not possible at this time to connect to an external instance of rabbitmq, this means that events cannot be run asynchronously, and that the workers have to be disabled by setting `consumer.replicaCount` to `0`.

The RabbitMQ message queue that is installed if `rabbitmq.enabled` is set to `true` is installed with [this chart](https://artifacthub.io/packages/helm/bitnami/rabbitmq/11.91.1). This chart does not contain default resource requests, therefore the gateway chart overrides these requests with the following values:

```yaml
rabbitmq:
resources:
requests:
cpu: 200m
memory: 256Mi
```

These are values that are not observed to be exceeded on busy environments with large numbers of asynchronous events.

#### Redis
For session storage and key value caching, a redis cache is in place.

The Redis dependency can be disabled by setting `redis.enabled` to `false`. However, it is not possible at this time to connect to an external instance of redis. This means that in order to have consistent session storage the common gateway can only be run on one container by setting the `replicaCount` parameter to `1`.

The Redis cache that is in stalled if `redis.enabled` is set to `true` is installed with [this chart](https://artifacthub.io/packages/helm/bitnami/redis/17.3.11). This chart does not contain default resource requests, therefore the gateway chart overrides these requests with the following values:

In case the resource requests and/or limits have to be overridden this can be done using the following parameters:
```yaml
redis:
master:
resources:
requests:
cpu: 20m
memory: 128Mi
```

#### Gateway UI
The common gateway also offers its own User Interface for admin.

This user interface is installed with [this chart](https://raw.githubusercontent.com/ConductionNL/gateway-ui/development/helm/).

The resource requests for these containers are set to:

```yaml
gateway-ui:
resources:
requests:
cpu: 10m
memory: 128Mi
```
5 changes: 5 additions & 0 deletions api/.env
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ DATABASE_URL="postgresql://db_user:[email protected]:5432/db_name?serverVers
###> nelmio/cors-bundle ###
CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'
###< nelmio/cors-bundle ###

###> symfony/sendinblue-mailer ###
# MAILER_DSN=sendinblue+api://KEY@default
# MAILER_DSN=sendinblue+smtp://USERNAME:PASSWORD@default
###< symfony/sendinblue-mailer ###
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ RUN set -eux; \
pecl install \
apcu-${APCU_VERSION} \
redis \
amqp \
amqp-1.11.0 \
sqlsrv-${SQLSRV_VERSION} \
mongodb \
; \
Expand Down
4 changes: 3 additions & 1 deletion api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"alcaeus/mongo-php-adapter": "^1.2",
"api-platform/core": "^2.6",
"beberlei/doctrineextensions": "^1.3",
"commongateway/corebundle": "<1.1",
"commongateway/corebundle": "^1.2.30",
"composer/package-versions-deprecated": "1.11.99.3",
"conduction/commongroundbundle": "dev-feature-gateway",
"conduction/digidbundle": "dev-master",
Expand All @@ -34,6 +34,7 @@
"monolog/monolog": "^2.8.0",
"nelmio/cors-bundle": "^2.1",
"phpdocumentor/reflection-docblock": "^5.2",
"phpoffice/phpspreadsheet": "^1.29",
"phpoffice/phpword": "^0.18.2",
"respect/validation": "^2.2",
"setono/cron-expression-bundle": "^1.5",
Expand All @@ -53,6 +54,7 @@
"symfony/proxy-manager-bridge": "5.3.*",
"symfony/runtime": "5.3.*",
"symfony/security-bundle": "5.3.*",
"symfony/sendinblue-mailer": "5.3.*",
"symfony/serializer": "5.3.*",
"symfony/twig-bundle": "5.3.*",
"symfony/validator": "5.3.*",
Expand Down
Loading
Loading