* feat(invitations): configurable Keycloak actions + working ocis_full SMTP The invitations service already triggers Keycloak execute-actions-email after provisioning a guest (service.Invite -> backend.SendMail -> gocloak.ExecuteActionsEmail). Two things still limited it: - The required actions were hardcoded to UPDATE_PASSWORD,VERIFY_EMAIL. They are now configurable via INVITATIONS_KEYCLOAK_EXECUTE_ACTIONS (comma-separated, same default). Unknown actions are logged and skipped, and the service falls back to the defaults if none remain valid so a guest always has a setup path. - The Keycloak realm shipped with the ocis_full example had an empty smtpServer, so Keycloak silently dropped every mail it tried to send, including the guest invitation mail. The realm now points SMTP at the bundled mailpit (mailserver:1025). Verified: execute-actions-email delivers to mailpit against the ocis_full realm; go test ./services/invitations/... ./ocis-pkg/keycloak/... -race passes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: David Walter <david.walter@kiteworks.com> * fix(invitations): return the created user as invitedUser in the response service.Invite echoed the request body unchanged, leaving the invitedUser relation of the Graph invitation response empty, so a client could not learn the identity of the guest that was just created. The keycloak backend now records the created user (OWNCLOUD_ID, email, user type) on the invitation. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: David Walter <david.walter@kiteworks.com> * refactor(invitations): pass Keycloak actions through verbatim (no allowlist) Address review (@kobergj): the configured execute-actions no longer need to match a hardcoded enum. UserAction is now a string type passed to Keycloak as-is, so operators can configure any required action their Keycloak supports without oCIS keeping a list in sync. The convenience constants remain, the default (UPDATE_PASSWORD, VERIFY_EMAIL) is unchanged, and validation is left to Keycloak. Removes UserActionFromString and the two lookup maps. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: David Walter <david.walter@kiteworks.com> --------- Signed-off-by: David Walter <david.walter@kiteworks.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Deployment Examples
These docker-compose deployment examples are referenced in the documentation on doc.owncloud.com. Therefore, please create an issue on the documentation issue tracker prior to major changes like moving, renaming or massively changing deployment examples.