RFC: Add url/urls/mirrors attribute for product items
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
simplestreams |
Fix Committed
|
Wishlist
|
Unassigned | ||
lxd (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Hi,
currently, simplestreams protocol is used inside the LXD project for share LXD images through HTTPS endpoint (HTTP is not permitted).
Through [simplestreams](https:/
The main problem is that we haven't a direct access Sabayon Mirrors and often these are available only through HTTP. The idea is to use HTTPS for retrieve CRC, MD5 and then redirect users to HTTP endpoint of our mirrors. From the security side, we hare compliant because hashing of the images are fetched through HTTPS.
For fix this the idea is to add a new attribute to product item "url" that is complementary or alternative to the field "path":
{
"datatype": "image-downloads",
"updated": "Sat, 04 May 2013 01:58:57 +0000",
"content_id": "sabayon:
"products": {
"sabayon:
"arch": "arm",
"stream": "devel",
"versions": {
"20190111": {
"items": {
"uec.tar.gz": {
"ftype": "lxc.tar.gz",
"path": "/lxd-images/
"url": "http://
"sha256": "xxxxxx",
"md5": "797e2d488c799e
"size": 7314153
},
...
}
Here, there are different possibilities:
* url: with a complete path of the resource
* urls: a list of URL to use for fetch the resource
* mirrors: a field "mirrors" that contains the list of nodes to use as a prefix for "path" field.
This resolves my problem with Sabayon mirrors but could be also a solution to separate the node that exposes index.json and images.json from nodes that contain LXC/LXD images. Also for scalability.
WDYT?
Thanks in advance
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Robert C Jennings (community): Approve
- Stéphane Graber (community): Approve
-
Diff: 88 lines (+38/-2)4 files modifieddoc/README (+9/-0)
simplestreams/generate_simplestreams.py (+4/-1)
tests/unittests/test_generate_simplestreams.py (+16/-0)
tools/make-test-data (+9/-1)
Changed in lxd (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
Changed in simplestreams: | |
status: | Triaged → Fix Committed |
Hi Daniele,
Thanks for this suggestion. I've added the lxd package in Ubuntu; as they would need to support this new syntax, I'd like to hear their thoughts before we go any further.
Thanks!
Dan