Page MenuHomePhabricator

[BUILDBOT] Use tokens as an immediate feedback and anti DoS mechanism
ClosedPublic

Authored by Fabien on Oct 23 2020, 14:59.

Details

Summary

Tokens are awarded on a per-user and per-object basis, and are
persistent, which make them a good candidate for an anti-DoS as the bot
can find the previous state and decide based on this.
The current filter allow any approved, verified, and activated non ABC
user to request builds from the bot, with a total limit of 4 requests
per revision. ABC members bypass this rule.

This token mechanism also provide a discrete immediate positive feedback
to the user, improving the UX.

Depends on D8086.

Test Plan
pytest

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable