Securing jenkins using groovy and chef

Recently I was trying to install and configure a jenkins server automatically using this very good chef cookbook. Part of that installation was to activate global security and add an administrator by default. Fortunately I found this great blog post which contained all information needed to do this.

As described in this post, I used the jenkins script console along with the function jenkins_script from the cookbook to secure jenkins:

It does the following:

  • Activate global security
  • Add a user called admin
  • Add matrix bases security
  • Add user admin as as an administrator

The complete recipe I wrote can be found here.

The next thing to do would be to restrict access to the jenkins cli interface as described here.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">