Skip to content

Commit 38fb859

Browse files
committed
doc: drafted changes to move from URL to SVCB DNS records
Signed-off-by: Paul Horton <phorton@sonatype.com>
1 parent 7cf2e56 commit 38fb859

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

discovery/readme.md

+22-19
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
**NOTE**: _This is a proposal for the WG_
44

5+
- [From product identifier to API endpoint](#from-product-identifier-to-api-endpoint)
6+
- [TEA Discovery - defining an extensible identifier](#tea-discovery---defining-an-extensible-identifier)
7+
- [The TEI URN: An extensible identifier](#the-tei-urn-an-extensible-identifier)
8+
- [TEI syntax](#tei-syntax)
9+
- [TEI types](#tei-types)
10+
- [TEI resolution using DNS](#tei-resolution-using-dns)
11+
- [Finding the Index using DNS result](#finding-the-index-using-dns-result)
12+
- [The TEA Version Index](#the-tea-version-index)
13+
- [References](#references)
14+
15+
516
## From product identifier to API endpoint
617

718
TEA Discovery is the connection between a product identifier and the API endpoint.
@@ -19,11 +30,8 @@ TEA discovery is the process where a user with a product identifier can discover
1930
artifacts automatically, with or without authentication. A globally unique identifier is
2031
required for a given product. This identifier is called the Transparency Exchange Identifier (TEI).
2132

22-
The TEI identifier is based on DNS, which assures a
23-
uniqueness per vendor (or open source project) and gives the vendor a name space to
24-
define product identifiers based on existing or new identifiers like EAN bar code,
25-
PURLs or other existing schemes. A given product may have multiple identifiers as long as
26-
they all resolve into the same destination.
33+
The TEI identifier is based on DNS, which assures a uniqueness per vendor (or open source project)
34+
and gives the vendor a name space to define product identifiers based on existing or new identifiers like EAN bar code, PURLs or other existing schemes. A given product may have multiple identifiers as long as they all resolve into the same destination.
2735

2836
## The TEI URN: An extensible identifier
2937

@@ -35,26 +43,20 @@ The TEI can be shown in the software itself, in shipping documentation, in web p
3543
TEI is unique for a product, not a version of a software. The TEI consist of three core parts
3644

3745
- The **`type`** which defines the syntax of the unique identifier part
38-
- The **`domain-name`** part does not have to exist as a web server (HTTPS)
39-
- The uniqueness of the name is the domain name part that has to be registred at creation of the TEI
40-
- The **`unique-identifier`** has to be unique within the `domain-name` - see [TEI Types](#tei-types)
46+
- The **`domain-name`** part does not have to exist as a web server (HTTPS), but may do
47+
- The uniqueness of the name is the domain name part that has to be registred at creation of the TEI.
48+
- The **`unique-identifier`** has to be unique within the `domain-name`. Recommendation is to use a UUID but it can be an existing article code too
4149

4250
A TEI belongs to a single product. A product can have multiple TEIs - like one with a EAN
43-
bar code and one with the vendor's product number.
51+
barcode and one with the vendor's product number.
4452

4553
### TEI syntax
4654

4755
```
4856
urn:tei:<type>:<domain-name>:<unique-identifier>
4957
````
5058
51-
**Note**: this requires a registration of the TEI URN schema with IANA.
52-
53-
### TEI examples
54-
55-
- `urn:tei:uuid:` for a company specific name and product identifier as UUID
56-
- Example: `urn:tei:uuid:products.example.com:d4d9f54a-abcf-11ee-ac79-1a52914d44b1`
57-
- Syntax: `urn:tei:uuid:<name based on domain>:<unique identifier>`
59+
**Note**: this requires a registration of the TEI URN schema with IANA - [see here](https://github.com/CycloneDX/transparency-exchange-api/issues/18)
5860
5961
### TEI types
6062
@@ -103,7 +105,7 @@ urn:tei:hash:<domain-name>:<hashtype>:<hash>
103105
104106
Example:
105107
```text
106-
urn:tei:org.cyclonedx:SHA256:fd44efd601f651c8865acf0dfeacb0df19a2b50ec69ead0262096fd2f67197b9
108+
urn:tei:cyclonedx.org:SHA256:fd44efd601f651c8865acf0dfeacb0df19a2b50ec69ead0262096fd2f67197b9
107109
```
108110

109111
The origin of the hash is up to the vendor to define.
@@ -126,13 +128,14 @@ Has to be a valid UUID.
126128
- GS1
127129
- STD
128130
131+
129132
### TEI resolution using DNS
130133
131134
The name part of the TEI is used in a DNS query to find one or multiple locations for product transparency exchange information.
132135
At the URL we need a well-known name space to find out more
133136
134137
- `urn:tei:uuid:products.example.com:d4d9f54a-abcf-11ee-ac79-1a52914d44b1`
135-
- Syntax: `urn:tei:uuid:<name based on domain>:<unique-identifier>`
138+
- Syntax: `urn:tei:uuid:<name based on domain>:<unique identifier>`
136139
137140
The name in the DNS name part points to a set of DNS records.
138141
A TEI with name “tex.example.com" queries for `_tei._tcp.tex.example.com URI records`.
@@ -164,7 +167,7 @@ Append the product part of the TEI to the URI found
164167
165168
- TEI: `urn:tei:uuid:products.example.com:d4d9f54a-abcf-11ee-ac79-1a52914d44b1`
166169
- DNS record: `_tei._tcp.products.example.com`
167-
- URI in DNS: `https://www.example.com/transparency/`
170+
- URI in DNS: `://www.example.com/transparency/`
168171
- URL: `https://www.example.com/transparency/d4d9f54a-abcf-11ee-ac79-1a52914d44b1/`
169172
170173
If no DNS URI records are found the resolution defaults to A and AAAA records.

0 commit comments

Comments
 (0)