Artifacts Download as anonymous user

16 views
Skip to first unread message

Christoph Rieß

unread,
Dec 14, 2017, 5:46:51 AM12/14/17
to Jenkins Users
Hi folks,

I want my artifacts to be the only information publicly available to anonymous users.

I already configured the following:

-Dhudson.security.ArtifactsPermission=true

According to https://wiki.jenkins.io/display/JENKINS/Features+controlled+by+system+properties

Then i configured (under /configureSecurity/) my ACL rules (see attached screen).

But trying to download from https://jenkins.my-domain.com/job/SomeJobName/lastSuccessfulBuild/artifact/*zip*/archive.zip constantly gives me HTTP 403 (FORBIDDEN) errors.

How to give anonymous users access to build artifacts?

Thanks in advance.

CRieß








screen_jenkins.permissions.artifacts.png

Daniel Beck

unread,
Dec 14, 2017, 5:49:56 AM12/14/17
to 'Christoph Rieß' via Jenkins Users

> On 14. Dec 2017, at 11:37, 'Christoph Rieß' via Jenkins Users <jenkins...@googlegroups.com> wrote:
>
> Then i configured (under /configureSecurity/) my ACL rules (see attached screen).

At least Overall/Read and Item/Read are also needed to access the job in question at all. This option enables another restriction, rather than open up artifact download to everyone with no access to Jenkins.

Basically the same (which permissions are lacking) should be part of the response body you get (as an HTML comment I think, but still).

Reply all
Reply to author
Forward
0 new messages