Skip to content

feat(rpc): enforce ratelimiting

Kevin Morris requested to merge kevr/aurweb:pu_rpc_ratelimit into pu
commit d5bf192c12fe85a1f1f4b5b0c13efc8acdf8ca31 (HEAD -> pu_rpc_ratelimit, origin/pu_rpc_ratelimit)
Author: Kevin Morris <kevr@0cost.org>
Date:   Thu Oct 21 10:17:34 2021 -0700

    feat(rpc): enforce ratelimiting

    New configuration options:

    - `[ratelimit] cache`
        - A boolean indicating whether we should use configured cache (1)
          or database (0) for ratelimiting.

    Signed-off-by: Kevin Morris <kevr@0cost.org>

commit 9208332e31f6bfa490717b4bd9b9d3f560c87280
Author: Kevin Morris <kevr@0cost.org>
Date:   Thu Oct 21 10:13:25 2021 -0700

    change(rpc): Handle 'version' and 'type' arguments in constructor

    Additionally, added RPC.error, which produces an RPC-compatible
    error based on the version passed during construction.

    Signed-off-by: Kevin Morris <kevr@0cost.org>

commit 90bd83e706c708975a8ddcfa94b6c5c627ee8060
Author: Kevin Morris <kevr@0cost.org>
Date:   Thu Oct 21 10:08:45 2021 -0700

    fix(fastapi): centralize logging initialization

    With this change, we provide a wrapper to `logging.getLogger`
    in the `aurweb.logging` module. Modules wishing to log using
    logging.conf should get their module-local loggers by calling
    `aurweb.logging.getLogger(__name__)`, similar to `logging.getLogger`,
    this way initialization with logging.conf is guaranteed.

    Signed-off-by: Kevin Morris <kevr@0cost.org>
Edited by Kevin Morris

Merge request reports

Loading