Commit b037e89
Groupware: upgrade Stalwart to 0.16 (#2714)
* chore: Upgrade to Stalwart 0.16
* Stalwart 0.16 introduces a different way of configuring the service,
requiring to first bootstrap in recovery mode, then using the
stalwart-cli (which is distributed separately) to load a NJSON file
that contains the configuration objects, and then restarting Stalwart
itself but in regular mode
* the TOML configuration file is replaced by a small JSON file in
dev/docker/stalwart/stalwart-config.json, and the JSON configuration
snapshot dev/docker/stalwart/idmldap.json
* the docker-compose.yml has been modified to
- have the stalwart container check for a .initialized file in the
mounted data volume and if that file does not exist, it loops
endlessly until it is there, sleeping 1s in between checks; when
that file has been created by the stalwart-import container; and
when that happens, the stalwart process is stopped and restarted in
regular mode
- have an additional container stalwart-import that also mounts the
stalwart-data volume, and if the .initialized file does not exist
there yet, waits for the stalwart process to be ready (checking for
its healthz endpoint), and when that happens, it imports the
configuration snapshot using stalwart-cli, and then creates the
.initialized file
* since stalwart-cli is currently not distributed as a docker
container, we create one on-the-fly using an inline dockerfile in the
docker-compose.yml
* changed the built-in IDM LDAP's authentication password as Stalwart
is configured to expect that to be 'admin' instead of
'some-ldap-reva-password', which will make porting changes between
this Docker Compose project and the opencloud_full one that is used
for developing OpenCloud backend services a lot easier
* added OC_LDAP_CACERT to point to the LDAP certificate file
* added GROUPWARE_JMAP_BASE_URL, GROUPWARE_JMAP_MASTER_USERNAME and
GROUPWARE_JMAP_MASTER_PASSWORD environment variables to opencloud
containers
* wip: fixing dev-stack
* fix: adjust jmap login
* wip: added idmldam.json to prettierignore
* chore: prettier formatting + ignore stalwart NDJSON snapshot
* fix LDAP configuration for the 'description' (full name) of users in Stalwart: must use displayName instead of description
* chore: moved stalwart scripts
* wip: working with rolling and dev
* fix: adjust formatting
* wip: fixing timing issue
* wip: prettier formating
* stalwart-snapshot-passwords: import from node: instead of using require()
* add a README.md to explain how to update the Stalwart configuration
* fixed typos
---------
Co-authored-by: tammi-23 <t.thamm@opencloud.eu>1 parent 88ace2d commit b037e89
8 files changed
Lines changed: 229 additions & 125 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
This file was deleted.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
0 commit comments