buildbot plugin for integration with NetAuth
Project description
buildbot-netauth
NetAuth authentication, user info, and avatar plugin for buildbot
Usage
-
Install the plugin, for example:
pip install buildbot-netauth
-
In your
buildmaster.cfg
, add:
from buildbot.plugins import util
netauth = util.BuildbotNetAuth(conf=Path("/etc/netauth/config.toml"))
# in your buildmaster config object
c["www"]["auth"] = netauth
c["www"]["avatar_methods"] = [netauth, ...]
Notes
The plugin looks at the following metadata on NetAuth entities:
- entity ID: used as an "email" in the format
entity_id@domain
.domain
is the base domain of the NetAuth server, but is overridable. - entity display name or legal name: if set, will be used for the
full_name
buildbot user property in that fallback order - entity group membership: used for the
groups
buildbot user property and can be used for buildbot authz, for example:
from buildbot.plugins import util
c["www"]["authz"] = util.Authz(
allowRules=[
util.AnyEndpointMatcher(role="ops", defaultDeny=False),
util.AnyControlEndpointMatcher(role="ops"),
],
roleMatchers=[
util.RolesFromGroups(groupPrefix="build-"),
]
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file buildbot_netauth-0.1.0.tar.gz
.
File metadata
- Download URL: buildbot_netauth-0.1.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0d8c72e4607824634b9fa1e183a9028300a8ff59a0b9ccf3a6e3a2246b66eb0 |
|
MD5 | 935b87bc80f483cc4db8635d16e26742 |
|
BLAKE2b-256 | b4297b6e7fc70b62c95c7471b12e69ba0b7088e3f4188c9adbdfca4c2551c3c5 |
File details
Details for the file buildbot_netauth-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: buildbot_netauth-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6b459f55302f60fce9a46d63416a0027a3944803b75dcf1d597a222077b81ac |
|
MD5 | f38bbc58e2952840fdfb4605b2e0d4c2 |
|
BLAKE2b-256 | 3ca834e5128eb2811dabbb524cf44e3f9015eb7de7bfa341a66fb66703e02012 |