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.domainis the base domain of the NetAuth server, but is overridable. - entity display name or legal name: if set, will be used for the
full_namebuildbot user property in that fallback order - entity group membership: used for the
groupsbuildbot 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
buildbot_netauth-0.1.1.tar.gz
(45.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file buildbot_netauth-0.1.1.tar.gz.
File metadata
- Download URL: buildbot_netauth-0.1.1.tar.gz
- Upload date:
- Size: 45.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
817f4eb05c6130ae19851a95692ccd8fafa2702cbe069fd725eb55136ac8897e
|
|
| MD5 |
a586cde31c55500aa043ae84640d9b09
|
|
| BLAKE2b-256 |
c3f204de2ec38eee928467cd3739605251d3d142cc6f133618b7d2a2723cce1c
|
File details
Details for the file buildbot_netauth-0.1.1-py3-none-any.whl.
File metadata
- Download URL: buildbot_netauth-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a75f5fa2354453b8cbf6a572b20faf219cac8646c837c99d76430699a5aed5fb
|
|
| MD5 |
07b310a257f2fe0ea69d095e50361986
|
|
| BLAKE2b-256 |
95d19ed16b107f0779cf63184382f2eaa8454755d5d48f8abf237fff19c2536b
|