* feat(graph): eliminate LDAP read-after-write on create/update Every graph LDAP create/update wrote the entry, then immediately re-read it back by DN solely to recover the entry ID for the response model. Against a replicated directory reached through a proxy, that read-back can hit a lagging replica and fail or return stale data. When oCIS generates the UUID itself (GRAPH_LDAP_SERVER_UUID disabled, the default), the read-back returns nothing new: create responses are now synthesized from the data already sent, and update responses are built by folding the applied modifications onto the entry read before the write. When the directory assigns the ID (GRAPH_LDAP_SERVER_UUID enabled), creates keep the existing read-back since the generated ID cannot otherwise be recovered. New ldap_writeback.go with two pure helpers: - attrsFromAddRequest: flatten an AddRequest for ldap.NewEntry (create paths) - applyModifyToEntry: fold a ModifyRequest (Replace/Add/Delete, case-insensitive, non-mutating, ByteValues populated for octet-string id parity) onto a copy of the pre-read entry (update paths) All 9 write sites updated: - creates (user, group, education user/class/school): synthesize when the ID is client-generated, keep the read-back when the server assigns it - updates (user, education user): fold the ModifyRequest onto the pre-read entry; the AccountEnabled trailing override and the rename read-back inside changeUserName are preserved (rename is out of scope) - education school update: updateSchoolProperties now returns its ModifyRequest so the caller can fold it; the displayName ModifyDN rename is folded as a displayName attribute replace - education class update: pre-read widened from name/id only to the full education-class attribute set so classification/externalID are not dropped from the response; the externalID ModifyDN rename is folded as an attribute replace Model builders are untouched, preserving the response shape. Existing update tests were reconciled: read-back Search mocks that are no longer issued were removed and the pre-read fixtures now carry the full baseline entry, with all assertions unchanged. OCISDEV-1033 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix: hardcoded groupAttributeMap.id and wrong getLDAPGroup filter * fix(graph): reject octet-string IDs without server-assigned UUIDs Octet-string ID attributes (e.g. Active Directory's objectGUID) are assigned by the directory server and require GRAPH_LDAP_SERVER_UUID=true. With GRAPH_LDAP_SERVER_UUID=false oCIS generates the ID and writes it as a string UUID, so an octet-string ID attribute would be decoded from raw string bytes and produce a corrupt ID on both the read-back and the synthesize path. NewLDAPBackend now rejects this incompatible combination at startup instead of silently returning bad IDs. Also adds regression tests for the id-attribute and group-name lookup fixes: - CreateGroup / CreateEducationClass synthesize the response id under the configured GroupIDAttribute (not a hardcoded attribute name) - getLDAPGroupByNameOrID filters by the group name attribute, not the user one Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix: update the staled DN * test(graph): assert no read-back by search scope, not hard-coded DN The synthesize-on-create test matched the read-back on a hard-coded createdDN whose correctness relied on the school base DN being empty. Match on ScopeBaseObject instead: DN-independent and precise about the read-back being eliminated. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix: fixed calling it with a nil argumets. prevent the slice mutations * chore: tests --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
ownCloud Infinite Scale
- ownCloud Infinite Scale
Introduction
ownCloud Infinite Scale (oCIS) is the new file sync & share platform that will be the foundation of your data management platform.
Make sure to download the latest released version today!
Quickstart
For details of the commands used see the Minimalistic Evaluation Guide for oCIS with Docker.
mkdir -p $HOME/ocis/ocis-config \
mkdir -p $HOME/ocis/ocis-data
sudo chown -Rfv 1000:1000 $HOME/ocis/
docker pull owncloud/ocis
docker run --rm -it \
--mount type=bind,source=$HOME/ocis/ocis-config,target=/etc/ocis \
--mount type=bind,source=$HOME/ocis/ocis-data,target=/var/lib/ocis \
owncloud/ocis init --insecure yes
docker run \
--name ocis_runtime \
--rm \
-it \
-p 9200:9200 \
--mount type=bind,source=$HOME/ocis/ocis-config,target=/etc/ocis \
--mount type=bind,source=$HOME/ocis/ocis-data,target=/var/lib/ocis \
-e OCIS_INSECURE=true \
-e PROXY_HTTP_ADDR=0.0.0.0:9200 \
-e OCIS_URL=https://localhost:9200 \
owncloud/ocis
Use as URL localhost:9200 and the user/password printed.
Overview
Clients
Infinite Scale allows the following ownCloud clients:
to synchronize and share file spaces with a scalable server backend based on reva using open and well-defined APIs like WebDAV and CS3.
Web Office Applications
Infinite Scale can integrate web office applications such as:
Collaborative editing is supported by the WOPI application gateway.
Authentication
Users are authenticated via OpenID Connect using either an external IdP like Keycloak or the embedded LibreGraph Connect identity provider.
Installation
With focus on easy install and operation, Infinite Scale is delivered as a single binary or container that allows scaling from a Raspberry Pi to a Kubernetes cluster by changing the configuration and starting multiple services as needed. The multiservice architecture allows tailoring the functionality to your needs and reusing services that may already be in place like when using Keycloak. See the details below for various installation options.
Important Readings
Before starting to set up an instance, we highly recommend reading the Prerequisites, the Deployment section and especially the General Information page describing and explaining information that is valid for all deployment types.
Run ownCloud Infinite Scale
Use the Official Documentation
See the Install Infinite Scale on a Server for a production ready deployment starting with a Raspberry Pi, a single server or VM.
Use the ocis Repo as Source
Use this method to build and run an instance with the latest code. This is only recommended for development purposes.
The minimum go version required is 1.25.10.
Note that you need a C compile environment installed as a prerequisite because some dependencies, like reva, have components that require C-Go libraries and toolchains. The command installing for debian based systems is: sudo apt install build-essential.
To build and run a local instance with demo users:
# get the source
git clone git@github.com:owncloud/ocis.git
# enter the ocis dir
cd ocis
# generate assets
make generate
# build the binary
make -C ocis build
# initialize a minimal oCIS configuration
./ocis/bin/ocis init
# run with demo users
IDM_CREATE_DEMO_USERS=true ./ocis/bin/ocis server
# Open your browser on http://localhost:9200 to access the bundled web-ui
All batteries included: no external database, no external IDP needed!
Documentation
Admin Documentation
Refer to the Admin Documentation - Introduction to Infinite Scale to get started with running oCIS in production.
Development Documentation
See the Development Documentation - Getting Started to get an overview of Requirements, the repository structure and other starting points.
Security
See the Security Aspects for a general overview of security related topics. If you find a security issue, please contact security@owncloud.com first.
Contributing
We are very happy that oCIS does not require a Contributor License Agreement (CLA) as it is Apache 2.0 licensed. We hope this will make it easier to contribute code. If you want to get in touch, most of the developers hang out in our matrix channel or reach out to the ownCloud central forum.
Infinite Scale is carefully internationalized so that everyone, no matter what language they speak, has a great experience. To achieve this, we rely on the help of volunteer translators. If you want to help, you can find the projects behind the following links:
Transifex for ownCloud web and Transifex for ownCloud (Select the resource by filtering for ocis-).
Please always refer to our Contribution Guidelines.
End User License Agreement
Some builds of stable ownCloud Infinite Scale releases provided by ownCloud GmbH are subject to an End User License Agreement.
Copyright
Copyright (c) 2020-2023 ownCloud GmbH <https://owncloud.com>