MQTT-TLS profile of ACE
draft-ietf-ace-mqtt-tls-profile-01
ACE Working Group C. Sengul
Internet-Draft Nominet
Intended status: Standards Track A. Kirby
Expires: April 7, 2020 Oxbotica
P. Fremantle
University of Portsmouth
October 5, 2019
MQTT-TLS profile of ACE
draft-ietf-ace-mqtt-tls-profile-01
Abstract
This document specifies a profile for the ACE (Authentication and
Authorization for Constrained Environments) to enable authorization
in an MQTT-based publish-subscribe messaging system. Proof-of-
possession keys, bound to OAuth2.0 access tokens, are used to
authenticate and authorize MQTT Clients. The protocol relies on TLS
for confidentiality and server authentication.
Status of This Memo
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 April 7, 2020.
Copyright Notice
Copyright (c) 2019 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
Sengul, et al. Expires April 7, 2020 [Page 1]
Internet-Draft MQTT-TLS profile of ACE October 2019
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1. Requirements Language . . . . . . . . . . . . . . . . . . 4
1.2. ACE-Related Terminology . . . . . . . . . . . . . . . . . 4
1.3. MQTT-Related Terminology . . . . . . . . . . . . . . . . 4
2. Protocol Interactions . . . . . . . . . . . . . . . . . . . . 6
2.1. Authorizing Connection Establishment . . . . . . . . . . 7
2.1.1. Client Token Request to the Authorization Server (AS) 8
2.1.2. Client Connection Request to the Broker (C) . . . . . 8
2.1.2.1. Proof-of-Possession over Predefined Field . . . . 10
2.1.2.2. Proof-of-Possession via challenge/response . . . 11
2.1.2.3. Unauthorised Request: Authorisation Server
Discovery . . . . . . . . . . . . . . . . . . . . 12
2.1.3. Token Validation . . . . . . . . . . . . . . . . . . 12
2.1.4. The Broker's Response to Client Connection Request . 13
2.2. Authorizing PUBLISH Messages . . . . . . . . . . . . . . 13
2.2.1. PUBLISH Messages from the Publisher Client to the
Broker . . . . . . . . . . . . . . . . . . . . . . . 13
2.2.2. PUBLISH Messages from the Broker to the Subscriber
Clients . . . . . . . . . . . . . . . . . . . . . . . 14
2.3. Authorizing SUBSCRIBE Messages . . . . . . . . . . . . . 14
2.4. Token Expiration and Reauthentication . . . . . . . . . . 15
2.5. Handling Disconnections and Retained Messages . . . . . . 15
3. Reduced Protocol Interactions for MQTT v3.1.1 . . . . . . . . 16
3.1. Token Transport . . . . . . . . . . . . . . . . . . . . . 16
3.2. Handling Authorization Errors . . . . . . . . . . . . . . 17
4. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 18
5. Security Considerations . . . . . . . . . . . . . . . . . . . 18
6. Privacy Considerations . . . . . . . . . . . . . . . . . . . 19
7. References . . . . . . . . . . . . . . . . . . . . . . . . . 19
7.1. Normative References . . . . . . . . . . . . . . . . . . 19
7.2. Informative References . . . . . . . . . . . . . . . . . 20
Appendix A. Checklist for profile requirements . . . . . . . . . 21
Appendix B. The Authorization Information Endpoint . . . . . . . 21
Appendix C. Document Updates . . . . . . . . . . . . . . . . . . 22
Show full document text