This is an automated email from the ASF dual-hosted git repository.
arm pushed a commit to branch arm
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
The following commit(s) were added to refs/heads/arm by this push:
new fc1868b2 Add tighter rate limit to /distribute/ssh/register to match
/ssh/register. Update docs on some other endpoints. Closes #724.
fc1868b2 is described below
commit fc1868b289bbfc0f1ee4fc7c2296edae3e08c4c3
Author: Alastair McFarlane <[email protected]>
AuthorDate: Tue Feb 24 10:24:56 2026 +0000
Add tighter rate limit to /distribute/ssh/register to match /ssh/register.
Update docs on some other endpoints. Closes #724.
---
atr/api/__init__.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/atr/api/__init__.py b/atr/api/__init__.py
index 7929bddc..432af5f8 100644
--- a/atr/api/__init__.py
+++ b/atr/api/__init__.py
@@ -244,6 +244,7 @@ async def committees_list() -> DictResponse:
@api.route("/distribute/ssh/register", methods=["POST"])
+@rate_limiter.rate_limit(10, datetime.timedelta(hours=1))
@quart_schema.validate_request(models.api.DistributeSshRegisterArgs)
async def distribute_ssh_register(data: models.api.DistributeSshRegisterArgs)
-> DictResponse:
"""
@@ -282,7 +283,7 @@ async def distribute_ssh_register(data:
models.api.DistributeSshRegisterArgs) ->
@quart_schema.validate_response(models.api.DistributionRecordResults, 200)
async def distribution_record(data: models.api.DistributionRecordArgs) ->
DictResponse:
"""
- Record a distribution.
+ Record a manual distribution.
"""
asf_uid = _jwt_asf_uid()
async with db.session() as db_data:
@@ -320,7 +321,7 @@ async def distribution_record(data:
models.api.DistributionRecordArgs) -> DictRe
@quart_schema.validate_request(models.api.DistributionRecordFromWorkflowArgs)
async def distribution_record_from_workflow(data:
models.api.DistributionRecordFromWorkflowArgs) -> DictResponse:
"""
- Record a distribution.
+ Record the result of an automated distribution from the GH tooling-actions
workflow.
"""
_payload, asf_uid, _project, release = await
interaction.trusted_jwt_for_dist(
data.publisher,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]