⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 294751 in webkit


Ignore:
Timestamp:
May 24, 2022, 9:39:51 AM (4 years ago)
Author:
Ryan Haddad
Message:

[build.webkit.org] Allow configuring multiple user credentials
https://bugs.webkit.org/show_bug.cgi?id=240826

Reviewed by Aakash Jain.

Allow configuring multiple user credentials for build.webkit.org as we
did for ews-build.webkit.org in 246332@main. This also loads credentials
from passwords.json instead of environment variables.

  • Tools/CISupport/build-webkit-org/master.cfg:

Canonical link: https://commits.webkit.org/250919@main

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/CISupport/build-webkit-org/master.cfg

    r293323 r294751  
    4343
    4444if not is_test_mode_enabled:
    45     admin_username = load_password('ADMIN_USERNAME')
    46     admin_password = load_password('ADMIN_PASSWORD')
    47     if not admin_username or not admin_password:
    48         print('\n\nERROR: Admin username/password missing from passwords.json.\n')
     45    credentials = load_password('BUILD_WEBKIT_CREDENTIALS')
     46    if not credentials:
     47        print('BUILD_WEBKIT credentials not found. Please ensure BUILD_WEBKIT_CREDENTIALS is configured either in env variables or in passwords.json')
    4948        sys.exit(1)
    5049    # See https://docs.buildbot.net/2.10.0/manual/configuration/www.html#example-configs
    5150    authz = util.Authz(
    5251        allowRules=[util.AnyControlEndpointMatcher(role="admin")],
    53         roleMatchers=[util.RolesFromEmails(admin=[admin_username])]
     52        roleMatchers=[util.RolesFromEmails(admin=list(credentials.keys()))]
    5453    )
    55     auth = util.UserPasswordAuth({admin_username: admin_password})
     54    auth = util.UserPasswordAuth(credentials)
    5655    c['www']['auth'] = auth
    5756    c['www']['authz'] = authz
Note: See TracChangeset for help on using the changeset viewer.