This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch sbp
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
The following commit(s) were added to refs/heads/sbp by this push:
new f6f97de9 Remove the admin route that shows environment variables
f6f97de9 is described below
commit f6f97de93742da037523e91382b447014c32e86a
Author: Sean B. Palmer <[email protected]>
AuthorDate: Thu Apr 2 19:02:34 2026 +0100
Remove the admin route that shows environment variables
---
atr/admin/__init__.py | 13 -------------
atr/templates/includes/topnav.html | 5 -----
2 files changed, 18 deletions(-)
diff --git a/atr/admin/__init__.py b/atr/admin/__init__.py
index c584918d..31f7a5f8 100644
--- a/atr/admin/__init__.py
+++ b/atr/admin/__init__.py
@@ -491,19 +491,6 @@ async def delete_test_openpgp_keys_post(
return await session.redirect(get.keys.keys)
[email protected]
-async def env(_session: web.Committer, _env: Literal["env"]) ->
web.QuartResponse:
- """
- URL: GET /env
-
- Display the environment variables.
- """
- env_vars = []
- for key, value in os.environ.items():
- env_vars.append(f"{key}={value}")
- return web.TextResponse("\n".join(env_vars))
-
-
@admin.typed
async def keys_check_get(_session: web.Committer, _keys_check:
Literal["keys/check"]) -> web.QuartResponse:
"""
diff --git a/atr/templates/includes/topnav.html
b/atr/templates/includes/topnav.html
index 62e733c3..d37ca64a 100644
--- a/atr/templates/includes/topnav.html
+++ b/atr/templates/includes/topnav.html
@@ -298,11 +298,6 @@
href="{{ as_url(admin.configuration) }}"
{% if request.endpoint == 'atr_admin_configuration'
%}class="active"{% endif %}><i class="bi bi-gear"></i> Configuration</a>
</li>
- <li>
- <a class="dropdown-item"
- href="{{ as_url(admin.env) }}"
- {% if request.endpoint == 'atr_admin_env'
%}class="active"{% endif %}><i class="bi bi-gear"></i> Environment</a>
- </li>
<li>
<a class="dropdown-item"
href="{{ as_url(admin.performance) }}"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]