Bug 1048175
| Summary: | [RFE]Fetch new sources remotely | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Christopher Meng <i> |
| Component: | fedpkg | Assignee: | Dennis Gilmore <dennis> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dennis, dgilmore, rjones, skottler |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-02-13 16:33:34 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Christopher Meng
2014-01-03 10:22:07 UTC
> I'm not sure if remote Fedora server has ability and permissions to download
> sources or not. If we allow this, I can help implement this feature.
AFAIK the lookaside cache when combined with fedpkg would need to be made intelligent enough to understand that it was being handed a remote URL; we can probably do that using protocol detection on the argument. It should do the following:
1. Look at the argument and figure out if the input is local or remote.
2. If it's local then just proceed with the path we use right now.
3. If it's remote then validate the URL tell the lookaside cache to fetch the source and add it to the sources.
The main issue is going to be adding support for the remote source inputs to the lookaside.
Thoughts?
(In reply to Sam Kottler from comment #1) > 1. Look at the argument and figure out if the input is local or remote. Yes, check if SourceX tag contains http:// or ftp://. Otherwise this is a snapshot package or modified sources based package(legal/other issues). > 2. If it's local then just proceed with the path we use right now. Yes. > 3. If it's remote then validate the URL tell the lookaside cache to fetch > the source and add it to the sources. Yes. > The main issue is going to be adding support for the remote source inputs to > the lookaside. That's the place I'm not familiar, is there any infra doc of the lookaside mechanism? Having to upload from a local source is a design decision in how everything works. the packager is supposed to verify the contents of the tarballs, and needs to pass along the hash of the source tarball. There is security implications in just fetching from random locations on the internet. This is not a use case releng or infrastructure is willing to entertain. *** Bug 1002630 has been marked as a duplicate of this bug. *** |