Skip to content

chore: upgrade Stalwart to 1.2.0 - #4618

Open
tammi-23 wants to merge 1 commit into
mainfrom
chore/upgrade-stalwart-1
Open

tammi-23 wants to merge 1 commit into
mainfrom
chore/upgrade-stalwart-1

Conversation

@tammi-23

Copy link
Copy Markdown
Contributor

Description

Upgrades Stalwart in the development environment from 0.16.20 to 1.2.0, and stalwart-cli in the stalwart-import container from 1.0.8 to 2.0.0. The groupware calendar app (#3838) relies on the calendar visibility as reported by Stalwart 1.x.

  • Stalwart 1.x has a new database layout and settings schema and can't start on 0.16 data, so the data volume is renamed to stalwart-data-v1. Existing environments get a fresh, initialized Stalwart on the next start, the old volume is left untouched and can be removed (see dev/docker/stalwart/README.md).
  • idmldap.json is a new snapshot of a Stalwart 1.2.0 server taken with stalwart-cli 2.0, so the default roles already contain the permissions added in 1.2.0 (mail rules, junk e-mail lists, calendar settings, Exchange for administrators).
  • stalwart-cli 2.0 writes snapshots as upsert instead of create, so stalwart-snapshot-passwords now handles both.
  • The README mentions the required CLI version and that accounts Stalwart creates for LDAP users on their first login must not be committed with the snapshot.

AI assistance: Claude Code (claude-opus-5-5) was used to convert and regenerate the snapshot, update the scripts and README, and test the fresh initialization.

Related Issue

How Has This Been Tested?

  • test environment: local docker compose setup with opencloudeu/opencloud:dev built from the groupware branch, Chrome
  • test case 1: fresh Stalwart volume → stalwart-import applies idmldap.json without errors and Stalwart starts in production mode
  • test case 2: snapshot of the freshly initialized server matches idmldap.json (apart from generated ids), including the default roles and their new permissions
  • test case 3: log in as alan → mail app loads the mailboxes
  • test case 4: log in as alan → calendar app loads, the default calendar is selected initially
  • test case 5: upgrade of an existing 1.1.1 setup to 1.2.0 with STALWART_UPDATE_ROLE_PERMISSIONS=true → new permissions are added to the roles (not needed for fresh setups)

Assisted-by: Claude Code:claude-opus-5-5
@tammi-23 tammi-23 added the Type:Maintenance E.g. technical debt, packaging, etc. label Nov 24, 2026
@tammi-23 tammi-23 self-assigned this Nov 24, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type:Maintenance E.g. technical debt, packaging, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant