Add better security and setup for incoming Google Code web hooks.

Review Request #6316 — Created Sept. 12, 2014 and submitted — Latest diff uploaded

Information

Review Board
release-2.0.x
5477103...

Reviewers

The Google Code close-submitted webhook now requires a hooks_uuid value,
which will be validated against the repository, returning a 404 if it
doesn't match.

There's some instructions for configuring the hook now as well, which
will direct the user to the proper page and provide them the URL to
configure.

To make this work, I had to fix a bug in our repository configuration
support, which didn't associate a HostingServiceAccount unless that
account required authorization. It attempted to build the account, but
never saved it. This was a simple fix.

Unit tests pass.

Edited a repository previously configured with Google Code. Selected
Google Code again (since it hadn't saved that previously) and saved. It then
associated the Google Code account, and I was able to see the Hooks link in
the repository list.

Repeated that for a new repository as well.

Verified that the links in the instructions worked.

    Loading...