You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deprecate and remove /cloud/user/signing-key endpoint #1197
With #1191 we're getting one step closer to being able to remove the need to client side created signed urls.
Problem
The signing-key endpoint is the last remaining endpoint offered by the ocs service in OpenCloud (not to be confused with the ocs service in reva). Removing it would mean we could delete the whole service
The concept of client side signed urls has a few drawbacks
The secret used for signing the url leaks the server
The client is able to generate any signed url it likes
The client is in control of the lifetime of the signature
per-user secrets need to be managed and stored on the server side
Solution
Switch all remaining cases where signed urls are needed to be able to download things to use server generated signed urls. Currently client signed urls are used by web at least in these cases:
@kulmann@AlexAndBear file downloads and the archiver are the only place I could find where the signing-key endpoint is still used. Do you know of any other?
For the archiver I guess we'd need to enhance the archiver service itself to be able to return a server signed url for downloading the archive.
@kulmann@AlexAndBear file downloads and the archiver are the only place I could find where the signing-key endpoint is still used. Do you know of any other?
For the archiver I guess we'd need to enhance the archiver service itself to be able to return a server signed url for downloading the archive.
The new avatar URLs are also client side signed urls 🙈 @AlexAndBear could we use blobs with data urls here and download the avatars with authenticated requests?
I think the avatar stuff in web that still references the signing-key endpoint is something historic. The requests go to /dav/avatars/. We don't have anything like that in the OpenCloud server.
Public-link previews look like another client-signed-url case, not among those listed above. The web preview path builds on the same pre-signed oc:downloadURL as the download-button case: it fetches that URL per file and appends the preview parameters to the signed query. Today a plain GET preview on a password-protected link returns 404 (no signature, no credential), reported in:
Activity
rhafer commentedon Jul 9, 2025
@kulmann @AlexAndBear file downloads and the archiver are the only place I could find where the
signing-keyendpoint is still used. Do you know of any other?For the archiver I guess we'd need to enhance the archiver service itself to be able to return a server signed url for downloading the archive.
kulmann commentedon Jul 9, 2025
The new avatar URLs are also client side signed urls 🙈 @AlexAndBear could we use blobs with data urls here and download the avatars with authenticated requests?
AlexAndBear commentedon Jul 9, 2025
The avatar urls are returned via graph endpoint (and stored as blobs) I don't think they don't have anything to do with this.
rhafer commentedon Jul 9, 2025
I think the avatar stuff in web that still references the signing-key endpoint is something historic. The requests go to
/dav/avatars/. We don't have anything like that in the OpenCloud server.JammingBen commentedon Nov 6, 2025
We also need to think about version downloads. Currently, the web client manually constructs the version URL (https://github.com/opencloud-eu/web/blob/v4.2.0/packages/web-client/src/webdav/getFileUrl.ts#L42) and then signs it. It would be nice if the server would also respond with a download URL when requesting versions via a PROPFIND on
/dev/meta/...(given thedownloadURLprop is being requested, of course).feat: add 'oc:downloadURL' to revision endpoints
feat: add 'oc:downloadURL' to revision endpoints
feat: add 'oc:downloadURL' to revision endpoints
feat: leverage server signed urls for the archiver
feat: leverage server signed urls for the archiver
feat: leverage server signed urls for the archiver
feat: allow archiver to work with server signed URLs
michaelstingl commentedon Jun 6, 2026
Public-link previews look like another client-signed-url case, not among those listed above. The web preview path builds on the same pre-signed
oc:downloadURLas the download-button case: it fetches that URL per file and appends the preview parameters to the signed query. Today a plainGETpreview on a password-protected link returns404(no signature, no credential), reported in: