An ostree remote config may have a url= parameter and a contenturl= parameter included in the config. When the contenturl= parameter is present, the ostree client will fetch content from that resource, but will fetch metadata from the resource specified by the url= parameter.
Currently, the Fedora IoT ostree infrastructure is configured in a way that doing curl -L https://ostree.fedoraproject.org/iot (as specified in the url= parameter) returns an HTTP 403. But curl -L https://ostree.fedoraproject.org/iot/config returns HTTP 200.
Along similar lines, curl -L https://ostree.fedoraproject.org/iot/mirrorlist returns HTTP 200. And substituting the CloudFront hostname from the mirror list: curl -L https://d2ju0wfl996cmc.cloudfront.net/config also returns HTTP 200.
The intent is to make the script more intelligent to test for actual content availability depending on how the ostree remote config is populated. If there is a contenturl= parameter, the script should check that fetching config asset from both the url= and contenturl= parameters to validate both more completely. In the absence of the contenturl= parameter, the script should only check the url= parameter.
See also: https://issues.redhat.com/browse/THEEDGE-3108
An ostree remote config may have a
url=parameter and acontenturl=parameter included in the config. When thecontenturl=parameter is present, the ostree client will fetch content from that resource, but will fetch metadata from the resource specified by theurl=parameter.Currently, the Fedora IoT ostree infrastructure is configured in a way that doing
curl -L https://ostree.fedoraproject.org/iot(as specified in theurl=parameter) returns an HTTP 403. Butcurl -L https://ostree.fedoraproject.org/iot/configreturns HTTP 200.Along similar lines,
curl -L https://ostree.fedoraproject.org/iot/mirrorlistreturns HTTP 200. And substituting the CloudFront hostname from the mirror list:curl -L https://d2ju0wfl996cmc.cloudfront.net/configalso returns HTTP 200.The intent is to make the script more intelligent to test for actual content availability depending on how the ostree remote config is populated. If there is a
contenturl=parameter, the script should check that fetchingconfigasset from both theurl=andcontenturl=parameters to validate both more completely. In the absence of thecontenturl=parameter, the script should only check theurl=parameter.See also: https://issues.redhat.com/browse/THEEDGE-3108