Commit Graph

20 Commits

Author SHA1 Message Date
Pascal Bleser
e141a7c8e0 groupware: devtools: add email encryption settings to idmldap.toml 2026-04-03 15:43:06 +02:00
Pascal Bleser
e2294a5e82 groupware: add OIDC authentication support between Groupware backend and Stalwart
* re-implement the auth-api service to authenticate Reva tokens
   following the OIDC Userinfo endpoint specification

 * pass the context where necessary and add an authenticator interface
   to the JMAP HTTP driver, in order to select between master
   authentication (which is used when GROUPWARE_JMAP_MASTER_USERNAME and
   GROUPWARE_JMAP_MASTER_PASSWORD are both set) and OIDC token
   forwarding through bearer auth

 * add Stalwart directory configuration "idmoidc" which uses the
   OpenCloud auth-api service API (/auth/) to validate the token it
   received as bearer auth from the Groupware backend's JMAP client,
   using it as an OIDC Userinfo endpoint

 * implement optional additional shared secret to secure the Userinfo
   service, as an additional path parameter
2026-04-03 15:43:06 +02:00
Pascal Bleser
84f8aa51c8 groupware: use the OIDC client ID 'web' instead of 'groupware' 2026-04-03 15:43:05 +02:00
Pascal Bleser
848be9c0bc groupware: stalwart: add the magic sharing.allow-directory-query config setting, but keep it to false (default) 2026-04-03 15:40:09 +02:00
Pascal Bleser
59459b728d upgrade to Stalwart 0.14.0
* upgrade image version in devtools to 0.14.0

 * fix idmldap configuration to use the cn attribute in order for that
   to also work for groups (groups don't have a uid attribute in the IDM
   built-in LDAP)

 * group resources are now checked against LDAP, changed
   demo-principals.yaml accordingly to refer to a group that exists in
   LDAP as part of the demo data
2026-04-03 15:40:09 +02:00
Pascal Bleser
c1dab178c1 groupware: try an alternative way to configure Stalwart dynamically in the devtools Docker Compose setup, by using separate files and ${STALWART_AUTH_DIRECTORY} to name to file to mount 2026-04-03 15:40:08 +02:00
Pascal Bleser
e6fbcff395 groupware: make everything also work with the built-in LDAP and IDP 2026-04-03 15:40:08 +02:00
Pascal Bleser
2fd0d6c6e1 groupware: devtools: Stalwart: add internal LDAP configuration 2026-04-03 15:40:08 +02:00
Viktor Scharf
bd56928451 fixed connection reset issue. adapted make file to generate swagger docs on mac 2026-04-03 15:40:08 +02:00
Pascal Bleser
f288f84a21 Docker Compose Groupware improvements
* made a few changes in order to further simplify the setup for
   developers of the Groupware backend

 * add STALWART_DOMAIN to deployments/examples/opencloud_full/.env

 * adapt the Stalwart configuration file to not set server.hostname and,
   instead, pick it up from /etc/hostname, which is set by Docker
   Compose as we can use default values for STALWART_DOMAIN there, in an
   analogous fashion to the other containers in that project

 * add config/keycloak/clients/groupware.json to avoid requiring manual
   configuration of Keycloak via the admin web UI

 * Stalwart container:
   - listen for SMTPS on :1465
   - remove the stalwart-logs volume, not needed (logs are going to
     stdout)

 * updated services/groupware/DEVELOPER.md:
   - refer to a variable OCDIR to make instructions more copy-pasteable
   - remove manual Keycloak configuration section as it is now obsolete,
     replaced by provisioning a configuration file instead
2026-04-03 15:40:08 +02:00
Pascal Bleser
118d94b7e1 Refactor groupware service after ADR decision on the Groupware API
* after having decided that the Groupware API should be a standalone
   independent custom REST API that is using JMAP data models as much as
   possible,
 * removed Groupware APIs from the Graph service
 * moved Groupware implementation to the Groupware service, and
   refactored a few things accordingly
2026-04-03 15:38:18 +02:00
Pascal Bleser
03716756a0 fix Stalwart LDAP configuration 2026-04-03 15:38:18 +02:00
Pascal Bleser
5e34c03d3b Use password policy overlay in LDAP and configure Stalwart to use it 2026-04-03 15:38:18 +02:00
Pascal Bleser
1be9684d1f upgrade Stalwart to 0.12 2026-04-03 15:38:18 +02:00
Pascal Bleser
97630f545f minor corrections to the Stalwart configuration 2026-04-03 15:38:18 +02:00
Pascal Bleser
ee919ec5c7 add an OIDC Directory to Stalwart, requires exposing Keycloak port 8080 directly to access the userinfo endpoint using HTTP since the certificates in traefik are self-signed and end up being rejected by Stalwart with no option to bypass the certificate check 2026-04-03 15:38:18 +02:00
Pascal Bleser
bffe5480f9 rename Stalwart fallback admin username from 'admin' to 'mailadmin' since 'admin' exists as a regular user in LDAP and thus won't have access to the administration 2026-04-03 15:38:17 +02:00
Pascal Bleser
806970a9c9 Add Stalwart container to the opencloud_full deployment, using the OpenLDAP container as a directory for user authentication 2026-04-03 15:38:17 +02:00
Thomas Schweiger
2c18d5b010 fix: apply changes from other fixes in compose repo (#1707)
* fix: apply changes from other fixes in compose repo

* temporarily disabled e2e navigation step

---------

Co-authored-by: Viktor Scharf <v.scharf@opencloud.eu>
2025-10-24 22:10:27 +02:00
Ralf Haferkamp
5023642885 cleanup: Move old compose example to devtools directory
We agreed to move the 'opencloud_full' example to a new directory to
avoid confusion with the supported compose examples in
opencloud-compose.

This commit keeps the bare-metal example in place as that is still
mentioned in the documentation.
2025-09-24 08:33:03 +02:00