| Internet-Draft | Open Cloud Mesh | July 2026 |
| Lo Presti, et al. | Expires 20 January 2027 | [Page] |
Open Cloud Mesh (OCM) is a server federation protocol that is used to notify a Receiving Party that they have been granted access to some Resource. It has similarities with authorization flows such as OAuth, as well as with social internet protocols such as ActivityPub and email.¶
A core use case of OCM is when a user (e.g., Alice on System A) wishes to share a resource (e.g., a file) with another user (e.g., Bob on System B) without transferring the resource itself or requiring Bob to log in to System A.¶
While this scenario is illustrative, OCM is designed to support a broader range of interactions, including but not limited to file transfers.¶
Open Cloud Mesh handles interactions only up to the point where the Receiving Party is informed of their access to the Resource. Actual Resource access is subsequently managed by other protocols, such as WebDAV.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 20 January 2027.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
Open Cloud Mesh was initially conceived of in 2015 and has been deployed since 2016. OCM has been implemented by several platforms, including CERNBox, Nextcloud, OpenCloud, ownCloud, and Seafile.¶
The goal of OCM is to provide a secure, scalable, and flexible infrastructure for securely sharing and collaborating on resources and has seen wide adoption, not least in the academic sector.¶
The core idea of OCM is to make it simple for users to do the right thing. This is achieved by providing a protocol that abstracts away security and authentication details from the users to the servers acting on behalf of the users. Another important point of the protocol is the invitation mechanism that lets users connect over established human relationships and use those connections to establish contact between their respective OCM servers.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
We define the following concepts, with some non-normative references to related concepts from OAuth [RFC6749] and elsewhere:¶
Discoverable Server - A server that tries to supply information in OCM API Discovery.¶
Discovering Server - A server that tries to obtain information in OCM API Discovery.¶
Federation - A group of OCM Providers that have established mutual trust and agree on certain policies for interaction. A Federation MAY be facilitated by a Directory Service.¶
FQDN - Fully Qualified Domain Name, such as "cloud.example.org".¶
Invite Acceptance Gesture - Gesture from the Invite Receiver to the Invite Receiver OCM Server, supplying the Invite Token as well as the OCM Address of the Invite Sender, effectively allowlisting the Invite Sender OCM Server for sending Share Creation Notifications to the Invite Receiver OCM Server.¶
Invite Acceptance Request - API call from the Invite Receiver OCM Server to the Invite Sender OCM Server, supplying the Invite Token as well as the OCM Address of the Invite Receiver, effectively allowlisting the Invite Sender OCM Server for sending Share Creation Notifications to the Invite Receiver OCM Server.¶
Invite Acceptance Response - HTTP response to the Invite Acceptance Request.¶
Invite Creation Gesture - Gesture from the Invite Sender to the Invite Sender OCM Server, resulting in the creation of an Invite Token.¶
Invite Message - Out-of-band message used to establish contact between parties and servers in the Invite Flow, containing an Invite Token (see below) and the Invite Sender's OCM Address.¶
Invite Receiver - The party receiving an Invite, identified by its OCM Address.¶
Invite Receiver OCM Server - The server holding an address book used by the Invite Receiver, to which details of the Invite Sender are to be added.¶
Invite Sender - The party sending an Invite, identified by its OCM Address.¶
Invite Sender OCM Server - The server holding an address book used by the Invite Sender, to which details of the Invite Receiver are to be added.¶
Invite String - An Invite Token and the FQDN of an Invite Sender
OCM Server joined by an @-sign, then encoded using base64url (the
URL- and filename-safe alphabet defined in [RFC4648], Section 5) with
padding omitted.¶
Invite Token - A hard-to-guess string used in the Invite Flow, generated by the Invite Sender OCM Server and linked uniquely to the Invite Sender's OCM Address.¶
OCM Address - identifies a user or group "at" an OCM Server. The OCM Address contains a server specific Party identifier, a host locating the OCM Server and an optional port. The OCM Address is not a URI as it does not have scheme and the identifier may contain reserved characters:¶
ocm-address = identifier "@" host [ ":" port]¶
"identifier" is an opaque, case-sensitive UTF-8 string. It is
separated from the host by the last "@" in the OCM Address. It is
possible to have multiple @-signs in a OCM-address, e.g. when an
email address is the local part of the address like
nomen.nescio@example.org@cloud.example.org.
"host" is an IP literal encapsulated within square brackets, an IPv4
address in dotted decimal form, or a registered name as described in
[RFC3986]:¶
host = IP-literal / IPv4address / reg-name¶
The optional port subcomponent can be used to specify a port to use
for discovery (see Discovery Process).
The OCM Server MUST be discoverable at the given host and optional
port via the Well-Known [RFC8615] path /.well-known/ocm. The OCM
Address MUST NOT contain a path.¶
OCM API Discovery - Process of evaluating properties of a Remote Resource, after establishing contact with an OCM Server.¶
OCM Notification - A message from the Receiving Server to the Sending Server or vice versa, using the OCM Notifications endpoint.¶
OCM Server - A server that has the OCM Provider function.¶
Receiving Party - A person, group or party who is granted access to the Resource through the Share; similar to "Requesting Party / RqP" in OAuth-UMA, identified by its OCM Address.¶
Receiving Server - The server that:¶
Remote Resource - A Resource provided by the Sending Server.¶
Resource - The piece of data or interaction to which access is being granted, including but not limited to: a file or folder, a video call, a contact, a printer queue, etc.¶
Sending Gesture - A user interface interaction from the Sending Party to the Sending Server, conveying the intention to create a Share.¶
Sending Party - A person or party who is authorized to create Shares; similar to "Resource Owner" in OAuth [RFC6749], identified by its OCM Address.¶
Sending Server - The server that:¶
holds the Resource ("file server" or "Entreprise File Sync and Share (EFSS) server" role),¶
provides access to it (by exposing at least one "API"),¶
takes the decision to create the Share based on user interface gestures from the Sending Party (the "Authorization Server" role in OAuth [RFC6749]),¶
takes the decision about authorizing attempts to access the Resource (the "Resource Server" role in OAuth [RFC6749]),¶
sends out Share Creation Notifications when appropriate (see below).¶
Share - A policy rule stating that certain actors have specific access rights to a Resource; it MAY also refer to a record in a database representing this rule.¶
Share Creation - The addition of a Share to the database state of the Sending Server, in response to a successful Sending Gesture or for another reason.¶
Share Creation Notification - A server-to-server request from the sending server to the receiving server, notifying the receiving server that a Share has been created.¶
Share Name - A human-readable string, provided by the Sending Party or the Sending Server, to help the Receiving Party understand which Resource the Share grants access to.¶
Share Permissions - protocol-specific allowances granted to the Receiving Party on the modes of accessing the Resource.¶
Share Requirements - Protocol-specific restrictions on the modes of accessing the Resource.¶
Shared Resource - A Resource shared by an OCM Server, becoming a Remote Resource if accepted by the Invite Receiver OCM Server.¶
Sharing User - A user providing access to a Resource through a Share.¶
Trusted Server - An OCM Server that is considered trustworthy by another OCM Server, based on out-of-band information, federation membership or prior interactions, SHOULD be recorded in an internal registry of trusted servers, that SHOULD be updated over time based on new information. The registry SHOULD include the FQDN of the trusted server and the Public Key used for HTTP Signatures. It MAY also include additional metadata such as the inviteAcceptDialog URL or supported capabilities.¶
WAYF Page - A Where-Are-You-From page is a discovery service used to identify the OCM Server of an Invite Receiver.¶
Open Cloud Mesh defines distinct functions. It is not necessary for an implementation to provide all of them. In fact, it may be useful to have separate implementations for different functions.¶
An OCM Provider is an entity that can take on the two roles of a Sending Server and a Receiving Server. An OCM Provider MUST be a Discoverable Server and SHOULD be able to receive Notifications.¶
An OCM Directory Service is an entity that exposes information about a Federation of OCM Providers.¶
Open Cloud Mesh defines two distinct roles that an OCM Provider MUST take on: the Sending Server role and the Receiving Server role.¶
A Sending Server is an OCM Provider that holds Resources and exposes APIs to allow access to them. It allows its users to create Shares to give other users access to those Resources. A Sending Server MAY provide its users with the ability to generate Invites to establish contact with other users on other OCM Providers. When doing so it MAY provide a WAYF Page to facilitate the Invite Flow. The WAYF page MAY be limited to a set of trusted OCM Providers, for instance those in the same Federation.¶
A Receiving Server is an OCM Provider that receives Share Creation Notifications from Sending Servers, notifies its users about incoming Shares, and acts as an API client to allow its users to access Remote Resources. It MAY provide its users with an Address Book of Contacts and the ability to accept Invites.¶
In Appendix D, an object model is presented as a non-normative guide for implementers to understand the relationships between these terms.¶
The lifecycle of an Open Cloud Mesh Share starts with prerequisites such as establishing trust, establishing contact, and OCM API Discovery.¶
Then the share creation involves the Sending Party making a Sending Gesture to the Sending Server, the Sending Server carrying out the actual Share Creation, and the Sending Server sending a Share Creation Notification to the Receiving Server.¶
After this, the Receiving Server MAY notify the Receiving Party and/or the Sending Server, and will act as an API client through which the Receiving Party can access the Resource. The Receiving Party or the Sending Party MAY then update or delete the Share: the respective Server MAY send a Notification to the other party about the change.¶
Before the Sending Server can send a Share Creation Notification to the Receiving Server, it MUST establish the Receiving Party's OCM Address (containing the Receiving Server's FQDN, and the Receiving Party's identifier), among other things. Some steps may preceed the Sending Gesture, allowing the Sending Party to establish (with some level of trust) the OCM Address of the Receiving Party. In other cases, establishing the OCM Address of the Receiving Party happens as part of the Sending Gesture.¶
The simplest way for this is if the Receiving Party shares their OCM Address with the Sending Party through some out-of-band means, and the Sending Party enters this string into the user interface of the Sending Server, by means of typing or pasting into an HTML form, or clicking a link to a URL that includes the string in some form.¶
An interface for anonymously viewing a Resource on the Sending Server MAY allow any internet user to type or paste an OCM address into an HTML form, as a Sending Gesture. This means that the Sending Party and the Receiving Party could be the same person, so contact between them does not need to be explicitly established.¶
Similarly, an interface on the Sending Server MAY allow any internet user to type or paste an OCM address into an HTML form, as a Sending Gesture for a given Resource, without itself providing a way to access that particular Resource. A link to this interface could then for instance be shared on a mailing list, allowing all subscribers to effectively request access to the Resource by making a Sending Gesture to the Sending Server with their own OCM Address.¶
Many methods for establishing contact allow unsolicited contact with the prospective Receiving Party whenever that party's OCM Address is known. The Invite Flow requires the Receiving Party to explicitly accept it before it can be used, which establishes bidirectional trust between the two parties involved.¶
OCM Servers MAY enforce a policy to only accept Shares between such trusted contacts, or MAY display a warning to the Receiving Party when a Share Creation Notification from an unknown Sending Party is received¶
the Invite Sender OCM Server generates a unique Invite Token and helps the Invite Sender to create the Invite Message¶
the Invite Sender uses some out-of-band communication to send the Invite Message, containing the Invite Token and the Invite Sender OCM Server FQDN, to the Invite Receiver¶
the Invite Receiver navigates to the Invite Receiver OCM Server and makes the Invite Acceptance Gesture. This step MAY be facilitated if the Invite Sender OCM Server implements a WAYF Page, such that the Invite Message would include a link to it for the Invite Receiver to navigate to: the Invite Receiver would then be able to indicate their OCM Server and proceed with the Invite Acceptance Gsture without manually copying the Invite Token.¶
the Invite Receiver OCM Server discovers the OCM API of the Invite Sender OCM Server using generic OCM API Discovery (see section below)¶
the Invite Receiver OCM Server sends the Invite Acceptance Request to the Invite Sender OCM Server¶
Whereas the precise syntax of the Invite Message and the Invite Acceptance Gesture will differ between implementations, the Invite Acceptance Request MUST be a HTTP POST request:¶
to the /invite-accepted path in the Invite Sender OCM Server's OCM
API¶
using application/json as the Content-Type HTTP request header¶
its request body containing a JSON document representing an object with the following string fields:¶
REQUIRED: recipientProvider - FQDN of the Invite Receiver OCM
Server.¶
REQUIRED: token - The Invite Token. The Invite Sender OCM Server
SHOULD recall which Invite Sender OCM Address this token was linked
to.¶
REQUIRED: userID - The Invite Receiver's identifier at their OCM
Server.¶
REQUIRED: email - Non-normative / informational; an email address
for the Invite Receiver. Not necessarily at the same FQDN as their
OCM Server.¶
REQUIRED: name - Human-readable name of the Invite Receiver, as a
suggestion for display in the Invite Sender's address book¶
using TLS¶
When HTTP Message Signatures are available, the Invite Acceptance Request MUST be signed and verified as described in HTTP Message Signatures (Section 6). As the Invite flow establishes the trust that later exchanges rely on, implementations SHOULD NOT use it unless signing is available.¶
The Invite Receiver OCM Server SHOULD apply its own policies for trusting the Invite Sender OCM Server before making the Invite Acceptance Request.¶
Since the Invite Flow does not require either Party to type or remember
the userID, this string does not need to be human-memorable. Even if
the Invite Receiver has a memorable username at the Invite Receiver OCM
Server, this userID that forms part of their OCM Address does not need
to match it.¶
Also, a different userID could be given out to each contact, to avoid
correlation of identities.¶
If the Invite Sender OCM Server implements a WAYF Page, such a page MAY include a fixed list of servers, in addition to, or instead of, a free-text input where any OCM Server can be entered. This is especially useful if the Invite Sender is part of a federation of associated OCM Servers. In order to populate the list of associated OCM Servers, the Invite Sender's server MAY make use of a Directory Service, which is expected to follow the specification detailed in Appendix C.¶
Implementors that provide a WAYF Page SHOULD make the URL for the API endpoint of such a Directory Service configurable, allowing the OCM Server to be part of a network of associated OCM Servers. The configuration mechanism MAY allow an OCM Server to be part of multiple networks, thus displaying a union of multiple lists in its WAYF Page.¶
The Invite Acceptance Response SHOULD be a HTTP response:¶
in response to the Invite Acceptance Request¶
using application/json as the Content-Type HTTP response header¶
its response body containing a JSON document representing an object with the following string fields:¶
REQUIRED: userID - the Invite Sender's identifier at their OCM
Server¶
REQUIRED: email - non-normative / informational; an email address
for the Invite Sender. Not necessarily at the same FQDN as their
OCM Server¶
REQUIRED: name - human-readable name of the Invite Sender, as a
suggestion for display in the Invite Receiver's address book¶
A 200 response status means the Invite Acceptance Request was successful. A 400 response status means the Invite Token is invalid or does not exist. A 403 response status means the Invite Receiver OCM Server is not trusted to accept this Invite. A 409 response status means the Invite was already accepted.¶
Before processing the Invite Acceptance Request and sending the Invite Acceptance Response, the Invite Sender OCM Server SHOULD apply its own policies for trusting the Invite Receiver OCM Server. Any HTTP Signature on the request is verified as described in HTTP Message Signatures (Section 6).¶
As with the userID in the Invite Acceptance Request, the one in the
Response also doesn't need to be human-memorable, doesn't need to match
the Invite Sender's username at their OCM Server.¶
Following these step, both servers MAY display the name of the other
party as a trusted or allowlisted contact, and enable selecting them as
a Receiving Party. OCM Servers MAY enforce a policy to only accept
Share Creation Notifications from such trusted contacts, or MAY display
a warning to users when a Share Creation Notification from an unknown
party is received.¶
Both servers MAY also allowlist each other as a server with which at least one of their users wishes to interact.¶
In addition, if the identity provider of either server supports the registration of external users, it may happen that the just received email contact from the other party matches an external user already known in the local identity provider, and therefore already present in the address book. In such a case, implementers MAY support linking of the two identities belonging to that same user, so that when a Share Creation gesture is made to that recipient, both a regular share and an OCM Share Creation Notification are issued.¶
Note that Invites act symmetrically, so once contact has been established, both the Invite Sender and the Invite Receiver MAY take on either the Sending Party or the Receiving Party role in subsequent Share Creation events.¶
Both parties MAY delete the other party from their address book at any time without notifying them.¶
To accept an invite, two pieces of information are required: a token
and a provider. There are two recognized formats:¶
Invite string format:
The token and the provider’s FQDN, joined by an @ sign and then
encoded using base64url (the URL- and filename-safe alphabet defined
in [RFC4648], Section 5) with padding omitted. Example:¶
If the token is a55a966e-15c1-4cb9-a39d-4e4c54399baf and the
provider is cloud.example.org, the combined string is
a55a966e-15c1-4cb9-a39d-4e4c54399baf@cloud.example.org,
which when base64url-encoded becomes
YTU1YTk2NmUtMTVjMS00Y2I5LWEzOWQtNGU0YzU0Mzk5YmFmQGNsb3VkLmV4YW1wbGUu
b3Jn.¶
When parsing an invite string, implementors MUST base64url-decode it
(accepting the string whether or not padding is present), then split
on the last @ sign, taking care to allow multiple @ characters in
the token part.¶
Link format: If the inviting OCM Server supports a WAYF page, the invite may be provided as a link with the token as a request parameter. Example:¶
https://cloud.example.org/wayf?token=
a55a966e-15c1-4cb9-a39d-4e4c54399baf¶
Implementations MUST be able to accept invites in the invite string
format. This format is considered canonical. The link format is only
useful if the Receiving OCM Server exposes the inviteAcceptDialog
in its Discovery endpoint. Implmentations SHOULD support the link
format when they implement a WAYF Page that leverages those
inviteAcceptDialog targets.¶
It is important to underscore the value of the Invite in this scenario, as it provides four important security advantages. First of all, if the Receiving Server blocks Share Creation Notifications from Sending Parties who are not in the address book of the Receiving Party, then this protects the Receiving Party from receiving unsolicited Shares. An attacker could still send the Receiving Party an unsolicited Share, but they would first need to convince the Receiving Party through an out-of-band communication channel to accept their invite. In many use cases, the Receiving Party has had other forms of contact with the Sending Party (e.g., in-person or email back-and-forth). The out-of-band Invite Message thus leverages the filters and context which the Receiving Party may already benefit from in that out-of-band communication. For instance, a careful Receiving Party MAY choose to only accept Invites that reach them via a private or moderated messaging platform.¶
Second, when the Receiving Party accepts the Invite, the Receiving Server knows that the Sending Server they are about to interact with is trusted by the Sending Party, which in turn is trusted by the Receiving Party, which in turn is trusted by them. In other words, one of their users is requesting the allowlisting of a server they wish to interact with, in order to interact with a party they know out-of-band. This gives the Receiving Server reason to put more trust in the Sending Server than it would put into an arbitrary internet-hosted server.¶
Third, equivalently, the Sending Server knows it is essentially registering the Receiving Server as an API client at the request of the Receiving Party, to whom the right to request this has been traceably delegated by the Sending Party, which is one of its registered users.¶
Fourth, related to the second one, it removes the partial 'open relay' problem that exists when the Sending Server is allowed to include any Receiving Server FQDN in the Sending Gesture. Without the use of Invites, a Distributed Denial of Service attack could be organised if many internet users collude to flood a given OCM Server with Share Creation Notifications which will be hard to distinguish from legitimate requests without human interaction. An unsolicited (invalid) Invite Acceptance Request is much easier to filter out than an unsolicited (possibly valid, possibly invalid) Share Creation Notification Request, since the Invite Acceptance Request needs to contain an Invite Token that was previously uniquely generated at the Invite Sender OCM server.¶
After establishing contact as discussed in the previous section, the Sharing User MAY send the Share Creation Gesture to the Sending Server. The Sharing User MUST provide the following information:¶
Resource to be shared¶
Protocol to be offered for access¶
Sending Party's identifier¶
Receiving Party's identifier¶
Receiving Server FQDN¶
OPTIONAL: Share Requirements¶
OPTIONAL: Share Name¶
OPTIONAL: Share Permissions¶
The next step is for the Sending Server to additionally discover:¶
if the Receiving Server is trusted¶
if the Receiving Server supports OCM¶
if so, which version and with which optional functionality¶
at which URL¶
the public key the Receiving Server will use for HTTP Signatures (if any)¶
The Sending Server MAY first perform denylist and allowlist checks on the FQDN.¶
If a finite allowlist of Receiving Servers exists on the Sending Server side, then this list MAY already contain all necessary information.¶
If the FQDN passes the denylist and/or allowlist checks, but no details about its OCM API are known, the Sending Server can use the following process to try to fetch this information from the Receiving Server.¶
This process MAY be influenced by a VPN connection and/or IP allowlisting.¶
When OCM API Discovery can occur in preparation of a Share Creation Notification, the Sending Server takes on the 'Discovering Server' role and the Receiving Server plays the role of 'Discoverable Server'.¶
At the start of the process, the Discovering Server has either an OCM
Address, or just an FQDN from for instance the recipientProvider
field of an Invite Acceptance Request.¶
Step 1: In case it has an OCM Address, it SHOULD first extract <fqdn>
from it (the part after the last @ sign).
Step 2: The Discovering Server SHOULD attempt OCM API Discovery via a
HTTP GET request to https://<fqdn>/.well-known/ocm.
Step 3: If that results in a valid HTTP response with a valid JSON
response body within reasonable time, go to step 5.
Step 4: If not, fail. Implementations MAY fallback to HTTP instead
of HTTPS in testing setups and retry steps 2-3, in particular when
an optional port is given in the address.
Step 5: The JSON response body is the data that was discovered.¶
The JSON response body offered by the Discoverable Server SHOULD contain the following information about its OCM API:¶
REQUIRED: enabled (boolean) - Whether the OCM service is enabled at this endpoint¶
REQUIRED: apiVersion (string) - The OCM API version this endpoint
supports. Example: "1.4.0"¶
REQUIRED: endPoint (string) - The URI of the OCM API available at
this endpoint. Example: "https://cloud.example.org/ocm"¶
OPTIONAL: provider (string) - A friendly branding name of this
endpoint. Example: "MyCloudStorage"¶
REQUIRED: resourceTypes (array) - A list of all resource types this server supports in both the Sending Server role and the Receiving Server role, with their access protocols. Each item in this list MUST itself be an object containing the following fields:¶
name (string) - A supported resource type, such as file, calendar,
contact, etc. Implementations MUST offer support for at least one
resource type: file is the commonly supported one, and
other values are to be registered in the "OCM Resource Types"
registry (see IANA Considerations (Section 15)).
Each resource type is identified by its name: the list MUST NOT
contain more than one resource type object per given name.¶
shareTypes (array of string) -
The supported recipient share types. MUST contain
"user" at a minimum, plus optionally "group" or any
other value registered in the "OCM Share Types" registry
(see IANA Considerations (Section 15)).
Example: ["user"]¶
protocols (object) - The supported protocols for accessing Shared
Resources of this type. Implementations that offer file
Resources MUST support at least webdav, any other combination
of Resources and protocols is optional. Example:¶
{
"webdav": "/remote/dav/ocm/",
"webdav-receive": { "uri": "absolute" },
"webapp": {},
"webapp-receive": { "targets": ["blank", "iframe"] },
"talk": "/apps/spreed/api/"
}
¶
The protocols object distinguishes a server's role for each
protocol: a property named after the protocol (e.g. webdav,
webapp, ssh) advertises support for acting as a Sending
Server, while a property suffixed with -receive (e.g.
webdav-receive, webapp-receive, ssh-receive) advertises
support for acting as a Receiving Server.¶
Fields:
- webdav (string) - The top-level WebDAV [RFC4918] path at this
endpoint. In order to access a Remote Resource, implementations
SHOULD use this path as a prefix (see sharing examples).
- webdav-receive (object) - Advertised by implementations that
support receiving WebDAV shares. It contains a uri property
whose value MUST be either "absolute" or "relative",
signalling the URI format this endpoint accepts. Note that
older implementations MAY not support this property.
- webapp (object) - Advertised, as an empty object, by
implementations that support sending WebApp shares.
- webapp-receive (object) - Advertised by implementations that
support receiving WebApp shares. It contains a targets
array listing the ways this endpoint is able to present a
WebApp share to the user. A subset of:
- blank - the endpoint can open the URI in a top-level
browsing context, such as a new window or tab, or a full page
navigation in the current window.
- iframe - the endpoint can embed the URI in an iframe
within its own UI, when the Sending Server allows framing
by this receiver.
- ssh (string) - The top-level address in the form host:port
of an endpoint that supports ssh and scp with a public/private
key based authentication.
- ssh-receive (object) - Advertised, as an empty object, by
implementations that support receiving SSH shares.
- Any additional protocol supported for this Resource type SHOULD be
advertised here, where the value MAY correspond to a top-level
URI to be used for that protocol. Similarly, additional receiving
capabilities for custom protocols SHOULD be advertised using a
-receive suffixed property. Additional protocols are to be
registered in the "OCM Protocols" registry (see
IANA Considerations (Section 15)).¶
OPTIONAL: capabilities (array of string) - The optional capabilities
supported by this OCM Server.
As implementations MUST accept Share Creation Notifications
to be compliant, it is not necessary to expose that as a
capability.
Example: ["exchange-token", "protocol-object"]. The array MAY
include one or more of the following items:¶
"enforce-mfa" - to indicate that this OCM Server can apply a
Sending Server's MFA requirements for a Share on their behalf.¶
"exchange-token" - to indicate that this OCM Server supports the
OCM code flow via an [RFC6749]-compliant token endpoint. When this
OCM Server acts as Sending Server, it hosts tokenEndPoint. When it
acts as Receiving Server, it can honor inbound shares that require
token exchange.¶
"http-sig" - to indicate that this OCM Server supports
[RFC9421] HTTP Message Signatures and advertises public keys in the
format specified by [RFC7517] at the /.well-known/jwks.json
endpoint for signature verification.¶
"invites" - to indicate the server would support acting as an
Invite Sender or Invite Receiver OCM Server. This might be useful
for suggesting to a user that existing contacts might be upgraded
to the more secure (and possibly required) invite flow.¶
"notifications" - to indicate that this OCM Server handles
notifications to exchange updates on shares and invites.¶
"invite-wayf" - to indicate that this OCM Server exposes a WAYF
Page to facilitate the Invite flow.¶
"protocol-object" - to indicate that this OCM Server can
receive a Share Creation Notification whose protocol object
contains one property per supported protocol instead of containing
the standard name and options properties.¶
OPTIONAL: criteria (array of string) - The criteria for accepting a
Share Creation Notification.
As all Receiving Servers SHOULD require the use of TLS in API
calls, it is not necessary to expose that as a criterium.
Example: ["must-use-http-sig"]. The array MAY include
for instance:¶
"must-use-http-sig" - to indicate that API requests
without http signatures will be rejected.¶
"must-exchange-token" - to indicate that when this OCM Server
acts as Receiving Server, it requires the code flow for all inbound
shares. Shares that do not include must-exchange-token in
the requirements of each protocol offered for access will be
rejected. An
OCM Server advertising this criterium MUST also expose the
exchange-token capability. See the Code Flow (Section 11)
section.¶
"denylist" - some servers MAY be blocked based on their IP
address¶
"allowlist" - unknown servers MAY be blocked based on their IP
address¶
"must-invite" - an invite MUST have been exchanged between the
sender and the receiver before a Share Creation Notification can be
sent¶
OPTIONAL: inviteAcceptDialog (string) - URL path of a web page where
a user can accept an invite, when query parameters "token" and
"providerDomain" are provided. Implementations that offer the
"invites" capability SHOULD provide this URL as well in order to
enhance the UX of the Invite Flow. If for example
"/index.php/apps/sciencemesh/accept" is specified here then a WAYF
Page SHOULD redirect the end-user to /index.php/apps/sciencemesh/
accept?token=zi5kooKu3ivohr9a&providerDomain=cloud.example.org.¶
OPTIONAL: tokenEndPoint (string) - URL of the token endpoint hosted by
this OCM Server. When this OCM Server acts as Sending Server, the
Receiving Server POSTs here to exchange a sharedSecret for a
short-lived bearer token.
Implementations that offer the "exchange-token" capability MUST
provide this URL as well.
Example: "https://cloud.example.org/ocm/token".¶
A number of OCM API requests are signed "using httpsig [RFC9421]", as described in the respective sections. This section specifies the normative requirements for producing and verifying those signatures. Appendix B contains a complete example.¶
Public keys for signature verification are published in the format
specified by [RFC7517] at the signer's /.well-known/jwks.json
endpoint, if the http-sig capability is included in the
Discovery (Section 5) response.¶
Support for HTTP Message Signatures is negotiated through the
http-sig capability in the Discovery (Section 5) response.
The following rules let deployments adopt signing incrementally while
remaining interoperable:¶
A Server that implements HTTP Message Signatures MUST use them when
interacting with another Server that advertises the http-sig
capability.¶
Such a Server MAY nonetheless continue to interact, without signing,
with a Server that does not advertise the http-sig capability, for
backwards compatibility.¶
A Server that implements HTTP Message Signatures MUST verify any signature present on a request it receives, as specified below.¶
A Server MAY accept an unsigned request from a Server that does not
advertise the http-sig capability; a Server that advertises the
must-use-http-sig criterion MUST reject unsigned requests.¶
A Server that does not implement HTTP Message Signatures operates without them.¶
Because the Invite Acceptance Request (Section 4.4.3) and Request for a Share (Section 8) establish the trust that later exchanges rely on, implementations SHOULD NOT use those features unless HTTP Message Signatures are available.¶
A signed request MUST cover at least the following Signature-Input components:¶
"@method" - HTTP method¶
"@target-uri" - full request URI (scheme, authority, path, query)¶
"content-digest" - [RFC9530] digest of the body¶
"content-length" - message size¶
The Signature-Input parameters MUST include created. Freshness and
replay protection are anchored on created (see Verification
Requirements).¶
A signed request SHOULD additionally cover the date component when a
Date header is present.¶
The content-digest component binds the request body to the signature,
protecting it against modification in transit. Its value MUST use a
hash algorithm from the IANA "Hash Algorithms for HTTP Digest Fields"
registry [IANA-DIGEST-ALG]; implementations MUST support sha-256.¶
A request signed in the context of OCM MUST carry the signature
parameter tag="ocm" (see Section 2.3 of [RFC9421]). Unlike the
signature label, which is a dictionary key that is not covered by the
signature and MAY be rewritten in transit, the tag parameter is part
of the signature base and is therefore integrity-protected.¶
A request MUST include one and only one signature carrying
tag="ocm". The signature label MAY be any value; it is not
significant to OCM processing.¶
The signature MUST use an asymmetric algorithm from the IANA "HTTP
Signature Algorithms" registry [IANA-SIG-ALG]; ed25519 [RFC8032] is
RECOMMENDED. A symmetric algorithm, such as the HMAC-based
hmac-sha256, MUST NOT be used, as the Receiving Server would not be
able to verify the signature without prior access to the shared secret.¶
Verifiers MUST reject signatures that omit any of the mandatory
components listed under Signing Requirements or the created
parameter, and MUST reject signatures whose created value is more
than a small implementation-defined skew tolerance in the future, or
older than the verifier's freshness window.¶
A Content-Digest header value carrying multiple algorithms MUST have
every recognised digest match the body; a single match alongside a
recognised mismatch MUST be treated as an integrity failure.¶
Verifiers MUST identify the OCM signature by its tag="ocm"
parameter, examining the parameters of each member of the
Signature-Input field and disregarding the dictionary labels.
Verifiers MUST verify only that signature. If more than one signature
carries tag="ocm", the entire message MUST be rejected. A request
that carries no signature with tag="ocm" is unsigned and is handled
as described in Applicability (accepted only at the receiver's
discretion, or rejected when the receiver advertises
must-use-http-sig). Signatures without tag="ocm" MAY coexist (e.g.
proxy-attached signatures) but verifiers MUST NOT process them as part
of OCM signature processing.¶
To access the Resource, the Receiving Server MAY use multiple ways, depending on the body of the Share Creation Notification and the protocol required for access. The procedure is as follows:¶
The receiver MUST extract the OCM Server FQDN from the sender
field of the received share, and MUST query the
Discovery (Section 5) endpoint at that address: let
<sender-ocm-path> be the resourceTypes[0].protocols.webdav value
to be used later, if defined.¶
If protocol.name is multi, the receiver MUST inspect the
protocol.{protocolName} properties corresponding to the protocol
of concern, and act according to its semantics. For the specific
case where protocol.webdav is available and the receiver wants
to use it, the following steps are to be followed.¶
The protocol.webdav.requirements MUST be inspected:
3.1. If it includes must-exchange-token, the receiver MUST make a
signed POST request to the path in the Sending Server’s
{tokenEndPoint}, to exchange the protocol.webdav.sharedSecret
token for a short-lived bearer token, and only use that bearer
token to access the Resource (See the Code Flow (Section 11)
section). If the must-exchange-token requirement is not present
and the discovery inspected at step 1 exposes the exchange-token
capability with a tokenEndPoint, the receiver MAY attempt the
token exchange as above, but it MUST fall back to the following
steps should the process fail.
3.2. If it includes must-use-mfa, the Receiving Server MUST ensure
that the Receiving Party has been authenticated with MFA, or prompt
the consumer in order to elevate their session, if applicable.¶
The protocol.webdav.uri property MUST now be inspected: if it's a
complete URI, the receiver MUST make a HTTP PROPFIND request against
it to access the Remote Resource, otherwise it is to be taken as an
identifier <id>, in which case the receiver MUST make a HTTP
PROPFIND request to: https://<sender-host><sender-ocm-path>/<id>
in order to access to the Remote Resource. The receiver MUST pass
an Authorization: bearer header with either the short-lived bearer
token obtained in step 3.1., if applicable, or the
protocol.webdav.sharedSecret value.¶
Otherwise, if protocol.name is webdav the receiver SHOULD inspect
the protocol.options property: if protocol.options.sharedSecret
is defined, then the receiver SHOULD make a HTTP PROPFIND request to
https://<sharedSecret>:@<sender-host><sender-ocm-path>. Note that
this access method, based on Basic Auth, is deprecated and may be
removed in a future release of the Protocol. If a secret cannot be
identified (e.g. because protocol.options is undefined), then
the receiver SHOULD discard the share as invalid.¶
For the specific case where protocol.webapp is available and the
receiver wants to use it, the receiver MUST present the web app to
the user by opening protocol.webapp.uri using a target selected
from the intersection of protocol.webapp.targets and the targets
advertised in the receiver's webapp-receive discovery property.
If this intersection is empty, the receiver MUST treat the webapp
option as unusable for this Share. If the selected target is
blank, the receiver MAY use _blank or _top according to its
local presentation policy. The receiver MUST inspect
protocol.webapp.requirements: if it includes must-use-mfa, the
Receiving Server MUST ensure that the Receiving Party has been
authenticated with MFA, or prompt the consumer in order to elevate
their session, if applicable. The receiver MUST NOT place the
protocol.webapp.sharedSecret in the URI and MUST NOT expose it to
the browser. Instead, the receiver MUST first exchange it at the
Sending Server's {tokenEndPoint} using the Code Flow, then deliver
the resulting bearer token to the web app via an HTTP POST to
protocol.webapp.uri with the token carried in a form field named
access_token along with another form field named
expired_session_redirect_uri. The
expired_session_redirect_uri value MUST be an absolute HTTPS URI
controlled by the Receiving Server. The Sending WebApp MAY navigate
the browser to this URI when the posted session expires so that the
Receiving Server can restart access and obtain a fresh token; it
MUST NOT place the shared secret or access token in that URI.
Sending WebApps that do not support session refresh MAY ignore this
field. This is typically achieved with an auto-submitting
HTML form whose target attribute selects the chosen
presentation (e.g. an iframe name, _blank, or _top).¶
In all cases, in case the Shared Resource is a folder and the Receiving
Server accesses a Resource within that shared folder, it SHOULD append
its relative path to that URL. In other words, the Sending Server
SHOULD support requests to URLs such as
https://<sender-host><sender-ocm-path>/path/to/resource.txt.¶
This section defines the procedure for issuing short-lived bearer access tokens for use by the Receiving Server when accessing a resource shared through OCM. The mechanism is aligned with the OAuth 2.0 authorization_code grant type but is performed entirely as a server to server interaction between the Sending and Receiving Servers. No user interaction or redirect is involved. [RFC6749]¶
To obtain an access token, the Receiving Server MUST send an HTTP POST
request to the Sending Server’s {tokenEndPoint} as discovered in the
OCM provider metadata, following section 4.4.2 of [RFC6749]. The
request payload MUST be in x-www-form-urlencoded form, as shown
in the following example (with line breaks in the Signature headers
for display purposes only):¶
POST {tokenEndPoint} HTTP/1.1
Host: cloud.example.org
Date: Wed, 05 Nov 2025 14:00:00 GMT
Content-Type: application/x-www-form-urlencoded
Digest: SHA-256=ok6mQ3WZzKc8nb7s/Jt2yY1uK7d2n8Zq7dhl3Q0s1xk=
Content-Length: 101
Signature-Input:
sig1=("@method" "@target-uri" "content-digest" "date");
created=1730815200;
keyid="receiver.example.org#key1";
alg="ed25519";
tag="ocm"
Signature: sig1=:bM2sV2a4oM8pWc4Q8r9Zb8bQ7a2vH1kR9xT0yJ3uE4wO5lV6bZ1cP
2rN3qD4tR5hC=:
grant_type=authorization_code&
client_id=receiver.example.org&
code=my_secret_code
¶
The request MUST be signed using an HTTP Message Signature
[RFC9421]. The client_id identifies the Receiving Server and MUST be
set to its fully qualified domain name. The code parameter carries
the authorization secret that was issued by the Sending Server in the
Share Creation Notification. It is allowed to send the additional
parameters defined in [RFC6749] for the authorization_code grant type,
but they MUST be ignored.¶
If the request is valid and the code is accepted, the Sending Server MUST respond with HTTP 200 OK and a OAuth-compliant JSON object containing the issued token:¶
{
"access_token": "8f3d3f26-f1e6-4b47-9e3e-9af6c0d4ad8b",
"token_type": "Bearer",
"expires_in": 300
}
¶
The access_token is an opaque bearer credential with no internal
structure visible to the Receiving Server. The token authorizes the
Receiving Server to access the shared resource using the appropriate
transport protocol (e.g., WebDAV). The expires_in value indicates
the token lifetime in seconds. No refresh_token is issued, instead
the same request to the {tokenEndPoint} MUST be repeated before the
access_token has expired, to recieve a new access_token that can
then be used in the same manner.¶
If the request is invalid, the Sending Server MUST return an HTTP 400 response with a JSON object containing an OAuth 2.0 error code [RFC6749]:¶
{ "error": "invalid_request" }
¶
Permitted error codes are invalid_request, invalid_client,
invalid_grant, unauthorized_client and unsupported_grant_type.¶
The directional contract depends first on whether the share is strict. For strict shares, the Receiving Server's advertised behavior determines whether the Sending Server can require code flow. For non-strict shares, the Sending Server's advertised behavior determines whether token exchange is available in addition to legacy access.¶
If the Sending Server includes must-exchange-token in
protocol.webdav.requirements and the Receiving Server exposes the
exchange-token capability, strict token exchange is required
before the Resource is accessed.¶
If the Sending Server includes must-exchange-token and the
Receiving Server does not expose the exchange-token capability,
the Sending Server SHOULD NOT include that requirement, because the
Receiving Server may be unable to complete the exchange.¶
If the Sending Server omits must-exchange-token and exposes the
exchange-token capability with a tokenEndPoint, the Receiving
Server MAY attempt token exchange first and MUST fall back to legacy
shared-secret access if that exchange fails.¶
If the Sending Server omits must-exchange-token and does not
expose the exchange-token capability, only legacy shared-secret
access is available.¶
The following examples illustrate typical end-to-end outcomes:¶
Strict required code flow: Provider A acts as Sending Server and
exposes the exchange-token capability with a tokenEndPoint.
Provider B acts as Receiving Server and advertises both
exchange-token and must-exchange-token. After discovering B's
must-exchange-token criteria, A MUST include must-exchange-token
in protocol.webdav.requirements. B MUST exchange the
sharedSecret at A's tokenEndPoint and then use only the bearer
token to access the Resource.¶
Optional exchange with fallback: Provider A acts as Sending Server
and exposes the exchange-token capability with a tokenEndPoint.
Provider B does not advertise must-exchange-token, so A sends a
share without must-exchange-token. When B later accesses the
Resource, it MAY attempt the token exchange at A's tokenEndPoint,
but if that exchange fails it MUST fall back to the legacy
sharedSecret.¶
Legacy share to a code-flow-capable peer: Provider A does not
expose the exchange-token capability. Provider B does expose
exchange-token, so B is capable of honoring strict inbound shares
from other peers. Because A does not advertise a tokenEndPoint,
A can only send a legacy share and B can only use legacy
shared-secret access for that share.¶
Asymmetric role behavior: Provider A exposes exchange-token and
must-exchange-token, so it can require code flow for inbound
shares when it acts as Receiving Server. When A later acts as
Sending Server toward Provider B, and B does not advertise
must-exchange-token, A MAY omit must-exchange-token. B may then
attempt token exchange against A's tokenEndPoint or fall back to
legacy access. A therefore accepts strict inbound shares while
still choosing a legacy-compatible outbound share.¶
The "REQUEST_RESHARE" and "RESHARE_UNDO" notification types MAY be
used by the Receiving Server to persuade the Sending Server to share the
same Resource with another Receiving Party.
The details of the payload and side effects such a notification may
have are out of scope of this version of this specification.
Note that the Receiving Party sending such a notification has no way of
knowing if the Sending Party understood and processed the reshare
request or not. In all cases, the Receiving Server MUST NOT reshare
a Resource without an explicit grant from the Sending Server.¶
[RFC Editor: please replace all occurrences of "RFC XXXX" with the RFC number assigned to this document and remove this note.]¶
The following value is to be registered in the "Well-Known URIs" registry (using the template from [RFC8615]):¶
The following entry is to be registered in the "JSContact Types" registry (using the template from [RFC9553]):¶
ocmAddress¶
common¶
1.0¶
N/A¶
IETF¶
An object representing an OCM address. The object contains:¶
"address" (String, required): The OCM federated address in format "user@provider" where provider is the FQDN of an OCM-capable server.¶
"trusted" (Boolean, optional): Whether shares from this address are automatically accepted. Default: false.¶
"source" (String, optional): How this address was established. See "JSContact Enum Values" registry for allowed values.¶
"label" (String, optional): Human-readable label for this address.¶
See RFC XXXX, Section 15.2.¶
The following entry is to be registered in the "JSContact Properties" registry (using the template from [RFC9553]):¶
ietf.org:ocmAddresses¶
String[ocmAddress]¶
Card¶
common¶
1.0¶
N/A¶
IETF¶
A map of OCM addresses for a contact. The keys are arbitrary identifiers (e.g., "primary", "work") and the values are ocmAddress objects as defined in the JSContact Types Registry. See RFC XXXX, Section 15.3.¶
The following entry is to be registered in the "JSContact Enum Values" registry (using the template from [RFC9553]):¶
ietf.org:ocmAddresses/source¶
Card¶
1.0¶
N/A¶
IETF¶
Values indicating how an OCM address was established. See RFC XXXX, Section 15.4.1.¶
IANA will create a subregistry for "ietf.org:ocmAddresses/source" (Context: Card) in accordance with [RFC9553], Section 3.7.2. All entries in the initial contents below have a Since Version of 1.0, no Until Version, and IETF as the Change Controller. Initial contents:¶
+==============+==========================================+ | Enum Value | Reference/Description | +==============+==========================================+ | invite | Address established via OCM invite flow | |--------------|------------------------------------------| | share | Address established by receiving a share | |--------------|------------------------------------------| | direct entry | Address added directly by the user | |--------------|------------------------------------------|¶
IANA is requested to create a new registry group titled "Open Cloud Mesh (OCM) Parameters", containing the registries defined in the following subsections. Unless stated otherwise, the registration policy for each registry in this group is "Specification Required" [RFC8126]. The Designated Expert SHOULD verify that a requested entry is documented in a stable, publicly available specification and that it does not duplicate an existing entry.¶
IANA is requested to create the "OCM Resource Types" registry in the "Open Cloud Mesh (OCM) Parameters" group. This registry records the resource type values used both in the "resourceType" field of a Share Creation Notification (Section 7) and in the "name" field of each entry in the "resourceTypes" array advertised by the OCM API Discovery (Section 5) endpoint.¶
Registration Policy: Specification Required [RFC8126]¶
Initial Contents:¶
+===============+=====================+===============+ | Resource Type | Description | Reference | +===============+=====================+===============+ | file | A single file | This document | | folder | A folder/collection | This document | +===============+=====================+===============+¶
IANA is requested to create the "OCM Protocols" registry in the "Open Cloud Mesh (OCM) Parameters" group. Each entry records a protocol property name that MAY appear in the "protocols" object advertised by the OCM API Discovery (Section 5) endpoint or in the "protocol" object of a Share Creation Notification (Section 7).¶
A property whose "Role" is "send" (e.g. "webdav") advertises support for the Sending Server role in Discovery and is the value used in the share "protocol" object. Its "-receive" suffixed counterpart (e.g. "webdav-receive"), whose "Role" is "receive", advertises support for the Receiving Server role in Discovery. Which protocols MAY be used for a given resource type and share type is governed by the OCM Share Payloads (Section 15.9) registry.¶
Registration Policy: Specification Required [RFC8126]¶
Initial Contents:¶
+================+=========+===============+ | Property | Role | Reference | +================+=========+===============+ | webdav | send | This document | | webdav-receive | receive | This document | | webapp | send | This document | | webapp-receive | receive | This document | | ssh | send | This document | | ssh-receive | receive | This document | +================+=========+===============+¶
IANA is requested to create the "OCM Notification Types" registry in the "Open Cloud Mesh (OCM) Parameters" group. This registry records the values that MAY appear in the "notificationType" field of an OCM notification sent to the "/notifications" endpoint (see Share Acceptance Notification (Section 9)).¶
The "Scope" field indicates whether the notification refers to a Share, in which case the "providerId" field is REQUIRED, or to a Group. The "Status" field is one of "active" or "experimental".¶
Registration Policy: Specification Required [RFC8126]¶
Initial Contents:¶
+===========================+=======+==============+===============+ | Notification Type | Scope | Status | Reference | +===========================+=======+==============+===============+ | SHARE_ACCEPTED | Share | active | This document | | SHARE_DECLINED | Share | active | This document | | SHARE_UNSHARED | Share | active | This document | | REQUEST_RESHARE | Share | experimental | This document | | RESHARE_UNDO | Share | experimental | This document | | RESHARE_CHANGE_PERMISSION | Share | experimental | This document | +===========================+=======+==============+===============+¶
There are several areas that are not covered by this specification.
Most importantly we do not provide a way of establishing trust between
servers, even though some features of the protocol rely on trust, such
as the must-use-mfa requirement.¶
Trust needs to be established out of band, but there are some features of the protocol that can be used to assist operators in establishing trust. For instance, invite flow can be used to establish that users know and have out of band connections with other users on an OCM server.¶
Further more the Directory Service feature can be used to establish a trusted federation, where a central authority can be trusted to implement measures for auditing and adding only trusted servers into the discovery service.¶
It is RECOMMENDED to use signed messages, "httpsig" [RFC9421], to verify that an OCM server is the server you expect it to be, and SHOULD be done unless you have a niche use case. Where signatures are used, they MUST follow the requirements in HTTP Message Signatures (Section 6).¶
The author(s) agree to grant third parties the irrevocable right to copy, use and distribute the work, with or without modification, in any medium, without royalty, provided that, unless separate permission is granted, redistributed modified works do not contain misleading author, version, name of work, or endorsement information.¶
[IANA-DIGEST-ALG] IANA, "Hash Algorithms for HTTP Digest Fields".¶
[IANA-SIG-ALG] IANA, "HTTP Signature Algorithms".¶
[RFC2119] Bradner, S. "Key words for use in RFCs to Indicate Requirement Levels", March 1997.¶
[RFC3986] Berners-Lee, T., Fielding, R. and Masinter, L. "Uniform Resource Identifier (URI): Generic Syntax ", January 2005¶
[RFC4648] Josefsson, S. "The Base16, Base32, and Base64 Data Encodings", October 2006.¶
[RFC4918] Dusseault, L. M. "HTTP Extensions for Web Distributed Authoring and Versioning", June 2007.¶
[RFC6749] Hardt, D. (ed), "The OAuth 2.0 Authorization Framework", October 2012.¶
[RFC6838] Freed, N., Klensin, J., Hansen, T. "Media Type Specifications and Registration Procedures ", January 2013.¶
[RFC7515] Jones, M., Bradley, J., Sakimura, N., "JSON Web Signature (JWS)", May 2015.¶
[RFC7517] Jones, M., "JSON Web Key (JWK)", May 2015.¶
[RFC8032] Josefsson, S., Liusvaara, I., "Edwards-Curve Digital Signature Algorithm (EdDSA)", January 2017.¶
[RFC8126] Cotton, M., Leiba, B. and Narten, T. "Guidelines for Writing an IANA Considerations Section in RFCs", June 2017.¶
[RFC8174] Leiba, B. "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", May 2017.¶
[RFC8615] Nottingham, M. "Well-Known Uniform Resource Identifiers (URIs)", May 2019¶
[RFC9421] Backman, A., Richer, J. and Sporny, M. "HTTP Message Signatures", February 2024.¶
[RFC9530] Polli, R., Marwood, D., "Digest Fields", February 2024.¶
[RFC9553] Stepanek, R., Loffredo, M., "JSContact: A JSON Representation of Contact Data, May 2024"¶
[OCM-IP] Nordin, M., Lo Presti, G., and Baghbani, M. "Open Cloud Mesh Integration Protocol", Work in Progress, Internet-Draft.¶
[OCM-MLS] Nordin, M., Lo Presti, G., and Baghbani, M. "Federated Groups in Open Cloud Mesh using Messaging Layer Security", Work in Progress, Internet-Draft.¶
If a Receiving Server exposes the capability enforce-mfa, it
indicates that it will try and comply with a MFA requirement set on a
Share. If the Sending Server trusts the Receiving Server, the Sending
Server MAY set the requirement must-use-mfa on a Share, which the
Receiving Server MUST honor. A compliant Receiving Server that signals
that it is MFA-capable MUST NOT allow access to a Resource protected
with the must-use-mfa requirement, if the Receiving Party has not
provided a second factor to establish their identity with greater
confidence.¶
Since there is no way to guarantee that the Receiving Server will actually enforce the MFA requirement, it is up to the Sending Server to establish a trust with the Receiving Server such that it is reasonable to assume that the Receiving Server will honor the MFA requirement. This establishment of trust will inevitably be implementation dependent, and can be done for example using a pre approved allow list of trusted Receiving Servers. The procedure of establishing trust is out of scope for this specification: a mechanism similar to the ScienceMesh integration for the Invite (Section 4.4) capability may be envisaged.¶
An OCM Server that advertises the http-sig capability MUST expose its
public keys at /.well-known/jwks.json in the format specified by
[RFC7517]. Here is an example response from
https://sender.example.org/.well-known/jwks.json:¶
{
"keys": [
{
"kty": "OKP",
"crv": "Ed25519",
"kid": "sender.example.org#key1",
"x": "11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo"
}
]
}
¶
Given a Share Creation Notification request:¶
POST /ocm/shares HTTP/1.1
Host: receiver.example.org
Date: Fri, 16 Jan 2026 13:37:00 GMT
Content-Type: application/json
Content-Digest: sha-256=:LkpHyFOVbBDPxc7YbHDOWNzAv88qWuVfLNf4TUf9Uo8=:
{
"shareWith": "marie@receiver.example.org",
"name": "spec.yaml",
"providerId": "7c084226-d9a1-11e6-bf26-cec0c932ce01",
"owner": "einstein@sender.example.org",
"sender": "einstein@sender.example.org",
"ownerDisplayName": "Albert Einstein",
"senderDisplayName": "Albert Einstein",
"shareType": "user",
"resourceType": "file",
"protocol": {
"name": "multi",
"webdav": {
"uri": "spec.yaml",
"sharedSecret": "hfiuhworzwnur98d3wjiwhr",
"permissions": ["read", "write"]
}
}
}
¶
The signature base is constructed according to [RFC9421] (with line breaks in @signature-params for display purposes only):¶
"@method": POST
"@target-uri": https://receiver.example.org/ocm/shares
"content-digest": sha-256=:[digest-value]:
"content-length": [body-length]
"date": [date]
"@signature-params": ("@method" "@target-uri" "content-digest"
"content-length" "date");
created=[timestamp];
keyid="sender.example.org#key1";
alg="ed25519";
tag="ocm"
¶
Sign this base using for example Ed25519 ([RFC8032]) to produce the
signature, and then add headers (line breaks for display purposes
only). Note that the dictionary label (sig1 below) is arbitrary; the
signature is marked as belonging to OCM by its tag="ocm" parameter,
which is part of the signature base above:¶
Content-Digest: sha-256=:[digest-value]:
Content-Length: [body-length]
Date: [date]
Signature-Input: sig1=("@method" "@target-uri" "content-digest"
"content-length" "date");
created=[timestamp];
keyid="sender.example.org#key1";
alg="ed25519";
tag="ocm"
Signature: sig1=:[signature-value]=:
¶
The covered components, the created parameter, the single ocm
tag, and the prohibition on symmetric algorithms shown here are
normative; see HTTP Message Signatures (Section 6) for
the full requirements.¶
The normative verification requirements are specified in HTTP Message Signatures (Section 6). The following illustrates the procedure to verify an incoming signed request:¶
Extract the provider domain from the sender field in the
request body¶
Fetch the public key from
https://<provider-domain>/.well-known/jwks.json¶
Locate the unique signature carrying the tag="ocm" parameter in
the Signature-Input header, disregarding its dictionary label
(here sig1)¶
Extract keyid from Signature-Input header and find the key
matching the kid value in the [RFC7517] response¶
Reconstruct the signature base from the request using the
components listed in Signature-Input as specified in [RFC9421]¶
Verify the signature using the appropriate algorithm (e.g., Ed25519 [RFC8032])¶
Following the validation of the signature, the host SHOULD also confirm the validity of the payload, that is ensuring that the actions implied in the payload actually initiated on behalf of the source of the request.¶
As an example, if the payload is about initiating a new share, the file owner has to be an account from the instance at the origin of the request.¶
A third-party Directory Service is a back-end service used to federate multiple OCM Servers and facilitate the Invite flow. It is expected to expose, via anonymous HTTPS GET, a signed JWS document [RFC7515], where the signing key MUST be made available offline and the payload MUST adhere to the following format:¶
REQUIRED: federation - a human-readable name for the list of OCM
Servers exposed by the Directory Service¶
REQUIRED: servers - a JSON array of objects to describe the list
of OCM Servers with the following string fields:¶
{
"payload": {
"federation": "The ScienceMesh Directory",
"servers": [
{
"url": "https://ocm-server.example.org",
"displayName": "OCM Server 1"
},
{
"url": "https://ocm-server.example.com:4443",
"displayName": "OCM Server 2"
},
{
"url": "http://192.168.1.1:8080",
"displayName": "OCM Server 3"
}
]
},
"protected": {"alg": "ES256"},
"signature": "..."
}
¶
An implementor of OCM MAY choose any internal object model to represent an Address Book, a Contact, an Invite, a Provider, a Share, and a User. The following diagrams are provided to clarify the concepts and their relationships, as a guide for implementors.¶
An OCM Provider MAY offer its Users an address book tool, where OCM Addresses can be stored over time in a labeled and/or searchable way. This decouples the act by which the OCM Address string is passed into the Sending Server's database from the selection of the Receiving Party in preparation for Share Creation.¶
The Address Book entity maintains a collection of contacts for a user within the OCM provider. It serves as the primary mechanism for managing federated relationships between users across different OCM Servers. Contacts may be added to the Address Book through the Invite flow or direct entry. It provides a convenient way for users to organize and access their federated contacts, and MAY allow users to generate Invites.¶
+-----------------+
| Address Book |
| |
| - owner: User |--------+
| - contacts: [] | |
+-----------------+ |
| |
| contains | generates
| 0..* |
v v
+-----------------+ +----------------+
| Contact | | Invites |
+-----------------+ +----------------+
¶
A Contact represents a federated user relationship established through the OCM protocol. Contacts are stored in Address Books and may be created through the Invite process or via direct entry. A Contact MAY of course contain much more detailed information about the referenced user such as if it was added via Invites or direct entry.¶
+-----------------+
| Contact |
+-----------------+
| - addedDate |
| - email |
| - name |
| - provider |
| - userID |
+-----------------+
^
| referenced by
|
+-----------------+
| Address Book |
+-----------------+
¶
A Contact may be referenced by one or more Address Books.¶
The Invite entity represents the bidirectional trust establishment mechanism in OCM. It facilitates secure contact exchange between users on different OCM Servers.¶
+-----------------+
| Invite |
+-----------------+
| - acceptedTime |
| - createdTime |
| - sender: User |
| - token |
+-----------------+
|
| generated by
v
+-----------------+
| Address Book |
+-----------------+
¶
The Provider entity represents an OCM Server's capabilities and configuration as discovered through the OCM API Discovery process. It represents both the Sending Server and Receiving Server roles, and an implementor might find it useful to have a Provider object model to store the discovered information about federation peers or other remote OCM Providers.¶
The following diagram is illustrative and non-exhaustive. The single source of truth for Provider properties is the OCM API Discovery Fields section; for the box contents below, see the Properties subsection and the normative capability, criteria, and resource type definitions in that section.¶
+-----------------------+
| Provider |
| (OCM Server) |
+-----------------------+
| - apiVersion |
| - enabled |
| - endPoint |
| - inviteAcceptDialog |
| - provider |
| - tokenEndPoint |
| - ... |
+-----------------------+
|
| exposes
|
+---------+---------+----------------------+
| | |
v v |
+------------------+ +------------------+ |
| ResourceTypes[] | | Capabilities[] | |
+------------------+ +------------------+ |
| - name | | - enforce-mfa | |
| - shareTypes[] | | - exchange-token | |
| - protocols{} | | - http-sig | |
| - ... | | - invites | |
+------------------+ | - notifications | |
| | - protocol-object| |
| | - ... | |
| +------------------+ |
| |
| +----------------+
| |
| v
| +--------------------------+
| | Criteria[] |
| +--------------------------+
| | - allowlist |
| | - denylist |
| | - must-use-http-sig |
| | - must-invite |
| | - must-exchange-token |
| | - ... |
| +--------------------------+
|
| supports
v
+------------------+
| Protocols |
+------------------+
| - ssh |
| - ssh-receive |
| - webapp |
| - webapp-receive |
| - webdav |
| - webdav-receive |
| - ... |
+------------------+
¶
apiVersion: Version string of supported OCM API¶
capabilities: Optional features supported¶
criteria: Requirements for accepting Share Creation Notifications¶
enabled: Boolean indicating if OCM service is active¶
endPoint: Base URI for OCM API endpoints¶
provider: Friendly branding name¶
resourceTypes: Array of supported resource types with protocols¶
The User entity represents the party in OCM who can send and receive Shares and Invites and manage Contacts, and interact with Resources.¶
+-----------------------+
| User |
+-----------------------+
| - email |
| - name |
| - ocmAddress |
| - uid |
+-----------------------+
|
+---------+---------+
| |
| owns | participates in
v v
+------------------+ +------------------+
| Address Book | | Shares |
+------------------+ +------------------+
| - contacts[] | | - receiving[] |
+------------------+ | - sending[] |
| +------------------+
|
| issues
v
+------------------+
| Invites |
+------------------+
| - sent[] |
+------------------+
¶
The Resource entity represents the data or service being shared between OCM Providers. It is the target of Shares and is accessed by the Receiving Party through the Sending Server's API. In general a Resource is a much more complex entity, but for the purpose of OCM we only need to model a few key properties.¶
+-----------------+
| Resource |
+-----------------+
| - location |
| - owner: User |
| - resourceID |
| - type |
+-----------------+
^
|
| accessed via
|
v
+------------------+
| Share |
+------------------+
¶
This section collects the changes with respect to the previous version in the IETF datatracker. It is meant to ease the review process and it shall be removed when going to RFC last call. The complete changelog is updated in the OCM-API GitHub repository.¶
Introduced IANA Registries for resource types, protocols, share types, and share payloads, and populated them with all relevant values defined in this document.¶
Moved the federation share type definition along with the
corresponding share payload description to the [OCM-MLS] Draft.¶
Improved the http-sig related text, and promoted it from an appendix to a normative section. In addition, made the use of http-sig a MUST for implementations that offer it as capability.¶
Sorted the Terms and removed duplicates.¶
Addressed the IANA early review: added the Status field to the Well-Known URI registration, added section references to the JSContact registrations, moved the creation of the JSContact enum values subregistry to a dedicated subsection, and reformatted the registration templates so each field renders on its own line.¶
Introduced a /request-share endpoint to request a user of an
OCM server to share a resource.¶
Refactored the webapp protocol to align it to the new security
standard, by means of POST requests and the Code Flow.¶
Introduced new <protocol>-receive protocols in the Discovery
endpoint, to signal the ability to receive an OCM share carrying
that protocol.¶
Introduced new Internet-Draft specifications to cover optional parts of the protocol related to webapp integrations and federated groups.¶
Renamed some requirements and criteria to improve consistency.¶
On a Share Creation Notification, made the sharedSecret
a required parameter for all protocol payloads that specify it.¶
Fixed all example URIs to use example.org across the spec.¶
Improved the JWKS-related text and fixed obsoleted references.¶
Removed the already deprecated /ocm-provider endpoint and the
draft-cavage public key advertisement in the OCM Discovery endpoint
as all known implementations have migrated to the recommended
alternatives.¶
Fixed formatting of artworks, code blocks and bullet lists.¶
Added the Changes section.¶
Introduced functions, roles, and object models to the specification.¶
Added support for SSH as a share access method.¶
Introduced accessType property in shares and removed the datatx
"protocol" in favor of a cleaner access model.¶
Improved resource access description with token exchange, and
specified request payload format for the /token endpoint.¶
Added RFC 9421 HTTP Message Signatures support via http-sig
capability and RFC 7515 (JWS) compliant JWKS and prescribed use of
JWS for the Directory Service.¶
Updated and homogenized capabilities across the specification.¶
Added JSContact extension to IANA Considerations.¶
Changed example domain to use cloud.example.org per RFC 2606.¶
Our deepest thanks and appreciation go to the people who started the work on what would become this specification in 2015. In particular we want to thank (in alphabetical order) Guido Aben, Russell Albert, Holger Angenent, David Antoš, Hrachya Astsatryan, Kurt Bauer, Charles du Jeu, Andreas Eckey, David Gillard, Andranik Hayrapetyan Wahi, Dimitri van Hees, Christoph Herzog, David Jericho, Frank Karlitschek, Christian Kracher, Ralph Krimmel, Massimo Lamanna, Simon Leinen, Jari Miettinen, Jakub Moscicki, Frederik Orellana, Vlad Roman, Christian Schmitz, Woojin Seok, Rogier Spoor, Christian Sprajc, Peter Szegedi, Ron Trompert, Benedikt Wegmann and Jonathan Xu.¶
We would also like to thank Ishank Arora, Gianmaria Del Monte, Jörn Friedrich Dreyer, Richard Freitag, Hugo González Labrador, Matthias Kraus, Maxence Lange, Lovisa Lugnegård, Thibault Meunier, Sandro Mesterheide, Antoon Prins and Björn Schießle for their direct contributions to the specification.¶
Over the years many more people have been involved in the development of OCM. We would like to thank all of them for their contributions, including Jean-Thomas Acquaviva, Samuel Alfageme Sainz, Karsten Asshauer, Miroslav Bauer, Felix Böhm, Maciej Brzeźniak, Diogo Castro, Gavin Charles Kennedy, Jarosław Czub, Milan Danecek, Michael D'Silva, Lukasz Dutka, Pedro Ferreira, Renato Furter, Klaas Freitag, Raman Ganguly, Eva Gergely, Hilary Goodson, Daniel Halbe, Dave Heyns, Jan Holesovsky, Jan Hornicek, Carina Kemp, Fergus Kerins, Andreas Klotz, Matthias Knoll, Christian Kracher, Mario Lassnig, Claudius Laumanns, Anthony Leroy, Patrick Maier, Vladislav Makarenko, Anna Manou, Rita Meneses, Zheng Meyer-Zhao, Crystal Michelle Chua, Yoann Moulin, Daniel Müller, Frederik Müller, Rasmus Munk, Michał Orzechowski, Jacek Pawel Kitowski, Enrique Pérez Arnaud, Iosif Peterfi, Alessandro Petraro, Rene Ranger, Angelo Romasanta, David Rousse, Carla Sauvanaud, Klaus Scheibenberger, Marcin Sieprawski, Tilo Steiger, C.D. Tiwari, Alejandro Unger and Tom Wezepoel.¶
Work on this document has been partially funded over the years by multiple projects and funding agencies:¶
The CS3MESH4EOSC project "Interactive and agile/responsive sharing mesh of storage, data and applications for EOSC", whose key result was Science Mesh, received funding from the European Union's Horizon 2020 research and innovation programme under Grant Agreement no. 863353.¶
NLnet through the NGI0 Core Fund, with financial support from the European Commission's Next Generation Internet programme under grant agreement No. 101092990.¶
The EOSC Data Commons project "Services for inter- and cross-disciplinary data discovery, access, sharing and reuse in the EOSC Federation", received funding from the European Union under Grant Agreement no. 101188179.¶
Sovereign Tech Agency through the Tech Fund, with a specific project.¶