2. Persist Accounts in a CS3 Storage

Technical Story: File system based indexing

The accounts service this ADR refers to no longer exists in current oCIS versions (the owncloud/ocis-accounts repository is archived). User and group management is now handled by the graph, idm and idp services together with external LDAP / Keycloak. See ADR-0003 and ADR-0017 for the external user management direction.

Context and Problem Statement

To set up High Availability (HA) or a geo-replicated setup we need to persist accounts in a distributed way. To efficiently query the accounts by email or username, and not only by id, they need to be indexed. Unfortunately, the bleve index we currently store locally on disk cannot be shared by multiple instances, preventing a scale out deployment.

Considered Options

  • Look into distributed bleve

  • Persist users in a CS3 storage

Decision Outcome

Chosen option: "Persist users in a CS3 storage", because we have one service less running and can rely on the filesystem for geo-replication and HA.

Positive Consequences

  • We can store accounts on the storage using the CS3 API, pushing geo-distribution to the storage layer.

  • Backups of users and storage can be implemented without inconsistencies between using snapshots.

Negative Consequences

  • We need to spend time on implementing a reverse index based on files, and symlinks.