Internet-Draft | DIA HTTP Interface | September 2022 |
Wiethuechter, et al. | Expires 31 March 2023 | [Page] |
This document defines an HTTP based interface using either JSON or CBOR for object encodings for the DRIP Provisioning Agent (DPA) or Registry to insert, update or delete information from a DRIP Information Agent (DIA). JSON Web Tokens (JWTs) are used between the entities to encapsulate and authenticate the transactions.¶
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 31 March 2023.¶
Copyright (c) 2022 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.¶
The DIA is one of the required components in a DIME for it to fulfill the role of registration of DRIP Entity Tags (DETs) of clients. A standardized interface is needed for this to avoid interoperability issues between vendors supporting DRIP and the various logical components of the DIME.¶
Per [drip-detim] the DIA MUST:¶
This document is the definition of this interface and its behavior; specifically between the DIA and a DPA or DIA and a Registry. A snapshot of the OpenAPI specification is in Appendix A at the time of this documents publishing; with a URI to access an updated specification.¶
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.¶
When using the JWT the iss
is filled with the DET FQDN of the DIME component (typically the DPA). The sub
is filled with the FQDN of the entity being registered. For a Serial Number this is the Serial Number FQDN of the UA, for the Operator/GCS the DET FQDN of the Operator/GCS and for the Session ID this is the DET FQDN of the UA.¶
A data
field is filled with specific information to be stored in the RDDS by the DIA for the given subject.¶
Another field drip
is used to hold various DRIP information elements.¶
The JWT is signed using the private key (an EdDSA25519 key) of the iss
entity; the DPA.¶
All endpoints that send DRIP Endorsements use the JSON/CBOR forms as specified in [drip-detim].¶
If there is any failure during validation in any endpoint a HTTP 400 code MUST be sent to the client with a detailed reason for the error.¶
{ "iss": "<hash>.<oga_id>.<hda>.<raa>.<prefix>.hhit.arpa", "sub": "<id>.<mfr_code>.mfr.hhit.arpa", "iat": 0, "exp": 0, "drip": { "det": "base16 HHIT/DET", "hi": "base64 HI", "endorsements": [ self_endorsement, broadcast_endorsement ] }, "data": { "serial": "Serial Number", "manufacturer": "Manufacturer", "make": "Make", "model": "Model", "color": "Color", "material": "Material", "weight": 1.0, "length": 1.0, "width": 1.0, "height": 1.0, "numRotors": 1, "propLength": 1.0, "batteryCapacity": 1.0, "batteryVoltage": 1.0, "batteryWeight": 1.0, "batteryChemistry": "Battery Chemistry", "takeOffWeight": 1.0, "maxPayloadWeight": 0.1, "maxFlightTime": 1.0, "minOperatingTemp": 1.0, "maxOperatingTemp": 2.0, "ipRating": "None" } }¶
drip
field is optional.¶
{ "iss": "<hash>.<oga_id>.<hda>.<raa>.<prefix>.hhit.arpa", "sub": "<hash>.<oga_id>.<hda>.<raa>.<prefix>.hhit.arpa", "iat": 0, "exp": 0, "drip": { "det": "base16 HHIT/DET", "hi": "base64 HI", "endorsements": [ self_endorsement, endorsement ] }, "data": { "name": "", "addr": { "street1": "", "street2": "", "city": "", "sp": "", "pc": "", "cc": "" }, "voice": "", "email": "", "part107": "", "recFlyerId": "" } }¶
{ "iss": "<hash>.<oga_id>.<hda>.<raa>.<prefix>.hhit.arpa", "sub": "<hash>.<oga_id>.<hda>.<raa>.<prefix>.hhit.arpa", "iat": 0, "exp": 0, "drip": { "det": "base16 HHIT/DET", "hi": "base64 HI", "endorsements": [ self_endorsement, endorsement ] }, "data": { ... } }¶
{ "iss": "<hash>.<oga_id>.<hda>.<raa>.<prefix>.hhit.arpa", "sub": "<hash>.<oga_id>.<hda>.<raa>.<prefix>.hhit.arpa", "iat": 0, "exp": 0, "drip": { "det": "base16 HHIT/DET", "hi": "base64 HI", "endorsements": [ self_endorsement, broadcast_endorsement, mutual_endorsement, endorsement ] }, "data": { "serial": "Serial Number", "session_id": "base16 HHIT/DET of UA", "utm_id": UUIDv4, "utm_src": URI, "operator_det": "base16 HHIT/DET", "operator_id": "CAA Operator ID" } }¶
{ "iss": "<hash>.<oga_id>.<hda>.<raa>.<prefix>.hhit.arpa", "sub": "<hash>.<oga_id>.<hda>.<raa>.<prefix>.hhit.arpa", "iat": 0, "exp": 0, "drip": { "det": "base16 HHIT/DET", "hi": "base64 HI", "endorsements": [ self_endorsement, endorsement, broadcast_endorsement ] }, "data": { "name": "", "abbreviation": "", "mfrCode": "", "addr": { "street1": "", "street2": "", "city": "", "sp": "", "pc": "", "cc": "" }, "voice": "", "email": "" } }¶
mfrCode
field is only used by an MRA when registering with an IRM and holds the ICAO assigned Manufacturer Code for ANSI CTA2063-A Serial Numbers.¶