10 min read #OpenCloud#UX#Sovereignty

OpenCloud · Guest access

Guests without an account: access by email link

Until now, working with external people meant choosing between an anonymous public link and a full account. OpenCloud 9.0.0 adds guest access: you enter an email address in the share dialog, the guest receives a personal link that is valid for 30 minutes and works only once, and then works in the browser for 24 hours without a password. Every access is tied to an email address and can be revoked at any time. The feature is off by default and is enabled with `OC_ENABLE_GUEST_LINKS=true`.

An architecture firm sends drawings to the structural engineer, a law firm exchanges drafts with opposing counsel, a public agency collects documents from an outside expert. In each case the other side is not in your own directory, yet they need to work on the same files for weeks. Until now there were two ways to do that, and neither fit well.

A public link is quick to create, but it is anonymous. Anyone who has it gets in, whether that's the structural engineer, the colleague he forwarded the email to, or someone who found the link in a chat history. A password on the link changes little, because it is the same for everyone who knows the link and can be passed on just as easily. If someone later asks who opened the drawings, there is no answer.

A full account answers that question, but it asks a lot. IT has to create it, the external person needs yet another password that they will forget and have to reset, the directory fills up with profile data of someone who isn't part of the organization, and after the project someone has to remember to delete the account. For a collaboration of a few weeks that is too much, which is why people end up using the public link anyway.

Guest invitations by email

OpenCloud 9.0.0 adds a third way. In the share dialog you enter the external person's email address, pick the entry marked “(Guest)”, choose a role from “Can view” to “Can edit”, and share. The guest receives an email with a personal link, opens it in the browser and sees the shared file or folder. Nobody creates an account, and there is no password.

  1. Context menu of the folder “Statik Neubau Lindenstraße” with the entries “Open”, “Share”, “Copy permanent link”, “Download” and more; “Share” is highlighted.
    Right-click the folder, then “Share”.
  2. Share dialog: input statik@example.org, below it the suggestion “statik@example.org (Guest)”.
    Enter the address and pick the entry marked “(Guest)”.
  3. Open role menu with “Can view”, “Can upload” and “Can edit”.
    Choose a role, here “Can edit”.
  4. Share panel of the folder: under “Shared with” is statik@example.org with the role “Can edit”; a tooltip on the calendar icon shows the expiration date.
    The guest is listed under “Shared with”, with role and, if set, expiration date.
  5. Invitation email “Alan Turing shared ‘Statik Neubau Lindenstraße’ with you” with the button “Open link” and a note that the link is valid for 30 minutes.
    The guest receives an email with a personal link.
The guest clicks “Open link” in the email and lands in the shared folder without a login form (OpenCloud 9.0.0, demo data).

The access is still secure, because control of the mailbox serves as proof. Whoever can open the link received the email at that address. The only thing stored about the person is the email address, which also serves as their identifier in OpenCloud. In the share dialog it appears in the list of people with access, with role and, if set, expiration date. In the activity log the guest appears with their address, so you can trace who edited a file. If an address you enter already belongs to an internal account, OpenCloud suggests that account instead of a guest.

“Activities” panel of the folder: at the top “statik@example.org added Plan_EG_v4.pdf to Statik Neubau Lindenstraße”, below it Alan Turing’s entries for sharing and the expiration date.

The activity log lists the guest by address, here after uploading a new version of a drawing (OpenCloud 9.0.0, demo data).

The 9.0.0 release notes compare the three options side by side. The public link is meant for sending or collecting files once and identifies nobody. The account is for your own team's daily work. Guest access is built for ongoing collaboration with an external partner you know by name, and needs nothing more than an email address.

Public linkGuest accessAccount
Intended forSending or collecting onceOngoing work with known externalsDaily work in your own team
Who gets inAnyone who has the linkWhoever controls the mailboxThe signed-in person
Passing it onLink and password can be forwardedLink works only once, PIN only in the guest's own browserPassword is personal
PasswordOptional, the same for everyoneNonePersonal
In the activity logNot attributable to anyoneWith email addressWith name
Personal dataNoneOnly the email address, deleted with the shareProfile in the directory
What can be sharedFiles, folders, spacesFiles and foldersFiles, folders, spaces
ClientsBrowserBrowser onlyBrowser, desktop, mobile
ValidityUntil expiration date or deletion24-hour session, renewable as long as the share existsPermanent
Effort for ITNoneEnable once, email delivery requiredCreate the account and delete it later
Ending accessDelete the linkRemove the share, takes effect immediatelyLock or delete the account

The design was prompted by an article by Schlomo Schapiro, “Static Website Authentication with Magic Link Made Easy”, from May 2025. In it he describes how he made a conference program available only to registered attendees. All he knew about them was the email address from registration, and he made exactly that the key: anyone who wants access gets a link by email that is valid for about 15 minutes. Clicking it sets a signed cookie that JavaScript cannot read, and that keeps the session alive. There are no passwords, no database, and nothing is collected beyond the email address. Schapiro writes that dropping passwords was much easier than he had feared.

OpenCloud adopted the core of this: the email address as the only piece of personal data, a short-lived link in the mailbox as proof, and after that a session in a signed cookie that scripts cannot read. In three places, collaborating on files demands more than a conference program, and there the implementation goes further.

First, the server should know who the guest is. Schapiro's session deliberately says only “signed in”, because for a program booklet it doesn't matter who reads it. With guest access, by contrast, the session carries the share it belongs to, and behind the share is the email address. That is exactly what sets it apart from a public link.

