Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

paperlessreceipts/buildbot-auth-x509

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

buildbot-auth-x509

X.509 authentication support for Buildbot.

Setup

python setup.py install

Usage

In Buildbot master.cfg:

from buildbot_auth_x509 import X509Authz
authz=X509Authz(
    forceBuild='auth', # only authenticated users
    pingBuilder=True, # but anyone can do this
)
c['status'].append(WebStatus(http_port=8080, authz=authz))

Note that auth, useHttpHeader and httpLoginUrl are ignored.

In nginx config:

proxy_set_header SSL_CLIENT_S_DN $ssl_client_s_dn;
proxy_set_header SSL_CLIENT_VERIFY $ssl_client_verify;

Settings

Apart from the standard Authz settings the X509Authz class accepts the following:

  • subject_dn_key - the name of the header containing the Subject DN (default: SSL_CLIENT_S_DN),
  • verify_key - the name of the header containing the result of certificate verification (default: SSL_CLIENT_VERIFY),
  • login_field - the field of the Subject DN that will be used to identify the user (default: CN).

About

X.509 authentication support for Buildbot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages