On Tue, 14 Feb 2012 10:34:42 -0600
Lee Meador <[email protected]> wrote:

> There is a plugin that adds project based matrix authorization as a
> security option. 

Quoting from below:

> > > 2. I have "Project-based Matrix Authorization Strategy"

FWIW, I am not using it at the moment, but once made a test to see if I
could exclude a set of jobs for anonymous view. What I wound up using
was some ugly regex  -- all that remains of my notes:

^(?i)(?<!foo)(?:bar|this).*
^(?i)(?<!foo)(?:afo|bar|this).*

[or]

^(?!foo).*

Which gives some granularity for what jobs anonymous can view.

I'd hope this helps, but... it's a bit of a sketch. And I can't
really add anything more informative to it. ;-)

Cheers,

- Michael 

> If you use this, you can set some jobs visible and
> some invisible to unauthorized users. There is a permissions matrix
> added to the job configuration page that you can turn on and fill in
> with permissions that only apply to that job.
> 
> Ok ... I was just looking at my plugins. I thought it was a plugin
> but I can't find one that seems to be the one. Perhaps its part of
> Jenkins core now. Perhaps I missed it.
> 
> Hope that helps.
> 
> Lee
> 
> On Mon, Feb 13, 2012 at 10:30 AM, Andrey Pohilko <[email protected]> wrote:
> 
> > Here's my original post:
> >
> >
> > > I read articles and issues for hiding jobs, but still fail to
> > > gain what I want. I want some of my jobs to be visible for
> > > reading to unauthenticated users, and others to be visible only
> > > for authenticated users.
> > >
> > > My setup is:
> > > 1. I have "Jenkins's own user database" selected
> > > 2. I have "Project-based Matrix Authorization Strategy"
> > > 3. authenticated group has all checkboxes selected in Configure
> > > System 4. anonymous has only "job - read" checkbox selected in
> > > Job Config
> > >
> > > I expect this job to be readable by anonymous users, but it is not
> > > visible. Anonymous can only view job if I select "Full - Read"
> > > checkbox
> > in
> > > Configure System, but I can't hide some projects that are private
> > > then.
> > >
> > > Please, help me, I completely stuck.
> > >
> >
> > So I already do use the matrix.
> >
> > --
> > View this message in context:
> > http://jenkins.361315.n4.nabble.com/Hiding-job-from-unauthenticated-users-tp4335851p4384327.html
> > Sent from the Jenkins users mailing list archive at Nabble.com.
> >
> 
> 
> 



-- 
Michael Higgins
QA Intern, PuppetLabs
[email protected]

Reply via email to