Open madpah opened 1 week ago
I think like this: For TEI discovery: DNS is the best way to(provides failover etc). If that's not allowed, #2 will be used.
The security.txt case is very different as it a way to say "by the way, we have a TEA service". For that to work, there needs to be a way to get product identifiers. It requires further thinking.
For discussion.
The current in-draft Discovery docs cater for TWO mechanisms to discovery the TEA API for a given TEI:
/.well-known/tei
can be accessed - this would likely produce a HTTP Redirect (301 or 302 - TBC which are permitted within TEI specification) to the TEA APIAdditionally, @ppkarwasz has suggested (in https://github.com/CycloneDX/transparency-exchange-api/issues/30 - now tracked in https://github.com/CycloneDX/transparency-exchange-api/issues/67):
/.well-known/security.txt
can be accessed, containing a new (yet to proposed and registered) field that provides the URL to the TEA APIWhen considering implementation of the TEA Specification - I would suggest it is prudent for the Specification to be opinionated on which method(s) have priority along with reasons.
FYI @oej