Skip to content

mcroydon/hudson-django-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Authenticate Hudson against a Django installation using the Script Security Realm plugin. It currently checks each configured authentication backend and ensures that the user is authenticated and also a staff user. It is possible to check if a user is a member of a specific group or has a specific permission as well.

To use this script, you'll need to make sure that your hudson user has its PYTHONPATH and DJANGO_SETTINGS_MODULE set correctly. You can add the following to the hudson user's .bashrc or .bash_profile:

export PYTHONPATH=/any/custom/pythonpaths:/beyond/system/defaults
export DJANGO_SETTINGS_MODULE=myproject.mysettings

You'll also need to install the Script Security Realm plugin and then check Enable security under the Manage Hudson -> Configure System menu. To use this script select Authenticate via custom script and add the following to the Command field:

python /path/to/hudson_django_auth.py

You'll also want to select an appropriate option under Authorization in order for the plugin to take affect. Logged-in users can do anything may be a sane default if you just want to restrict write access. If you'd like to restrict more Hudson information, you can use Matrix-based security with little or no Anonymous access, granting specific access to the special authenticated user.

Note: This script requires at least version 1.1. of the Script Security Realm plugin. Version 1.0 will likely yield a stacktrace.

About

An authentication provider for Hudson's Script Security Realm plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages