[Buildbot-devel] WebStatus issue: Warning: Ignoring authentication. Search for 'authorization' in the manual

Amber Yust ayust at yelp.com
Fri Dec 24 16:25:26 UTC 2010


 @param auth: deprecated; use with authz

I don't believe 'auth' is being supported anymore; the entire branch aside
from the 'if authz' is there for backwards compatibility.

~Amber

On Fri, Dec 24, 2010 at 7:31 AM, <ariasgore at gmx.de> wrote:

> Hello,
> I am on buildbot 0.8.3 and there seems to be some weirdness. I tried using
> authentication via:
>
> from buildbot.status.web.auth import HTPasswdAuth
> auth = (HTPasswdAuth('/var/www/vhosts/.htpasswd'))
> c['status'].append(html.WebStatus(http_port=8010, auth=auth))
> (Thats from buildbot's manual!)
>
> Config fails with  Warning: Ignoring authentication. Search for
> 'authorization' in the manual
>
> Now I checked the manual and I see no issue. However the WebStatus code
> confuses me:
>
> http://buildbot.net/buildbot/docs/latest/reference/buildbot.status.web.baseweb-pysrc.html
> Line 296 is the error message described here but when I trace the code it
> seems quite weird to me:
>
> 282          if authz:
>               ... not applicable since using auth
> 288          else:
> 289              # invent an authz
> 290              if allowForce and auth:
> 291                  authz = Authz(auth=auth, default_action="auth")
> 292              elif allowForce:
> 293                  authz = Authz(default_action=True)
> 294              else:
> 295                  if auth:
> 296                      log.msg("Warning: Ignoring authentication. Search
> for 'authorization'"
> 297                              " in the manual")
> ...
>
> Can sb explain that to me? I mean I am in the else branch and allowForce is
> marked as deprecated and should not be used so how comes that I do need to
> use allowForce when creating the webstatus???
>
> Thanks
> Sam (confused)
>
>
> --
> GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt auch mit
> gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20101224/be4f96e4/attachment.html>


More information about the devel mailing list