From: Brian Dolbec <dolsen@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] [RFC] Add 'emerge --sync-glsa' action and 'emaint sync-glsa' command
Date: Wed, 17 Dec 2014 14:32:55 -0800 [thread overview]
Message-ID: <20141217143255.387e52f5.dolsen@gentoo.org> (raw)
In-Reply-To: <5491E7FD.2080203@gentoo.org>
On Wed, 17 Dec 2014 12:30:53 -0800
Zac Medico <zmedico@gentoo.org> wrote:
> Hi,
>
> For server deployments, it's common for administrators to want to use
> glsa-check for security vulnerabilities, without necessarily wanting
> to to do a full sync [1].
>
> So, I propose that we add an 'emerge --sync-glsa' action and a
> corresponding 'emaint sync-glsa' command that will only sync the
> relevant metadata/glsa subdirectory of the relevant repository(s).
> Please respond if you agree or disagree with this proposal.
>
> [1] https://bugs.gentoo.org/show_bug.cgi?id=89641
I agree in principal, but you didn't say enough about your idea to be
able to say yes/no to it yet.
I've read the bug comments.
So, what you are saying for the above is set a very restrictive rsync
to just sync the glsa directory?
So, with the new pluging-sync sytem in place, how do you propose we do
this?
1) Make a new emaint sync option which does the restriction and
appropriate sync module calls?
emaint sync --glsa & emerge --sync-glsa
2) emaint sync-glsa sounds like a modified copy of the sync module.
To me this is a poor idea. It would needlessly duplicate code.
But what about the different sync types. How do we handle this in a
git repo instead of an rsync one?
3) if it is a separate repo, then the current emaint sync
module does not need __ANY__ modifications.
emaint sync -r glsa <== would sync the repo named glsa no
matter what type of sync method is used. rsync, git, svn,
cvs,...
Another advantage to a separate repo, for your use case that
they don't want the main repo to be synced, the new sync system
adds an "auto-sync" variable. "emerge --sync" will only sync
repos marked with it set to yes. So, if all they want is the
glsa's synced automatically, set only i'ts auto-sync to yes.
All other repos will have to be synced manually via the "emaint
sync --repo foo" command which does not look at the auto-sync
variable.
Bottom line of this comes down to getting infra to create a standalone
repo for the glsa's. The current rsync tree could merge the gentoo and
glsa repos for backwards compatibility. For your use case, they set the
gentoo repo's rsync restriction to exclude the glsa's. And have the
separate glsa repo downloaded as it's own repository. With the gentoo
tree moving to git, then the git tree would not include the glsa's, so
the user would need to install the glsa tree as well.
Only code changes I see to portage, pkgcore (I know nothing about
paludis) are to look for the glsa's in the 2 possible locations. The
standalone glsa repo, failing that, backup to the gentoo tree.
--
Brian Dolbec <dolsen>
next prev parent reply other threads:[~2014-12-17 22:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-17 20:30 [gentoo-portage-dev] [RFC] Add 'emerge --sync-glsa' action and 'emaint sync-glsa' command Zac Medico
2014-12-17 22:32 ` Brian Dolbec [this message]
2014-12-17 22:49 ` Michael Orlitzky
2014-12-17 23:03 ` Brian Dolbec
2014-12-17 23:57 ` Zac Medico
2014-12-18 2:20 ` Zac Medico
2014-12-19 1:07 ` Zac Medico
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141217143255.387e52f5.dolsen@gentoo.org \
--to=dolsen@gentoo.org \
--cc=gentoo-portage-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox