You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by ar...@apache.org on 2026/03/09 09:32:41 UTC
(tooling-trusted-releases) 01/01: Use release name from URL and compare to the form to ensure no malicious/accidental use. Closes #655
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
commit 8fd6be8a983d0bd52634043471e41cc40747c17d
Author: Alastair McFarlane <ar...@apache.org>
AuthorDate: Mon Mar 9 09:32:23 2026 +0000
Use release name from URL and compare to the form to ensure no malicious/accidental use. Closes #655
---
atr/post/distribution.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/atr/post/distribution.py b/atr/post/distribution.py
index 01f847ca..fd70485d 100644
--- a/atr/post/distribution.py
+++ b/atr/post/distribution.py
@@ -137,6 +137,10 @@ async def delete(
await session.check_access(project_name)
sql_platform = delete_form.platform.to_sql() # type: ignore[attr-defined]
+ url_release = sql.release_name(project_name, version_name)
+ if url_release != delete_form.release_name:
+ raise RuntimeError("Release name mismatch")
+
# Validate the submitted data, and obtain the committee for its name
async with db.session() as data:
release = await data.release(name=str(delete_form.release_name)).demand(
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org