Skip to content

Self-hosted calendar sync for Outlook and Google

A calendar sync service needs access to every calendar that you connect. It holds a token for each account, and it can read your events. With slotmirror, you deploy the sync into your own Cloudflare account. There is no slotmirror service between your calendars and your deployment.

  • The tokens. Each connected account has an OAuth token, encrypted with AES-256-GCM. The key is a secret that you set.
  • The account data. The email address of each user, the names of the calendars and, for Microsoft accounts, the tenant ID and the object ID.
  • The rules and the activity log. The log has times, counts and error codes, and no event content. Entries older than 90 days are deleted.
  • No event content. Titles, descriptions, locations and attendees are read during a sync and kept only in memory. They are not written to the database. One exception: if blocks cannot be removed, their title stays for 90 days, so that someone can delete them by hand. See Delete data.

You can keep the data in the EU. See Privacy and data location.

  • A Cloudflare account. slotmirror runs today on the Workers Free plan. A large team can need Workers Paid. See Limits.
  • Your own Microsoft Entra app for Microsoft 365 and Outlook.com, and your own Google OAuth client for Google Calendar. You need only the ones for the calendars that you connect.

The Quickstart covers the deployment, the apps and the first rules.

Self-hosting moves some work from a service to you:

  • Google shows a warning. Until Google verifies your OAuth client, it warns that the app is not verified. slotmirror shows a notice about this before the redirect. If the client stays in Testing mode, Google expires its refresh tokens after 7 days. See Google OAuth client.
  • Secrets expire. The client secret of the Entra app has an expiry date. If it expires, token refreshes fail and the sync stops. Before that date, you create a new secret.
  • Updates are yours. You choose when your deployment moves to a new version. See Updating your deployment.
  • It is an early version. The version is below 1.0. Settings and the database can still change between releases.

If you deploy slotmirror for a team, you are its operator. The tokens of every member are then in your Cloudflare account. Set OPERATOR_NOTICE to say who runs the deployment and what you can see. Members see this notice before they connect an account. See Settings reference.

To limit sign-in to your tenant, you need three settings together. See Limit who signs in. An admin can also cap how much detail moves between org accounts and other accounts. See Org accounts and detail caps.