[users at bb.net] secrets plugins

Andrew Ames aames at tanzle.com
Wed Feb 20 17:35:34 UTC 2019


It appears that the secrets plugins do not work out-of-the-box on master
and in the latest release (2.0.1). Maybe I am missing something.

It appears that the plugins are correctly configured and available in the
source, but both SecretInVault and SecretInAFile are undefined. However,
the secrets module is being loaded.

Any help is greatly appreciated.

Steps to reproduce:

Add these lines to the default master.cfg:

from buildbot.plugins import *
c = BuildmasterConfig = {}
print("~~~~~~~~~~~~~~ %s" % secrets)
print("~~~~~~~~~~~~~~ %s" % secrets.SecretInVault)


Observe the error in twistd.log on master start:

2019-02-20 09:31:50-0800 [-] ~~~~~~~~~~~~~~ <buildbot.plugins.db._Plugins
object at 0x7fd264119a20>
2019-02-20 09:31:50-0800 [-] error while parsing config file:
        Traceback (most recent call last):
          File
"/home/aames/.pzlenv/.global_container/.common/Miniconda3-latest-Linux-x86_64/lib/python3.6/site-packages/twisted/python/threadpool.py",
line 266, in <lambda>
            inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
          File
"/home/aames/.pzlenv/.global_container/.common/Miniconda3-latest-Linux-x86_64/lib/python3.6/site-packages/twisted/python/context.py",
line 122, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args,
**kw)
          File
"/home/aames/.pzlenv/.global_container/.common/Miniconda3-latest-Linux-x86_64/lib/python3.6/site-packages/twisted/python/context.py",
line 85, in callWithContext
            return func(*args,**kw)
          File
"/home/aames/.pzlenv/.global_container/.common/Miniconda3-latest-Linux-x86_64/lib/python3.6/site-packages/buildbot/config.py",
line 173, in loadConfig
            self.basedir, self.configFileName)
        --- <exception caught here> ---
          File
"/home/aames/.pzlenv/.global_container/.common/Miniconda3-latest-Linux-x86_64/lib/python3.6/site-packages/buildbot/config.py",
line 131, in loadConfigDict
            execfile(filename, localDict)
          File
"/home/aames/.pzlenv/.global_container/.common/Miniconda3-latest-Linux-x86_64/lib/python3.6/site-packages/twisted/python/compat.py",
line 247, in execfile
            exec(code, globals, locals)
          File "/home/aames/bb-master/master.cfg", line 16, in <module>
            print("~~~~~~~~~~~~~~ %s" % secrets.SecretInVault)
          File
"/home/aames/.pzlenv/.global_container/.common/Miniconda3-latest-Linux-x86_64/lib/python3.6/site-packages/buildbot/plugins/db.py",
line 278, in __getattr__
            raise AttributeError(str(err))
        builtins.AttributeError: Unknown component name: SecretInVault

-- 
Andrew Ames
aames at tanzle.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20190220/ec6df011/attachment.html>


More information about the users mailing list