From: "Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>
To: Stefano Stabellini <sstabellini@kernel.org>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
xen-devel@lists.xenproject.org, cardoe@cardoe.com,
michal.orzel@amd.com,
Stefano Stabellini <stefano.stabellini@amd.com>
Subject: Re: [PATCH v2 2/2] automation: introduce a dom0less test run on Xilinx hardware
Date: Tue, 7 Mar 2023 16:21:17 +0100 [thread overview]
Message-ID: <ZAdWbrW74dcPYhnM@mail-itl> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2303061450530.863724@ubuntu-linux-20-04-desktop>
[-- Attachment #1: Type: text/plain, Size: 2243 bytes --]
On Mon, Mar 06, 2023 at 03:02:51PM -0800, Stefano Stabellini wrote:
> On Mon, 6 Mar 2023, Andrew Cooper wrote:
> > On 03/03/2023 11:57 pm, Stefano Stabellini wrote:
> > > + only:
> > > + variables:
> > > + - $XILINX_JOBS == "true" && $CI_COMMIT_REF_PROTECTED == "true"
> >
> > We don't want to protect every branch of a tree that only a select
> > number of people can push to,
>
> Actually this is useful, more on this below
>
>
> > nor (for this, or others configured with
> > the runner), want to impose branching conventions on them.
> >
> > In all anticipated cases, those able to push would also be able to
> > reconfigure the protected-ness of branches, so this doesn't gain us any
> > security I don't think, but it certainly puts more hoops in the way to
> > be jumped through.
>
> It is true that it adds a small inconvenience to the user, but I think
> the benefits outweigh the inconvenience at the moment (that could change
> though.)
>
> With this, I can register the gitlab runner with a specific gitlab
> project (for instance
> https://gitlab.com/xen-project/people/sstabellini/xen) then I can mark
> all branches as "protected" and select very specific access permissions,
> e.g. I can give individual access to Julien, Bertrand, Michal, anyone,
> to specific branches, which is great to allow them to run individual
> pre-commit tests permanently or temporarily.
>
> I couldn't find another way to do it at the moment, as non-protected
> branches don't come with detailed access permissions. But it is possible
> that as we setup a new sub-group under https://gitlab.com/xen-project
> for people with access to the runner, then we might be able to remove
> this restriction because it becomes unnecessary. We can remove the
> protected check at that point.
You can configure runner to run only jobs from protected branches. This
way it actually prevent running jobs from non-protected branches. Just a
condition in .gitlab-ci.yml can be simply removed by anybody who wants
to abuse your runner (and have push access to non-protected branch -
which may or may not include all of patchew).
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2023-03-07 15:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-03 23:57 [PATCH v2 0/2] automation: introduce a Xilinx hardware test Stefano Stabellini
2023-03-03 23:57 ` [PATCH v2 1/2] automation: add Ubuntu container for Xilinx hardware tests Stefano Stabellini
2023-03-06 8:39 ` Michal Orzel
2023-03-03 23:57 ` [PATCH v2 2/2] automation: introduce a dom0less test run on Xilinx hardware Stefano Stabellini
2023-03-06 9:21 ` Michal Orzel
2023-03-06 23:15 ` Stefano Stabellini
2023-03-06 10:25 ` Andrew Cooper
2023-03-06 23:02 ` Stefano Stabellini
2023-03-07 15:21 ` Marek Marczykowski-Górecki [this message]
2023-03-07 20:21 ` Stefano Stabellini
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=ZAdWbrW74dcPYhnM@mail-itl \
--to=marmarek@invisiblethingslab.com \
--cc=andrew.cooper3@citrix.com \
--cc=cardoe@cardoe.com \
--cc=michal.orzel@amd.com \
--cc=sstabellini@kernel.org \
--cc=stefano.stabellini@amd.com \
--cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.