Second, every link is valid only once. Schapiro accepts that a forwarded link also works for the recipient, and justifies this with the modest requirements of a conference program. For contracts or construction drawings that is not enough. In OpenCloud a link becomes invalid on the first click and expires after 30 minutes if nobody uses it. Forwarding a used link to someone else does not give them access.

Third, the session has to end and be renewable without the guest starting over every day. That is what the PIN is for, described in the next section.

The data stays as minimal as in Schapiro's setup. The auth-guest service stores one record per share, which holds only hashes of the link, PIN and browser nonce, with the PIN as an argon2id hash. When the share is removed or expires, the service deletes the record.

30 minutes, 24 hours, PIN

Flow diagram: the sharing person invites a guest with email address, “(Guest)” and role. OpenCloud sends an email with a personal link, without account or password. The guest opens the link, which is valid for 30 minutes and only once, and then works for 24 hours in a session with a signed cookie. When the session is about to end, a notice appears 15 minutes beforehand, and a six-digit PIN by email extends it, valid only in this browser. If it has expired, the old link leads to “Check your inbox” and a new link arrives by email. The share can be removed at any time, and access then ends immediately.
A guest's path: invitation, session, renewal or new link.

Three time limits shape the guest's day. The link from the invitation is valid for 30 minutes and only once; this duration is hard-coded and not configurable. When the guest opens it, a 24-hour session begins, which admins can adjust via AUTH_GUEST_JWT_TTL. While it runs, the guest can get back in through the already used link, as long as it's the same browser.

Fifteen minutes before the session ends, the web interface shows a notice. If the guest requests a PIN, they receive a six-digit number by email, enter it and keep working without interruption. By default the PIN is valid for 30 minutes (AUTH_GUEST_PIN_AND_NONCE_TTL) and is bound to the browser in which it was requested: a cookie with a nonce, sent only over HTTPS, has to accompany the entry. Anyone who enters the PIN from an intercepted email in a different browser will fail.

  1. Notice “Your session expires soon” with the button “Request PIN”.
    Before expiry, the notice appears with “Request PIN”.
  2. Email “Your new link to ‘Statik Neubau Lindenstraße’” with a six-digit test PIN and a note that link and PIN are valid for 30 minutes.
    The PIN arrives by email, together with a new link.
  3. Dialog “Enter PIN” with the PIN filled in and the button “Continue”.
    Enter the PIN, click “Continue”, keep working.

If the session has already expired, OpenCloud opens a renewal page and sends a new link to the stored address. So as long as the share exists, the guest doesn't have to write to the colleague who invited them.

Page “Check your inbox”: “This invitation link can no longer be used. We sent you an email with a new one, open it to continue.”

Without a valid session, the old link leads to this page, and the new link is already on its way (OpenCloud 9.0.0).

Because these endpoints can be reached without signing in, they are rate-limited. After five wrong PINs (AUTH_GUEST_BACKOFF_MAX_ATTEMPTS) the PIN becomes invalid, and the wait between attempts grows exponentially from one to 30 seconds. Renewals without a valid session are limited to one per minute and 50 per day per share (AUTH_GUEST_QUOTA_COOLDOWN, AUTH_GUEST_QUOTA_DAILY_CAP). The developers deliberately set the daily value above 48, the number of 30-minute windows in a day, so that someone who only knows the share's identifier cannot lock the guest out by deliberately exhausting the quota. As long as the newest link is still unused and valid, such a request has no effect. Renewals with a session, which generate a new PIN, are limited to one per five minutes and five per day (AUTH_GUEST_SESSION_QUOTA_COOLDOWN, AUTH_GUEST_SESSION_QUOTA_DAILY_CAP). This also limits how many PINs someone with a stolen session can try. None of these limits apply to the link from the email.

Revocation, expiry and permissions

The person who shared can change the guest's role, set an expiration date or remove the share at any time. Removal takes effect immediately, even if the guest currently has a valid session, because OpenCloud checks on every guest request whether the associated share still exists. After the expiration date, no new links are issued. Copies the guest has already downloaded stay with the guest, as the user documentation also points out.

In the default configuration, the roles Admin, Space Admin and User may invite guests. The permission is called “Invite guests by email” (Shares.GuestMailWrite) and can be removed from roles if only certain people should share externally.

What matters for data protection officers is that guest access gets by with a single piece of personal data. After the project ends, nobody has to clean up a profile or directory entry. Whatever OpenCloud stores about the guest is attached to the share and disappears with it.

Setup and limitations

Guest access is off by default in 9.0.0. You enable it with OC_ENABLE_GUEST_LINKS=true. It requires working email delivery, meaning an SMTP configuration and a running notifications service, because without email neither the link nor the PIN reaches the guest. If you upgrade from 8.x, you first have to migrate the configuration so that opencloud.yaml contains the auth_guest.service_account settings; otherwise the auth-guest service won't start and the container keeps restarting. Sessions are signed with a key derived via HKDF from OC_JWT_SECRET. Rotating that secret ends all guest sessions.

There are some limitations you should know about. Guests work only in the browser; desktop and mobile clients are not available to them. Files and folders can be shared, spaces cannot. An expiration date is possible but not required; a default maximum age for guest shares is still open. Signing out, available since 9.1.0, deletes the cookie in the browser, but the signed session itself stays valid until it expires, because the server doesn't store it. If you want to end access immediately, remove the share.

Also, 9.0.0 is a rolling release. The documentation advises against running such versions in production. 9.1.0 and 9.2.0 have already fixed a number of bugs, for example in how the guest session interacts with vaults and versions, or in the capitalization of email addresses. If you want to try guest access, use the latest version.

Sources