Skip to main content

buildbot plugin for integration with NetAuth

Project description

buildbot-netauth

NetAuth authentication, user info, and avatar plugin for buildbot

Usage

  1. Install the plugin, for example: pip install buildbot-netauth

  2. 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

buildbot_netauth-0.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for buildbot_netauth-0.1.1.tar.gz
Algorithm Hash digest
SHA256 817f4eb05c6130ae19851a95692ccd8fafa2702cbe069fd725eb55136ac8897e
MD5 a586cde31c55500aa043ae84640d9b09
BLAKE2b-256 c3f204de2ec38eee928467cd3739605251d3d142cc6f133618b7d2a2723cce1c

See more details on using hashes here.

File details

Details for the file buildbot_netauth-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for buildbot_netauth-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a75f5fa2354453b8cbf6a572b20faf219cac8646c837c99d76430699a5aed5fb
MD5 07b310a257f2fe0ea69d095e50361986
BLAKE2b-256 95d19ed16b107f0779cf63184382f2eaa8454755d5d48f8abf237fff19c2536b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page