Alex
Alex

Reputation: 5904

How to make Jenkins hide logs, history, etc on front page?

I want to remove all changes, workspace links and logs from Jenkins front page.

I do not want unauthorized people, bots, etc to have access to this kind of information.

How can I do that?

Upvotes: 8

Views: 4158

Answers (1)

Slav
Slav

Reputation: 27485

Set up your permissions to not allow unauthorized access

WARNING:

Make sure you have your own user/admin setup will all permission, otherwise you risk locking yourself out. If you do, use information here to reset [thanks Alex]

To configure anonymous users to not see anything:

  • Go to Manage Jenkins
  • Click Configure System/Configure Global Security (depending on your Jenkins/Hudson configuration)
  • Under Access Control -> Security Realm, you should have either Matrix-based security or Project-based Matrix Authorization Strategy. I will assume you've selected the later.
  • Under User/group to add: type authenticated and click Add
  • Now, give this group all the permissions that you want them to have.
  • Next, under User/group to add: type Anonymous and click Add
  • Make sure that none of the permissions are given to this group
  • Click Save

This way, anonymous (not-logged in) users will not be able to see anything, but authenticated (logged in) users will be able to see what you selected. You can drill-down into more specific user permissions by adding individual users and granting them certain permissions.

P.S. The user authentication depends on your Security Realm configuration. You can configure to use Active Directory/LDAP, or use Jenkin's own user database. The former means you don't have to create users in Jenkins, just give them permissions. The later means you've got to create Jenkins's users first through Manage Jenkins -> Manage Users

Upvotes: 16

Related Questions