Internet-Draft | Mesh Schema Reference | August 2021 |
Hallam-Baker | Expires 6 February 2022 | [Page] |
The Mathematical Mesh 'The Mesh' is an end-to-end secure infrastructure that facilitates the exchange of configuration and credential data between multiple user devices. The core protocols of the Mesh are described with examples of common use cases and reference data.¶
[Note to Readers]¶
Discussion of this draft takes place on the MATHMESH mailing list (mathmesh@ietf.org), which is archived at https://mailarchive.ietf.org/arch/search/?email_list=mathmesh.¶
This document is also available online at http://mathmesh.com/Documents/draft-hallambaker-mesh-schema.html.¶
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 6 February 2022.¶
Copyright (c) 2021 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.¶
This document describes the data structures of the Mathematical Mesh with illustrative examples. For an overview of the Mesh objectives and architecture, consult the accompanying Architecture Guide [draft-hallambaker-mesh-architecture]. For information on the implementation of the Mesh Service protocol, consult the accompanying Protocol Reference [draft-hallambaker-mesh-protocol]¶
This document has two main sections. The first section presents examples of the Mesh assertions, catalog entry and messages in use. The second section contains the schema reference. All the material in both sections is generated from the Mesh reference implementation [draft-hallambaker-mesh-developer].¶
Although some of the services described in this document could be used to replace existing Internet protocols including FTP and SMTP, the principal value of any communication protocol lies in the size of the audience it allows them to communicate with. Thus, while the Mesh Messaging service is designed to support efficient and reliable transfer of messages ranging in size from a few bytes to multiple terabytes, the near-term applications of these services will be to applications that are not adequately supported by existing protocols if at all.¶
This section presents the related specifications and standard, the terms that are used as terms of art within the documents and the terms used as requirements language.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].¶
The terms of art used in this document are described in the Mesh Architecture Guide [draft-hallambaker-mesh-architecture].¶
The implementation status of the reference code base is described in the companion document [draft-hallambaker-mesh-developer].¶
The Mesh mediates interactions between three principal actors: Accounts, Devices, and Services.¶
Currently two account types are specified, user accounts which belong to an individual user and group accounts that are used to share access to confidential information between a group of users. It may prove useful to define new types of account over time or to eliminate the distinction entirely. When active a Mesh account is bound to a Mesh Service. The service to which an account is bound MAY be changed over time but an account can only be bound to a single service at a time.¶
A Mesh account is an abstract construct that (when active) is instantiated across one or more physical machines called a device. Each device that is connected to an account has a separate set of cryptographic keys that are used to interact with other devices connected to the account and MAY be provisioned with access to the account private keys which MAY or MAY NOT be mediated by the current Mesh Service.¶
A Mesh Service is an abstract construct that is provided by one or more physical machines called Hosts. A Mesh Host is a device that is attached to a service rather than an account.¶
A Mesh Account is described by a Profile descended from Profile Account and contains a set of Mesh stores. Currently two account profiles are defined:¶
Describes a user account.¶
Describes a group account used to share confidential information between a group of users.¶
Both types of profile specify the following fields:¶
The public signature key used to authenticate the profile itself¶
The account name to which the account is currently bound. (e.g. alice@example.com
, @alice
).¶
If the account is active, specifies the fingerprint of the service profile to which the account is currently bound.¶
The public signature key used to verify administrative actions on the account. In particular addition of devices to a user account or members to a group account.¶
The public encryption key for the account. All messages sent to the account MUST be encrypted under this key. By definition, all data encrypted under this account is encrypted under this key.¶
User accounts specify two additional public keys, AccountSignature
and AccountAuthentication
which allow signature and authentication operations under the account context.¶
Every account contains a set of catalogs and spools that are managed by the service as directed by the contents of the associated Access
catalog.¶
For example, the personal account profile Alice created is:¶
{ "ProfileUser":{ "ProfileSignature":{ "Udf":"MC44-IZC3-IWZT-VCVZ-L2AG-HI4E-LOV2", "PublicParameters":{ "PublicKeyECDH":{ "crv":"Ed448", "Public":"W5ugEWyCz986Pw7xPP9-ap09PFpqfc9x_MB0Uq1brUpEg 1ylIaitE5YaJIAeTb_Cc5y4Yr5D6kgA"}}}, "AccountAddress":"alice@example.com", "ServiceUdf":"MBBY-E4VA-CMWF-52T7-ESLA-PGNT-CNNX", "AccountEncryption":{ "Udf":"MCQX-PF7A-LY3G-3ZPI-AIYO-LR5D-YG6W", "PublicParameters":{ "PublicKeyECDH":{ "crv":"X448", "Public":"0ARE0VapsMqYf_P-tFnE0FZ2Zq2wn4e21viCH4Trhyg7Q 0N8FXmbpYv_72_L2VKuliiiOhddT1OA"}}}, "AdministratorSignature":{ "Udf":"MCLJ-LCFX-ENE2-5NTF-GBNV-MW3P-VHSZ", "PublicParameters":{ "PublicKeyECDH":{ "crv":"Ed448", "Public":"GXmg8zk0pvV9b881JNvRm69dOTuL7oyYNwziQQltWF4aX ZMCTjf8EM3gtCU7wHF0zuFsd1WgX8GA"}}}, "AccountAuthentication":{ "Udf":"MDA5-PY6A-BG2L-7YN6-EAKP-O3QB-CG5T", "PublicParameters":{ "PublicKeyECDH":{ "crv":"X448", "Public":"XcHN7AbMTW1TMQOd0mXyAHG62O6j7YHgIGhp1Oaj5xTOK 2uPzGxMeCeFOzX0f-YJXijL6hl_baWA"}}}, "AccountSignature":{ "Udf":"MCGB-4KCI-CP3G-FJSD-W7W2-UYKO-GNLU", "PublicParameters":{ "PublicKeyECDH":{ "crv":"Ed448", "Public":"cA1wcKtn1daj606UD0PJ8xLqFN0kOdxyjsF2QKrPZxdUY gSPRVRiLsLJOEl7cIsttpaCFwuPiDOA"}}}}}¶
Every Mesh device has a set of private keys that are unique to that device. These keys MAY be installed during manufacture, installed from an external source after manufacture or generated on the device. If the platform capabilities allow, device private keys SHOULD be bound to the device so that they cannot be extracted or exported without substantial effort.¶
The public keys corresponding to the device private keys are specified in a ProfileDevice. This MUST contain at least the following fields:¶
The public signature key used to authenticate the profile itself.¶
Public encryption key used as a share contribution to generation of device encryption keys to be used in the context of an account and to decrypt data during the process of connecting to an account.¶
Public authentication key used as a share contribution to generation of device authentication keys to be used in the context of an account and to authenticate the device to a service during the process of connecting to an account.¶
Public signature key used as a share contribution to generation of device authentication keys to be used in the context of an account.¶
For example, the device profile corresponding to Alice's coffee pot device is:¶
The device private keys are only used to perform cryptographic operations during the process of connecting a device to an account. During that connection process, a threshold key generation scheme is used to generate a second set of device keys bound to the account by combining the base key held by the device with a second device private key provided by the administration device approving the connection of the device to the account. The resulting key is referred to as the device key. The process of combining the base keys with the contributions to form the device keys is called Activation.¶
The activation record for Alice's coffee pot device is:¶
The Mesh protocols are designed so that there is never a need to export or escrow private keys of any type associated with a device, neither the base key, nor the device key nor the contribution from the administration device.¶
This approach to device configuration ensures that the keys that are used by the device when operating within the context of the account are entirely separate from those originally provided by the device manufacturer or generated on the device, provided only that the key contributions from the administration device are sufficiently random and unguessable.¶
The public keys corresponding to the composite keys generated during the connection process are described in a ConnectionUser
assertion signed by the administration key of the corresponding account.¶
The connection record for Alice's coffee pot device is:¶
The ConnectionUser
assertion MAY be used in the same fashion as an X.509v3/PKIX certificate to mediate interactions between devices connected to the same account without the need for interaction with the Mesh service. Thus, a coffee pot device connected to the account can receive and authenticate instructions issued by a voice recognition device connected to that account.¶
While the ConnectionUser
assertion MAY be used to mediate external interactions, this approach is typically undesirable as it provides the external parties with visibility to the internal configuration of the account, in particular which connected devices are being used on which occasions. Furthermore, the lack of the need to interact with the service means that the service is necessarily unable to mediate the exchange and enforce authorization policy on the interactions.¶
Device keys are intended to be used to secure communications between devices connected to the same account. All communication between Mesh accounts SHOULD be mediated by a Mesh service. This enables abuse mitigation by applying access control to every outbound and every inbound message.¶
Since Alice's coffee pot does not require the external communication right, the activation record for the coffee pot does not provide access to the account keys required to perform external communications. Alice's watch device does require access to the account keys so it can receive messages and task updates. But since it is a device that Alice has to carry on her person to use, it is a device that might easily be lost or stolen. Accordingly, the activation record for Alice's watch provides access to the account decryption and signature keys but in the form of threshold key shares mediated by the Mesh service. Thus, Alice's watch can sign and read message sent to the account but only under the control of the Mesh service.¶
Mesh services are described by a ProfileService
. This specifies the encryption, and signature authentication keys used to interact with the abstract service.¶
Since Mesh accounts and services are both abstract constructs, they cannot interact directly. A device connected to an account can only interact with a service by interacted with a device authorized to provide services on behalf of one or more accounts connected to the service. Such a device is called a Mesh Host.¶
Mesh hosts MAY be managed using the same ProfileDevice and device connection mechanism provided for management of user devices or by whatever other management protocols prove convenient. The only part of the Service/Host interaction that is visible to devices connected to a profile and to hosts connected to other services is the ConnectionHost structure that describes the set of device keys to use in interactions with that specific host.¶
Catalogs track sets of persistent objects associated with a Mesh Service Account. The Mesh Service has no access to the entries in any Mesh catalog except for the Device and Contacts catalog which are used in device authentication and authorization of inbound messages.¶
Each Mesh Catalog managed by a Mesh Account has a name of the form:¶
<prefix>_<name>
¶
Where <prefix>
is the IANA assigned service name. The assigned service name for the Mathematical Mesh is mmm. Thus, all catalogs specified by the Mesh schema have names prefixed with the sequence mmm_
.¶
The following catalogs are currently specified within the Mathematical Mesh.¶
Describes access control policy for performing operations on the account. The Access catalog is the only Mesh catalog whose contents are readable by the Mesh Service under normal circumstances.¶
mmm_Application
Describes configuration information for applications including mail (SMTP, IMAP, OpenPGP, S/MIME, etc) and SSH and for the MeshAccount application itself.¶
mmm_Bookmark
Describes Web bookmarks and other citations allowing them to be shared between devices connected to the profile.¶
mmm_Contact
Describes logical and physical contact information for people and organizations.¶
mmm_Credential
Describes credentials used to access network resources.¶
mmm_Device
Describes the set of devices connected to the account and the permissions assigned to them¶
mmm_Network
Describes network settings such as WiFi access points, IPSEC and TLS VPN configurations, etc.¶
Describes the set of members connected to a group account.¶
Describes data published under the account context. The data MAY be stored in the publication catalog itself or on a separate service (e.g. a Web server).¶
mmm_CatalogTask
Describes tasks assigned to the user including calendar entries and to do lists.¶
The Access, Publication, Device and Member catalogs are involved in Mesh Service Protocol interactions. These interactions are further described in the Protocol Reference [draft-hallambaker-mesh-protocol].¶
In many cases, the Mesh Catalog offers capabilities that represent a superset of the capabilities of an existing application. For example, the task catalog supports the appointment tracking functions of a traditional calendar application and the task tracking function of the traditional 'to do list' application. Combining these functions allows tasks to be triggered by other events other than the passage of time such as completion of other tasks, geographical presence, etc.¶
In such cases, the Mesh Catalog entries are designed to provide a superset of the data representation capabilities of the legacy formats and (where available) recent extensions. Where a catalog entry is derived from input presented in a legacy format, the original data representation MAY be attached verbatim to facilitate interoperability.¶
The access catalog mmm_Access
contains a list of access control entries granting a party authenticated using a particular cryptographic credential a specific privilege such as:¶
As with the publication catalog, the access catalog provides information that is necessary for the Mesh Service to act on behalf of the user. It is therefore necessary to grant a decryption capability for this catalog during the process of binding the account to a service.¶
The application catalog mmm
_Application
contains CatalogEntryApplication
entries which describe the use of specific applications under the Mesh Service Account. Multiple application accounts for a single application MAY be connected to a single Mesh Service Account. Each account being specified in a separate entry.¶
The CatalogEntryApplication
entries only contain configuration information for the application as it applies to the account as a whole. If the application requires separate configuration for individual devices, this is specified in separate activation records specified in the corresponding ConnectionDevice
.¶
Mesh Accounts are described by CatalogEntryAccount
entries. The corresponding activation records for the connected devices contain the contributions used to derive the private keys for use of the account.¶
The CatalogEntryAccount
entry is described in the section describing Mesh accounts above.¶
SSH configuration profiles are described by CatalogEntryApplicationSSH
entries. The corresponding activation records for the connected devices contain the contributions used to derive the private keys.¶
A user may have separate SSH configurations for separate purposes within a single Mesh Account. This allows a system administrator servicing multiple clients to maintain separate SSH profiles for each of her customers allowing credentials to be easily (and verifiably) revoked at contract termination.¶
The SSH profile contains the information that is stored in the known_hosts
and authorized_keys
files of SSH clients and servers.¶
Mail configuration profiles are described by one or more CatalogEntryApplicationMail
entries, one for each email account connected to the Mesh profile. The corresponding activation records for the connected devices contain information used to provide the device with the necessary decryption information.¶
Entries specify the email account address(es), the inbound and outbound server configuration and the cryptographic keys to be used for S/MIME and OpenPGP encryption.¶
The bookmark catalog mmm_bookmark
contains CatalogEntryBookmark
entries which describe Web bookmarks and other citations allowing them to be shared between devices connected to the profile.¶
The fields currently supported by the Bookmarks catalog are currently limited to the fields required for tracking Web bookmarks. Specification of additional fields to track full academic citations is a work in progress.¶
{ "CatalogedBookmark":{ "Uri":"http://www.site1.com", "Title":"site1", "Path":"Sites.1"}}¶
The contact catalog mmm_contact
contains CatalogEntryContact
entries which describe¶
{ "CatalogedContact":{ "Key":"MC44-IZC3-IWZT-VCVZ-L2AG-HI4E-LOV2", "Self":true, "Contact":{ "ContactPerson":{ "Id":"MC44-IZC3-IWZT-VCVZ-L2AG-HI4E-LOV2", "Anchors":[{ "Udf":"MC44-IZC3-IWZT-VCVZ-L2AG-HI4E-LOV2", "Validation":"Self"} ], "NetworkAddresses":[{ "Address":"alice@example.com", "EnvelopedProfileAccount":[{ "EnvelopeId":"MC44-IZC3-IWZT-VCVZ-L2AG-HI4E-LOV2", "dig":"S512", "ContentMetaData":"ewogICJVbmlxdWVJZCI6ICJNQzQ0LU laQzMtSVdaVC1WQ1ZaLUwyQUctSEk0RS1MT1YyIiwKICAiTWVzc2FnZVR5cGUiOiA iUHJvZmlsZVVzZXIiLAogICJjdHkiOiAiYXBwbGljYXRpb24vbW1tL29iamVjdCIs CiAgIkNyZWF0ZWQiOiAiMjAyMS0wOC0wNVQxNjozNzozMVoifQ"}, "ewogICJQcm9maWxlVXNlciI6IHsKICAgICJQcm9maWxlU2lnbm F0dXJlIjogewogICAgICAiVWRmIjogIk1DNDQtSVpDMy1JV1pULVZDVlotTDJBRy1 ISTRFLUxPVjIiLAogICAgICAiUHVibGljUGFyYW1ldGVycyI6IHsKICAgICAgICAi UHVibGljS2V5RUNESCI6IHsKICAgICAgICAgICJjcnYiOiAiRWQ0NDgiLAogICAgI CAgICAgIlB1YmxpYyI6ICJXNXVnRVd5Q3o5ODZQdzd4UFA5LWFwMDlQRnBxZmM5eF 9NQjBVcTFiclVwRWcxeWxJYWl0CiAgRTVZYUpJQWVUYl9DYzV5NFlyNUQ2a2dBIn1 9fSwKICAgICJBY2NvdW50QW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ajdZSGdJR2hwMU9hajV4VE9LMnVQekd4TQogIGVDZ UZPelgwZi1ZSlhpakw2aGxfYmFXQSJ9fX0sCiAgICAiQWNjb3VudFNpZ25hdHVyZS I6IHsKICAgICAgIlVkZiI6ICJNQ0dCLTRLQ0ktQ1AzRy1GSlNELVc3VzItVVlLTy1 HTkxVIiwKICAgICAgIlB1YmxpY1BhcmFtZXRlcnMiOiB7CiAgICAgICAgIlB1Ymxp Y0tleUVDREgiOiB7CiAgICAgICAgICAiY3J2IjogIkVkNDQ4IiwKICAgICAgICAgI CJQdWJsaWMiOiAiY0Exd2NLdG4xZGFqNjA2VUQwUEo4eExxRk4wa09keHlqc0YyUU tyUFp4ZFVZZ1NQUlZSaQogIExzTEpPRWw3Y0lzdHRwYUNGd3VQaURPQSJ9fX19fQ", { "signatures":[{ "alg":"S512", "kid":"MC44-IZC3-IWZT-VCVZ-L2AG-HI4E-LOV2", "signature":"p1UxtlxOGp8wd7oESFQkmqR6uV9s-cW4 WtonkwN1BbH9F1KN6lllLPhnNBhlmstQ06cm7BEYtR6AwG2f1yOM1IjdPFzLmm53M BA-g4GLebflsg87h_kvT9JVSnHq7MDY6ewMo97Boay7r26qf-Ci4xIA"} ], "PayloadDigest":"gNprAKlPBfHdWXEdD7djEQ8IoJzHAJS- zBlZW6Bj8xjHqsbEhqbSO4AkIEizON5HsGbMSu_BQl_NPSrKZWS9pw"} ], "Protocols":[{ "Protocol":"mmm"} ]} ], "Sources":[{ "Validation":"Self", "EnvelopedSource":[{ "dig":"S512", "ContentMetaData":"ewogICJNZXNzYWdlVHlwZSI6ICJDb2 50YWN0UGVyc29uIiwKICAiY3R5IjogImFwcGxpY2F0aW9uL21tbS9vYmplY3QiLAo gICJDcmVhdGVkIjogIjIwMjEtMDgtMDVUMTY6Mzc6MzFaIn0"}, "ewogICJDb250YWN0UGVyc29uIjogewogICAgIkFuY2hvcnMiOi BbewogICAgICAgICJVZGYiOiAiTUM0NC1JWkMzLUlXWlQtVkNWWi1M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q13eAej7CnvXgRT7j58zhHCHm1 UKpxb13CQwFyNo7rCT31HKeOgS0V8Qa1npKMK6ZzsupGUttvuJ1qxIA"} ], "PayloadDigest":"lZVGf5kCDcfU544bSV1GOy3F3VjR7mv7 avq71IF1Lqsmd5A4A02yBbGOdzXJt_gOWbFXIi1NzhAKFpUFAvjiaw"} ]} ]}}}}¶
The fields of the contact catalog provide a superset of the capabilities of vCard [RFC2426].¶
The Contact catalog is typically used by the MeshService as a source of authorization information to perform access control on inbound and outbound message requests. For this reason, Mesh Service SHOULD be granted read access to the contacts catalog by providing a decryption entry for the service.¶
The credential catalog mmm_credential
contains CatalogEntryCredential
entries which describe credentials used to access network resources.¶
{ "CatalogedCredential":{ "Service":"ftp.example.com", "Username":"alice1", "Password":"password"}}¶
Only username/password credentials are stored in the credential catalog. If public key credentials are to be used, these SHOULD be managed as an application profile allowing separate credentials to be created for each device.¶
The device catalog mmm_Device
contains CatalogEntryDevice
entries which describe the devices connected to the account and the permissions assigned to them.¶
Each device connected to a Mesh Account has an associated CatalogEntryDevice entry that includes the activation and connection records for the account. These records are described in further detail in section REF _Ref54628559 \r \h 0.¶
The network catalog contains CatalogEntryNetwork
entries which describe network settings, IPSEC and TLS VPN configurations, etc.¶
{ "CatalogedNetwork":{ "Service":"myWiFi", "Password":"securePassword"}}¶
The publication catalog mmm_Publication
contains CatalogEntryPublication
entries which describe content published through the account.¶
The Task catalog mmm_Task
contains CatalogEntryTask
entries which describe tasks assigned to the user including calendar entries and to do lists.¶
The fields of the task catalog currently reflect those offered by the iCalendar specification [RFC5545]. Specification of additional fields to allow task triggering on geographic location and/or completion of other tasks is a work in progress.¶
{ "CatalogedTask":{ "Title":"SomeItem", "Key":"NC72-I2UG-KRON-M4MI-TCCX-5N7X-KRZ4"}}¶
Spools are DARE Containers containing an append only list of messages sent or received by an account. Three spools are currently defined:¶
Messages sent to the account. These are encrypted under the account encryption keys of the sender and receiver that were current at the time the message was sent.¶
Messages sent from the account. These are encrypted under the account encryption keys of the sender and receiver that were current at the time the message was sent.¶
Messages sent from the account for internal use. These are encrypted under the encryption key of the intended recipient alone. This is either the account administration encryption key or a device encryption key.¶
Every Mesh Message has a unique message identifier. Messages created at the beginning of a new messaging protocol interaction are assigned a random message identifier. Responses to previous messages are assigned message identifiers formed from the message identifier to which they respond by means of a message digest function.¶
Every Mesh Message stored in a spool is encapsulated in an envelope which bears a unique identifier that is formed by applying a message digest function to the message identifier. Each stored message has an associated state which is initially set to the state Initial
and MAY be subsequently altered by one or more MessageComplete
messages subsequently appended to the spool. The allowable message states depending upon the spool in question.¶
The outbound spool stores messages that are to be or have been sent and MessageComplete
messages reporting changes to the status of the messages stored on the spool.¶
Messages posted to the outbound spool have the state Initial, Sent, Received or Refused:¶
The initial state of a message posted to the spool.¶
The Mesh Service of the sender has delivered the message to the Mesh Service of the recipient which accepted it.¶
The Mesh Service of the sender has delivered the message to the Mesh Service of the recipient and the recipient has acknowledged receipt.¶
The Mesh Service of the sender has delivered the message to the Mesh Service of the recipient which refused to accept it.¶
MessageComplete
messages are only valid when posted to the spool by the service.¶
The inbound spool stores messages that have been received by the Mesh service servicing the account and MessageComplete messages reporting changes to the status of the messages stored on the spool.¶
Messages posted to the outbound spool have the state Initial, Read:¶
A message previously marked as read MAY be returned to the unread state by marking it as being in the Initial state.¶
The local spool stores messages that are used for administrative functions. In normal circumstances, only administrator devices and the Mesh Service require access to the local spool.¶
The local spool is used to store MessagePin messages used to notify administration devices that a PIN code has been registered for some purpose and RespondConnection messages used to inform a device of the result of a connection request.¶
The local spool is used in a device connection operation to provide a device with the activation and connection records required to access the service as an authorized client. Servicing these requests requires that the service be able to access messages stored in the spool by envelope id.¶
Messages posted to the outbound spool have the states Initial, Closed:¶
The Mesh makes use of various cryptographic operations including threshold operations. For convenience, these are gathered here and specified as functions that are referenced by other parts of the specification.¶
Mesh Keys that derived from a seed value use the mechanism described in [draft-hallambaker-mesh-udf]. Use of the keyname
parameter allows multiple keys for different uses to be derived from a single key. Thus escrow of a single seed value permits recovery of all the private keys associated with the profile.¶
The keyname parameter is a string formed by concatenating identifiers specifying the key type, the actor that will use the key and the key operation:¶
Every Mesh message has a unique Message Identifier MessageId
. The MakeID()
function is used to calculate the value of Envelope Identifier and Response identifier from the message identifier as follows:¶
static string MakeID(string udf, string content) { var (code, bds) = UDF.Parse(udf); return code switch { UdfTypeIdentifier.Digest_SHA_3_512 => UDF.ContentDigestOfDataString( bds, content, cryptoAlgorithmId: CryptoAlgorithmId.SHA_3_512), _ => UDF.ContentDigestOfDataString( bds, content, cryptoAlgorithmId: CryptoAlgorithmId.SHA_2_512), };¶
Where the values of content are given as follows:¶
String String¶
For example:¶
MessageID = NBF4-4PTH-UTSC-RYHZ-EQMK-BVH7-MU3F EnvelopeID = MD22-62AQ-PVVT-NPUS-ATUC-MQH4-PWV2 ResponseID = MCZ5-YD47-KD23-MHLY-F34Z-PFVI-47VK¶
Mesh Message classes that are subclasses of MessagePinValidated
MAY be authenticated by means of a PIN. Currently two such messages are defined: MessageContact
used in contact exchange and RequestConnection
message used in device connection.¶
The PIN codes used to authenticate MessagePinValidated
messages are UDF Authenticator strings. The type code of the identifier specifies the algorithm to be used to authenticate the PIN code and the Binary Data Sequence value specifies the key.¶
The inputs to the PIN proof of knowledge functions are:¶
A UDF Authenticator. The type code of the identifier specifies the algorithm to be used to authenticate the PIN code and the Binary Data Sequence value specifies the key.¶
A code determining the specific action that the PIN code MAY be used to authenticate. By convention this is the name of the Mesh message type used to perform the action.¶
The account for which the PIN code is issued.¶
Nonce value generated by the client using the PIN code to authenticate its message.¶
The PayloadDigest of a DARE Envelope that contains the message to be authenticated. Note that if the envelope is encrypted, this value is calculated over the ciphertext and does not provide proof of knowledge of the plaintext.¶
The following values of Action are currently defined:¶
String String¶
These inputs are used to derive values as follows:¶
alg = UdfAlg (PIN) pinData = UdfBDS (PIN) saltedPINData = MAC (Action, pinData) saltedPIN = UDFPresent (HMAC_SHA_2_512 + saltedPINData) PinId = UDFPresent (MAC (Account, saltedPINData))¶
The issuer of the PIN code stores the value saltedPIN for retrieval using the key PinId.¶
The witness value for a Dare Envelope with payload digest PayloadDigest authenticated by a PIN code whose salted value is saltedPINData, issued by account Account is given by PinWitness() as follows:¶
witnessData = Account.ToUTF8() + ClientNonce + PayloadDigest witnessValue = MAC (witnessData , saltedPINData)¶
For example, to generate saltedPIN for the pin AAJP-KPYV-NSB4-GIYL-AM used to authenticate a an action of type Device:¶
pin = AAJP-KPYV-NSB4-GIYL-AM action = message. alg = UdfAlg (PIN) = Authenticator_HMAC_SHA_2_512 hashalg = default (alg, HMAC_SHA_2_512) pinData = UdfBDS (PIN) = System.Byte[] saltedPINData = hashalg(pinData, hashalg); = System.Byte[] saltedPIN = UDFPresent (hashalg + saltedPINData) = ADBB-JTKR-RGGL-ACEM-TW6E-ZFY6-NQXF¶
The PinId binding the pin to the account alice@example.com is¶
Account = alice@example.com PinId = UDFPresent (MAC (Account, saltedPINData)) = ADVR-47UA-ZHDX-6CFS-GDDD-RYTA-LSB6¶
Where MAC(data, key)
is the message authentication code algorithm specified by the value of alg
.¶
When an administrative device issues a PIN code, a Message PIN is appended to the local spool. This has the MessageId PinId and specifies the value saltedPIN
in the field of that name.¶
When PIN code authentication is used, a message of type MessagePinValidated
specifies the values ClientNonce
, PinWitness
and PinId
in the fields of those names. These values are used to authenticate the inner message data specified by the AuthenticatedData
field.¶
The UDF Encrypted Authenticated Resource Locator mechanism is used to publish data and provide means of authentication and access through a static identifier such as a QR code.¶
This mechanism is used to allow contact exchange by means of a QR code printed on a business card and to connect a device to an account using a static identifier printed on the device in the form of a QR code.¶
In both cases, the information is passed using the EARL format described in [draft-hallambaker-mesh-udf].¶
All Mesh Protocol requests except for the HelloRequest and every response MUST be authenticated under the device key of the host or device making the request.¶
Initial authentication is achieved by performing a Key agreement under the DeviceAuthentication
key of each of the hosts and combining the result with nonce values provided by the requestor and respondent using a KDF function as follows:¶
Two bindings are currently planned.¶
The request or response is encapsulated in a DARE Envelope that is exchanged by means of a HTTP POST method over a TLS transport. The shared secret is used as the key on Message Authentication Code that authenticates the request payload.¶
Presents the same information as for the DARE Envelope over HTTPS case but in a compact encoding using the shared secret and an authenticated encryption scheme to pass the required information.¶
Once authentication has been performed, the same pair of devices MAY re-authenticate using the previously agreed key. To facilitate stateless implementation, a host specifies an opaque identifier to be used to identify the shared secret on subsequent uses which MAY be used to recover the shared secret from the opaque identifier.¶
[To be specified]¶
A Mesh Service acts as the counterparty for threshold operations allowing mitigation of the risk of compromise of an individual device connected to a user account or an insider threat from an individual member of a group account.¶
When acting in this role, the Mesh service controls the use of the cryptographic function but does not have the ability to perform the action either by itself or by collaborating with other services to which the account has been bound in the past.¶
Note that this approach limits rather than eliminates trust in the service. As with services presenting themselves as 'zero trust', a Mesh service becomes a trusted service after a sufficient number of breaches in other parts of the system have occurred. And the user trusts the service to provide availability of the service.¶
Three service cryptographic operations are currently specified:¶
A private key share s, held by the service is split into key shares x, y such that a = x + y. One key share is encrypted under a decryption key held by the service. The other is encrypted under a public key specified by the party making the request.¶
A private key share s, held by the service is used to calculate the value (sl + c).P where l, c are integers specified by the requestor and P is a point on the curve.¶
A private key share s, held by the service is used to calculate a contribution to a threshold signature scheme.¶
The implementation of the cryptographic operations described above is described in [draft-hallambaker-threshold] and [draft-hallambaker-threshold-sigs].¶
Mesh Assertions are signed DARE Envelopes that contain one of more claims. Mesh Assertions provide the basis for trust in the Mathematical Mesh.¶
Mesh Assertions are divided into two classes. Mesh Profiles are self-signed assertions. Assertions that are not self-signed are called declarations. The only type of declaration currently defined is a Connection Declaration describing the connection of a device to an account.¶
The payload of a Mesh Assertion is a JSON encoded object that is a subclass of the Assertion class which defines the following fields:¶
An identifier for the assertion.¶
The date and time at which the assertion was issued or last updated¶
An assertion may optionally contain one or more notary tokens issued by a Mesh Notary service. These establish a proof that the assertion was signed after the date the notary token was created.¶
A list of conditions that MAY be used to verify the status of the assertion if the relying party requires.¶
The implementation of the NotaryToken and Conditions mechanisms is to be specified in [draft-hallambaker-mesh-notary] at a future date.¶
Note that the implementation of Conditions differs significantly from that of SAML. Relying parties are required to process condition clauses in a SAML assertion to determine validity. Mesh Relying parties MAY verify the conditions clauses or rely on the trustworthiness of the provider.¶
The reason for weakening the processing of conditions clauses in the Mesh is that it is only ever possible to validate a conditions clause of any type relative to a ground truth. In SAML applications, the relying party almost invariably has access to an independent source of ground truth. A Mesh device connected to a Mesh Service does not. Thus the types of verification that can be achieved in practice are limited to verifying the consistency of current and previous statements from the Mesh Service.¶
Mesh Profiles perform a similar role to X.509v3 certificates but with important differences:¶
Profiles provide the axioms of trust for the Mesh PKI. Unlike in the PKIX model in which all trust flows from axioms of trust held by a small number of Certificate Authorities, every part in the Mesh contributes their own axiom of trust.¶
It should be noted however that the role of Certificate Authorities is redefined rather than eliminated. Rather than making assertions whose subject is represented by identities which are inherently mutable and subjective, Certificate Authorities can now make assertions about immutable cryptographic keys.¶
Every Profile MUST contain a SignatureKey
field and MUST be signed by the key specified in that field.¶
A Profile is valid if and only if:¶
SignatureKey
field.¶
SignatureKey
field.¶
A profile has the status current
if and only if:¶
A Mesh connection is an assertion describing the connection of a device or a member to an account.¶
Mesh connections provide similar functionality to 'end-entity' certificates in PKIX but with the important proviso that they are only used to provide trust between a device connected to an account and the service to which that account is bound and between the devices connected to an account.¶
A connection is valid with respect to an account with profile P if and only if:¶
AuthorityUdf
field of the connection is consistent with the UDF of P¶
AdministrationKey
field of P.¶
A connection has the status current with respect to an account with profile if and only if:¶
A device is authenticated with respect to an account with profile P if and only if:¶
The Mesh architecture has four principal components:¶
A collection of information (contacts, calendar entries, inbound and outbound messages, etc.) belonging to a user who uses the Mesh to management.¶
The various functions that manage binding of devices to a Mesh to grant access to information and services bound to that account.¶
Provides network services through which devices and other Mesh users may interact with a Mesh Account.¶
An end to end secure messaging service that allows short messages (less than 32KB) to be exchanged between Mesh Accounts and between the Mesh devices connected to a particular account.¶
The separation of accounts and services as separate components is a key distinction between the Mesh and earlier Internet applications. A Mesh account belongs to the owner of the Mesh and not the Mesh Service Provider which the user may change at any time of their choosing.¶
A Mesh Account May be active or inactive. By definition, an active Mesh account is serviced by exactly one Mesh Service, an inactive Mesh account is not serviced by a Mesh Service. A Mesh Service Provider MAY offer a backup service for accounts hosted by other providers. In this case the backup provider is connected to the account as a Mesh device, thus allowing the backup provider to maintain a copy of the stores contained in the account and facilitating a rapid transfer of responsibility for servicing the account should that be desired. The use of backup providers is described further in [draft-hallambaker-mesh-discovery].¶
Mesh Accounts contains all the stateful information (contacts, calendar entries, inbound and outbound messages, etc.) related to a particular persona used by the owner.¶
By definition a Mesh Account is active if it is serviced by a Mesh Service and inactive otherwise. A Mesh user MAY change their service provider at any time. An active Mesh Account is serviced by exactly one Mesh Service at once but a user MAY register a 'backup' service provider to their account in the same manner as adding an advice. This ensures that the backup service is pre-populated with all the information required to allow the user to switch to the new provider without interruption of service.¶
Each Mesh account is described by an Account Profile. Currently separate profile Account Profile are defined for user accounts and group accounts. It is not clear if this distinction is a useful one.¶
A Mesh account profile provides the axiom of trust for a mesh user. It contains a Master Signature Key and one or more Administration Signature Keys. The unique identifier of the master profile is the UDF of the Master Signature Key.¶
An Account Profile MUST specify an EscrowEncryption
key. This key MAY be used to escrow private keys used for encryption of stored data. They SHOULD NOT be used to escrow authentication keys and MUST NOT be used to escrow signature keys.¶
A user should not need to replace their account profile unless they intend to establish a separate identity. To minimize the risk of disclosure, the Profile Signature Key is only ever used to sign updates to the account profile itself. This allows the user to secure their Profile Signature Key by either keeping it on hardware token or device dedicated to that purpose or by using the escrow mechanism and paper recovery keys as described in this document.¶
Creating a ProfileMaster
comprises the steps of:¶
ProfileMaster
using the Master Signature Key¶
ProfileMaster
on the administration device to the CatalogHost
.¶
ActivationAdministration
activation.¶
Device management allows a collection of devices belonging to a user to function as a single personal Mesh.¶
The device management functions are principally concerned with the catalog containing the entries describing the connected devices.¶
Each Mesh Account has a Device Catalog CatalogDevice
associated with it. The Device Catalog is used to manage the connection of devices to the Personal Mesh and has a CatalogEntryDevice
for each device currently connected to the catalog.¶
Each Administration Device MUST have access to an up-to-date copy of the Device Catalog in order to manage the devices connected to the Mesh. The Mesh Service protocol MAY be used to synchronize the Device Catalog between administration devices in the case that there is more than one administration device.¶
The CatalogEntryDevice
contains fields for the device profile, device private and device connection.¶
The principle of radical distrust requires us to consider the possibility that a device might be compromised during manufacture. Once consequence of this possibility is that when an administration device connects a new device to a user's personal Mesh, we cannot put our full trust in either the device being connected or the administration device connecting it.¶
This concern is resolved by (at minimum) combining keying material generated from both sources to create the keys to be used in the context of the user's personal Mesh with the process being fully verified by both parties.¶
Additional keying material sources could be added if protection against the possibility of compromise at both devices was required but this is not supported by the current specifications.¶
A device profile provides the axiom of trust and the key contributions of the device. When bound to an account, the base keys specified in the Device Profile are combined with the key data provided in the Activation device to construct the keys the device will use in the context of the account.¶
Unless exceptional circumstances require, a device should not require more than one Device profile even if the device supports use by multiple users under different accounts. But a device MAY have multiple profiles if this approach is more convenient for implementation.¶
The derivation of the Connection encryption and signature keys from the Profile and Private contributions in this example is shown in [draft-hallambaker-mesh-cryptography].¶
Creating a ProfileDevice
comprises the steps of:¶
Devices are only connected to a personal Mesh by an administration device. This comprises the steps of:¶
CatalogEntryDevice
for the device and adding it to the CatalogDevice
of the Personal Mesh.¶
CatalogEntryDevice
to those services.¶
These steps are usually performed through use of the Mesh Protocol Connection mechanism. However, Mesh clients MAY support additional mechanisms as circumstances require provided that the appropriate authentication and private key protection controls are provided.¶
A Mesh Service provides one or more Mesh Hosts that support Mesh Accounts through the Mesh Web Service Protocol.¶
Mesh Services and Hosts are described by Service Profiles and Host Profiles. The means by which services manage the hosts through which they provide service is outside the scope of this document.¶
As with a Device connected to a Mesh Account, a the binding of a Host to the service it supports is described by a connection record:¶
The credentials provided by the ProfileService and ProfileHost are distinct from those provided by the WebPKI that typically services TLS requests. WebPKI credentials provide service introduction and authentication while a Mesh ProfileHost only provides authentication.¶
Unless exceptional circumstances require, a service should not need to revise its Service Profile unless it is intended to change its identity. Service Profiles MAY be countersigned by Trusted Third Parties to establish accountability.¶
Mesh Messaging is an end-to-end secure messaging system used to exchange short (32KB) messages between Mesh devices and services. In cases where exchange of longer messages is required, Mesh Messaging MAY be used to provide a control plane to advise the intended message recipient(s) of the type of data being offered and the means of retrieval (e.g an EARL).¶
All communications between Mesh accounts takes the form of a Mesh Message carried in a Dare Envelope. Mesh Messages are stored in two spools associated with the account, the SpoolOutbound and the SpoolInbound containing the messages sent and received respectively.¶
This document only describes the representation of the messages within the message spool. The Mesh Service protocol by which the messages are exchanged between devices and services and between services is described in [draft-hallambaker-mesh-protocol].¶
As previously described in section ###, every message stored in a spool has a specified state. The range of allowable states is defined by the message type. New message states MAY be defined for new message types as they are defined.¶
By default, messages are appended to a spool in the Initial
state, but a spool entry MAY specify any state that is valid for that message type.¶
The state of a message is changed by appending a completion message to the spool as described in [draft-hallambaker-mesh-protocol].¶
Services MAY erase or redact messages in accordance with local site policy. Since messages are not removed from the spool on being marked deleted, they may be undeleted by marking them as read or unread. Marking a message deleted MAY make it more likely that the message will be removed if the sequence is subsequently purged.¶
A four-corner messaging model is enforced. Mesh Services only accept outbound messages from devices connected to accounts that it services. Inbound messages are only accepted from other Mesh Services. This model enables access control at both the outbound and inbound services¶
The outbound Mesh Service checks to see that the request to send a message does not violate its acceptable use policy. Accounts that make a large number of message requests that result in complaints SHOULD be subject to consequences ranging from restriction of the number and type of messages sent to suspending or terminating messaging privileges. Services that fail to implement appropriate controls are likely to be subject to sanctions from either their users or from other services.¶
The inbound Mesh Service also checks to see that messages received are consistent with the service Acceptable Use Policy and the user's personal access control settings.¶
Mesh Services that fail to police abuse by their account holders SHOULD be subject to consequences in the same fashion as account holders.¶
The Mesh Messaging protocol as currently specified provides only limited protection against traffic analysis attacks. The use of TLS to encrypt communication between Mesh Services limits the effectiveness of na?ve traffic analysis mechanisms but does not prevent timing attacks unless dummy traffic is introduced to obfuscate traffic flows.¶
The limitation of the message size is in part intended to facilitate use of mechanisms capable of providing high levels of traffic analysis such as mixmaster and onion routing but the current Mesh Service Protocol does not provide support for such approaches and there are no immediate plans to do so.¶
Static QR codes MAY be used to allow contact exchange or device connection. In either case, the QR code contains an EARL providing the means of locating, decrypting and authenticating the published data.¶
The use of EARLs as a means of publishing encrypted data and the use of EARLs for location, decryption and authentication is discussed in [draft-hallambaker-mesh-dare] .¶
When used for contact exchange, the envelope payload is a CatalogedContact record.¶
Besides allowing for exchange of contact information on a business card, a user might have their contact information printed on personal property to facilitate return of lost property.¶
The static QR code device connection interaction allows a device with no keyboard, display or other user affordances to be connected to a Mesh account.¶
The information necessary to establish communication with the device and to complete a device connection workflow is provided by means of a DevicePreconfiguration record accessed by means of an EARL.¶
For example, Alice's coffee pot was preconfigured for connection to a Mesh account at the factory and the following DevicePreconfiguration record created:¶
{ "DevicePreconfiguration":{ "EnvelopedProfileDevice":[{ "EnvelopeId":"MC6H-2IFS-4OXA-U2YQ-QZ6Y-RZWX-JC3Q", "dig":"S512", "ContentMetaData":"ewogICJVbmlxdWVJZCI6ICJNQzZILTJJRlMtNE 9YQS1VMllRLVFaNlktUlpXWC1KQzNRIiwKICAiTWVzc2FnZVR5cGUiOiAiUHJvZml sZURldmljZSIsCiAgImN0eSI6ICJhcHBsaWNhdGlvbi9tbW0vb2JqZWN0IiwKICAi Q3JlYXRlZCI6ICIyMDIxLTA4LTA1VDE2OjM3OjQzWiJ9"}, "ewogICJQcm9maWxlRGV2aWNlIjogewogICAgIlByb2ZpbGVTaWduYXR1cm UiOiB7CiAgICAgICJVZGYiOiAiTUM2SC0ySUZTLTRPWEEtVTJZUS1RWjZZLVJaV1g tSkMzUSIsCiAgICAgICJQdWJsaWNQYXJhbWV0ZXJzIjogewogICAgICAgICJQdWJs aWNLZXlFQ0RIIjogewogICAgICAgICAgImNydiI6ICJFZDQ0OCIsCiAgICAgICAgI CAiUHVibGljIjogIjdaV0RBem50bXl4aFV2elhDdmw5dEF4UlhlQnoyV3V3VHFsTl Zub2pzb0s3NTNfTnZqOVoKICBYV19KT0p6UkFlU082U1lyQ3VYNThlVUEifX19LAo gICAgIkVuY3J5cHRpb24iOiB7CiAgICAgICJVZGYiOiAiTUFOVy1BN1pFLVJVQ04t R0wyQi03VEtYLVYyVUYtS1RHMiIsCiAgICAgICJQdWJsaWNQYXJhbWV0ZXJzIjoge wogICAgICAgICJQdWJsaWNLZXlFQ0RIIjogewogICAgICAgICAgImNydiI6ICJYND Q4IiwKICAgICAgICAgICJQdWJsaWMiOiAiejZKdUtyTFVfaG5najBwdzF4eHVGcDZ uS3ZVSTYtZVVzOS1ZR3dtYlplMHhFR2FOM2hMZwogIDZORkdHTFFDSmpfc2kyWmhw UGhOWTJZQSJ9fX0sCiAgICAiU2lnbmF0dXJlIjogewogICAgICAiVWRmIjogIk1CV VEtSFVNWi1IWk9SLUVBQUEtRERCSC1VTUc1LVQzNksiLAogICAgICAiUHVibGljUG FyYW1ldGVycyI6IHsKICAgICAgICAiUHVibGljS2V5RUNESCI6IHsKICAgICAgICA gICJjcnYiOiAiRWQ0NDgiLAogICAgICAgICAgIlB1YmxpYyI6ICJpaFgwQ3B6d1Zx RFU5NWgybWlPbkswYWtjUkFFSEgxUHc3cGJPdEpldkVhM3dDaHg0VjZMCiAgenZme kw4Smw2SHVlMXhlOXpBNDBPY0dBIn19fSwKICAgICJBdXRoZW50aWNhdGlvbiI6IH sKICAgICAgIlVkZiI6ICJNQTZKLTNURk8tQ09YVi1UUE5GLUNPQUYtRExaTy1MN09 aIiwKICAgICAgIlB1YmxpY1BhcmFtZXRlcnMiOiB7CiAgICAgICAgIlB1YmxpY0tl eUVDREgiOiB7CiAgICAgICAgICAiY3J2IjogIlg0NDgiLAogICAgICAgICAgIlB1Y mxpYyI6ICIzVGZDTWxpdk5Ta1k0b0UtdkczMVUzbXZ2M1YzWTVZUlg5YzhrSmdaOE czRDB6eFhjR1pDCiAgTWZueE5KTUItYTNKbktSRF9DZHZvRGFBIn19fX19", { "signatures":[{ "alg":"S512", "kid":"MC6H-2IFS-4OXA-U2YQ-QZ6Y-RZWX-JC3Q", "signature":"TbXfDJHac9bh1mRbgm6pcCOfjAC4kAe9xb-Bf2XG V3idDknG7xcFsvv-hOCGnNd0ca3k35tcBXiAiMMs5xfysFT_5sOpbWNsivC3o63yW AN4332vd-2O1-VuRRE-j4F9cR2kn9PPW8oOkBcdSOUY8SAA"} ], "PayloadDigest":"wCvIv_8ngV6HWhb3MG-sEidG4X7Xsvl8NnJf9BJO XNKVymd5rr6_TwzAGThCLw4-kh45Pb5OA7gYJZh-zTojVA"} ], "EnvelopedConnectionDevice":[{ "dig":"S512", "ContentMetaData":"ewogICJNZXNzYWdlVHlwZSI6ICJDb25uZWN0aW 9uRGV2aWNlIiwKICAiY3R5IjogImFwcGxpY2F0aW9uL21tbS9vYmplY3QiLAogICJ DcmVhdGVkIjogIjIwMjEtMDgtMDVUMTY6Mzc6NDNaIn0"}, "ewogICJDb25uZWN0aW9uRGV2aWNlIjogewogICAgIkF1dGhlbnRpY2F0aW 9uIjogewogICAgICAiVWRmIjogIk1BTlctQTdaRS1SVUNOLUdMMkItN1RLWC1WMlV GLUtURzIiLAogICAgICAiUHVibGljUGFyYW1ldGVycyI6IHsKICAgICAgICAiUHVi bGljS2V5RUNESCI6IHsKICAgICAgICAgICJjcnYiOiAiWDQ0OCIsCiAgICAgICAgI CAiUHVibGljIjogIno2SnVLckxVX2huZ2owcHcxeHh1RnA2bkt2VUk2LWVVczktWU d3bWJaZTB4RUdhTjNoTGcKICA2TkZHR0xRQ0pqX3NpMlpocFBoTlkyWUEifX19LAo gICAgIlNpZ25hdHVyZSI6IHsKICAgICAgIlVkZiI6ICJNQlVRLUhVTVotSFpPUi1F QUFBLUREQkgtVU1HNS1UMzZLIiwKICAgICAgIlB1YmxpY1BhcmFtZXRlcnMiOiB7C iAgICAgICAgIlB1YmxpY0tleUVDREgiOiB7CiAgICAgICAgICAiY3J2IjogIkVkND Q4IiwKICAgICAgICAgICJQdWJsaWMiOiAiaWhYMENwendWcURVOTVoMm1pT25LMGF rY1JBRUhIMVB3N3BiT3RKZXZFYTN3Q2h4NFY2TAogIHp2ZnpMOEpsNkh1ZTF4ZTl6 QTQwT2NHQSJ9fX0sCiAgICAiRW5jcnlwdGlvbiI6IHsKICAgICAgIlVkZiI6ICJNQ U5XLUE3WkUtUlVDTi1HTDJCLTdUS1gtVjJVRi1LVEcyIiwKICAgICAgIlB1YmxpY1 BhcmFtZXRlcnMiOiB7CiAgICAgICAgIlB1YmxpY0tleUVDREgiOiB7CiAgICAgICA gICAiY3J2IjogIlg0NDgiLAogICAgICAgICAgIlB1YmxpYyI6ICJ6Nkp1S3JMVV9o bmdqMHB3MXh4dUZwNm5LdlVJNi1lVXM5LVlHd21iWmUweEVHYU4zaExnCiAgNk5GR 0dMUUNKal9zaTJaaHBQaE5ZMllBIn19fX19", { "signatures":[{ "alg":"S512", "kid":"MB4T-TWDN-IFT2-PU43-N4CQ-YTOK-AOIO", "signature":"BlY5NDotpRXQhVyURm-IS1aldtt5B9xZXO1bQ9CX qKstEgRG1EVPTf9K5WamWo3cToRMxMNg832AyEbp4nOmnfwkRsNACc9wElgEuGCPh 2IPKBO6FpysIxZSSEUDV7Q08zmyfoRO9lxFMdavQ56RnDYA"} ], "PayloadDigest":"2U9aYu58E5UvYkBQAL5eNMoK-PhNBeGg3xCG_swk CdYSkOh2bznyoh7BF_JVFz01lJWd9VkIYGYej8IEBFgqJA"} ], "PrivateKey":{ "PrivateKeyUDF":{ "PrivateValue":"ZAAQ-AO3M-SYLX-X7ET-MZHC-BURC-V2OE-ZWUX-ZWP F-KAL4-6C3G-6IPV-2D76-MT4N", "KeyType":"MeshProfileDevice"}}, "ConnectUri":"mcu://maker@example.com/EALU-LAUT-XB5I-I2ZV-M2VN- NKAW-QLYX-JTS7-64DV-44NF-7YS7-2SHB-7ZE7-4"}}¶
To connect to the coffee pot, Alice first scans the QR code with her administrative device which uses the PIN code and service to retrieve, decrypt and authenticate the DevicePreconfiguration record. Future versions of the specification will allow this record to specify means by which the administration device can establish direct peer-to-peer communication to complete the connection process by any communication modality supported by both devices (e.g. IR, Bluetooth, WiFi-Direct, etc.)¶
The use of the publication mechanism in device connection is discussed further in [draft-hallambaker-mesh-protocol].¶
The device description publication is a JSON Record that describes a device that is available for connection.¶
[Not yet implemented.]¶
Classes that are derived from an assertion.¶
Parent class from which all assertion classes are derived¶
Fingerprints of index terms for profile retrieval. The use of the fingerprint of the name rather than the name itself is a precaution against enumeration attacks and other forms of abuse.¶
The time instant the profile was last modified.¶
A Uniform Notary Token providing evidence that a signature was performed after the notary token was created.¶
Parent class from which all condition classes are derived.¶
[No fields]¶
Abstract classes from which the Profile, Activation and Connection classes are derrived.¶
Contains the private activation information for a Mesh application running on a specific device¶
Classes describing Mesh Profiles. All Profiles are Assertions derrived from Assertion.¶
Parent class from which all profile classes are derived¶
The permanent signature key used to sign the profile itself. The UDF of the key is used as the permanent object identifier of the profile. Thus, by definition, the KeySignature value of a Profile does not change under any circumstance.¶
Describes a mesh device.¶
Description of the device¶
Base key contribution for encryption keys. Also used to decrypt activation data sent to the device during connection to an account.¶
Base key contribution for authentication keys. Also used to authenticate the device during connection to an account.¶
Base key contribution for signature keys.¶
Base class for the account profiles ProfileUser and ProfileGroup. These subclasses may be merged at some future date.¶
The account address. This is either a DNS service address (e.g. alice@example.com) or a Mesh Name (@alice).¶
The fingerprint of the service profile to which the account is currently bound.¶
Escrow key associated with the account.¶
Key currently used to encrypt data under this profile¶
Key used to sign connection assertions to the account.¶
Account assertion. This is signed by the service hosting the account.¶
Describes a group. Note that while a group is created by one person who becomes its first administrator, control of the group may pass to other administrators over time.¶
[No fields]¶
Profile of a Mesh Service¶
Connection assertions are used to authenticate and authorize interactions between devices and the service currently servicing the account. They SHOULD NOT be visible to external parties.¶
Connection assertion used to authenticate service requests made by a device.¶
The account address¶
The signature key for use of the device under the profile¶
The encryption key for use of the device under the profile¶
The authentication key for use of the device under the profile¶
Connection assertion stating that a particular device is¶
[No fields]¶
Describes the connection of a member to a group.¶
[No fields]¶
[No fields]¶
[No fields]¶
Contains activation data for device specific keys used in the context of a Mesh account.¶
The UDF of the account¶
Grant access to profile online signing key used to sign updates to the profile.¶
Grant access to Profile administration key used to make changes to administrator catalogs.¶
Grant access to ProfileUser account encryption key¶
Grant access to ProfileUser account authentication key¶
Grant access to ProfileUser account signature key¶
[No fields]¶
Classes describing data used in cataloged data.¶
Base class for contact entries.¶
The globally unique contact identifier.¶
Mesh fingerprints associated with the contact.¶
Network address entries¶
The physical locations the contact is associated with.¶
The roles of the contact¶
The Web sites and other online presences of the contact¶
Source(s) from which this contact was constructed.¶
Trust anchor¶
Source from which contact information was obtained.¶
Short name for the contact information.¶
The means of validation.¶
The contact data in binary form.¶
The contact data in enveloped form. If present, the BinarySource property is ignored.¶
Contact for a group, including encryption groups.¶
[No fields]¶
List of person names in order of preference¶
List of person names in order of preference¶
The name of an organization¶
The name of a natural person¶
If true, the name is not in current use.¶
The preferred presentation of the full name.¶
Honorific or title, E.g. Sir, Lord, Dr., Mr.¶
First name.¶
Middle names or initials.¶
Last name.¶
Nominal suffix, e.g. Jr., III, etc.¶
Post nominal letters (if used).¶
Provides all means of contacting the individual according to a particular network address¶
If true, the name is not in current use.¶
The network address, e.g. alice@example.com¶
The capabilities bound to this address.¶
The account profile¶
Public keys associated with the network address¶
The IANA protocol|identifier of the network protocols by which the contact may be reached using the specified Address.¶
Unique key.¶
Base class for cataloged Mesh data.¶
The set of labels describing the entry¶
Public device entry, indexed under the device ID Hello¶
UDF of the signature key of the device in the Mesh¶
UDF of the offline signature key of the device¶
UDF of the account online signature key¶
The Mesh profile¶
The device profile¶
The public assertion demonstrating connection of the Device to the Mesh¶
The activation of the device within the Mesh account¶
The activation of the device within the Mesh account¶
Application activations granted to the device.¶
A publication.¶
Unique identifier code¶
The witness key value to use to request access to the record.¶
Dare Envelope containing the entry data. The data type is specified by the envelope metadata.¶
Epiration time (inclusive)¶
[No fields]¶
The identifier of the capability. If this is a user capability, MUST match the KeyData identifier. If this is a serviced capability, MUST match the value of ServiceId on the corresponding service capability.¶
The key that enables the capability¶
One or more enveloped key shares.¶
The identifier of the resource that is controlled using the key.¶
The address of the resource that is controlled using the key.¶
The corresponding key is a decryption key¶
[No fields]¶
The corresponding key is an encryption key¶
The corresponding key is an encryption key¶
UDF of trust root under which request to use a serviced capability must be authorized. [Only present for a serviced capability]¶
The corresponding key is an administration key¶
[No fields]¶
The corresponding key is a key that may be used to generate key shares.¶
[No fields]¶
The corresponding key is a decryption key to be used in accordance with the Micali Fair Electronic Exchange with Invisible Trusted Parties protocol.¶
[No fields]¶
Unique key.¶
Enveloped keys for use with Application¶
[No fields]¶
[No fields]¶
[No fields]¶
A data structure that is passed¶
Unique per-message ID. When encapsulating a Mesh Message in a DARE envelope, the envelope EnvelopeID field MUST be a UDF fingerprint of the MessageId value.¶
Enveloped data that is authenticated by means of the PIN¶
Nonce provided by the client to validate the PIN¶
Pin identifier value calculated from the PIN code, action and account address.¶
Witness value calculated as KDF (Device.Udf + AccountAddress, ClientNonce)¶
If true, authentication against the PIN code is sufficient to complete the associated action without further authorization.¶
PIN code bound to the specified action.¶
The action to which this PIN code is bound.¶
Connection request message. This message contains the information¶
Connection request message generated by a service on receipt of a valid MessageConnectionRequestClient¶
The client connection request.¶
Respond to RequestConnection message to grant or refuse the connection request.¶
If true, requests that the recipient return their own contact information in reply.¶
Optional explanation of the reason for the request.¶
One time authentication code supplied to a recipient to allow authentication of the response.¶
[No fields]¶
For future use, allows logging of operations and results¶
The error report code.¶
The security considerations for use and implementation of Mesh services and applications are described in the Mesh Security Considerations guide [draft-hallambaker-mesh-security].¶
All the IANA considerations for the Mesh documents are specified in this document¶
A list of people who have contributed to the design of the Mesh is presented in [draft-hallambaker-mesh-architecture].¶
The means by which profiles are stored on devices is outside the scope of the specification. Only catalogs that are required to be shared between machines by means of accounts need to be standardized.¶
Catalog of all the Mesh Profiles that the user has registered with the device and the latest version of the device profile for this device.¶
Catalog containing the Account Entries for the Mesh [UDF-Mesh].¶
The device catalog associated with the specified account¶
The set of account catalogs that are shared verbatim between the devices connected to the account.¶
Create new Mesh Profile, Device Profile, Add to Host Catalog¶
Create MeshCatalog¶
Create new Account Profile, Add to MeshCatalog¶
Create new Account Device Catalog¶
For each device to be added to the account: Create Account Connection Assertion, add to Account Device Catalog.¶
Create a Device Connection Assertion.¶
For each account the device is to be added to: Create Account Connection Assertion, add to Account Device Catalog.¶
Catalog of all services on machine¶
Catalog of accounts in the service.¶
Create a Service Description, add to Master Catalog¶
Create the account entry, add to Service Catalog¶
Create the Account Directory¶
Message | Signer | Recipients |
---|---|---|
RequestConnection | Device | Service |
AcknowledgeConnection | Service | Device, Receiver |
OfferGroup | Sender | Receiver |
RequestContact | Sender | Receiver |
ReplyContact | Sender | Receiver |
RequestConfirmation | Sender | Receiver |
ResponseConfirmation | Sender | Receiver |
RequestTask | Sender | Receiver |
ResponseTask | Sender | Receiver |