Commit Graph

6 Commits

Author SHA1 Message Date
Clark Boylan 6f78d6e52b Support normal auth in gerritbot
This is a partial revert of 57a669d35d
which added SASL auth support but in the process removed normal auth. In
order to support OFTC which doesn't currentl do SASL we add back in
normal auth support while keeping SASL for OFTC should they add the
functionality.

Change-Id: I191ced962e91226d196e6fae728484d8cd7233e2
2021-05-29 10:08:56 -07:00
Jeremy Stanley 57a669d35d Identify with SASL
Identify through SASL using the convenient ib3 mixins, and
get rid of a bunch of special-case code in the process.

This helps when dealing with channels set to require identified
users, as otherwise channel joins will race NickServ's processing of
the identify message and some channels will end up not serviced by
the bot (an alternative would be to delay joining channels until the
identify success is confirmed, but the implementation for that looks
like it would be at least as complex).

Change-Id: I1a01eed8102b59818df247a93fbe4bf50148e76a
Co-Authored-By: Thierry Carrez <thierry@openstack.org>
Depends-On: https://review.openstack.org/608313
2018-10-05 17:13:59 +00:00
Eric Fried 981dfa50fa Support regexes in channel config yaml
With this change, the channel config yaml file can now be configured to
support regular expressions.

Any value in any section may be prefixed with `^` to denote that it is
to be treated as a regular expression [1].  Start and end ^anchors$ are
implicit (so add `.*` if needed).

For example, given the following paragraph in the channel config yaml:

openstack-foo:
  events:
    - patchset-created
    - change-merged
  projects:
    - openstack/foo
    - ^openstack/foo-.*
    - openstack/oslo.foo
  branches:
    - master
    - ^stable/(newton|ocata|pike)

...messages will be posted to #openstack-foo for events coming in from
project openstack/foo, openstack/foo-one, openstack/foo-bar, etc.; on
branches master, stable/newton, stable/ocata, or stable/pike.

Behavior is unchanged for values not prefixed with `^`.

[1] This paradigm cribbed from gerrit's search functionality:
https://review.openstack.org/Documentation/user-search.html#path

Change-Id: I97cb8faa72600bd1bd9792bb6bb59a3b652ec389
2018-02-17 11:35:39 -08:00
Christian Berendt 8c38ecdb3f Cleaning up index.rst file
Removed notes about the generation of the file.

Change-Id: Ifefbb9ce4b76e22dd6ddb33658b4aa8469beff13
2014-07-21 08:29:05 +02:00
Matthew Montgomery 6208bd982f Force SSL Configuration Parameter
Adds a new optional config parameter "force_ssl" that applies the SSL wrapper
regardless of the specified port. The previous logic only allowed for SSL
on port 6697. This change is intended to be backwards compatible with
existing configs.

Added *.egg  ignore patterns to .gitignore

Change-Id: I6fe6d9ad2d8461d759a63123af79f229b8f8b6f2
2014-05-23 08:39:55 -05:00
Paul Belanger 1ffe945781 Create initial sphinx documentation
Change-Id: I79b4d880a8bf7021bb35b240ac040d78d78e3556
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
2012-11-25 19:27:01 -05:00