You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by gs...@apache.org on 2026/08/11 09:54:24 UTC
(tooling-llmao) branch main updated (b1aee8b -> f93a1a4)
This is an automated email from the ASF dual-hosted git repository.
gstein pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-llmao.git
from b1aee8b Record created_by on automation keys (who saw the secret).
new fbff4b1 Tweak suppression of DEBUG messages
new f93a1a4 Split PAT UX into My Keys and Other Keys.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
docs/STATUS.md | 2 +-
main.py | 3 +-
pages.py | 124 ++++++++++++++++++++++++++++-----
static/js/llmao.js | 3 +
templates/header.ezt | 7 +-
templates/home.ezt | 2 +-
templates/key_create.ezt | 17 +----
templates/key_create_other.ezt | 41 +++++++++++
templates/key_created.ezt | 4 +-
templates/keys.ezt | 21 +++---
templates/{keys.ezt => keys_other.ezt} | 33 +++++----
11 files changed, 191 insertions(+), 66 deletions(-)
create mode 100644 templates/key_create_other.ezt
copy templates/{keys.ezt => keys_other.ezt} (73%)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org
(tooling-llmao) 01/02: Tweak suppression of DEBUG messages
Posted by gs...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
gstein pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-llmao.git
commit fbff4b1dcd4d5ff788605057c44fce9f9480ee90
Author: Greg Stein <gs...@gmail.com>
AuthorDate: Tue Aug 11 04:52:14 2026 -0500
Tweak suppression of DEBUG messages
---
main.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/main.py b/main.py
index 5f425fc..0afcb8c 100644
--- a/main.py
+++ b/main.py
@@ -103,7 +103,8 @@ def run_standalone() -> None:
datefmt=DATE_FORMAT,
)
- for modname in { "selector_events", "hpack", "httpcore.http11", "sslproto", "asyncio" }:
+ for modname in { "selector_events", "hpack", "sslproto", "asyncio",
+ "httpcore.http11", "httpcore.connection", }:
logging.getLogger(modname).setLevel(logging.INFO)
_LOGGER.info(" ** Run-mode: Standalone")
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org
(tooling-llmao) 02/02: Split PAT UX into My Keys and Other Keys.
Posted by gs...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
gstein pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-llmao.git
commit f93a1a41bc3b0e288c2ee21bdf568151551ef38d
Author: Greg Stein <gs...@gmail.com>
AuthorDate: Tue Aug 11 04:54:18 2026 -0500
Split PAT UX into My Keys and Other Keys.
Personal keys stay on /keys with a single list call. Automation keys move
to /keys/other (PMC/site admin only), so normal page loads avoid N
per-project queries. Separate create flows and after_path revoke redirects.
Co-authored-by: Grok <gr...@x.ai>
---
docs/STATUS.md | 2 +-
pages.py | 124 ++++++++++++++++++++++++++++-----
static/js/llmao.js | 3 +
templates/header.ezt | 7 +-
templates/home.ezt | 2 +-
templates/key_create.ezt | 17 +----
templates/key_create_other.ezt | 41 +++++++++++
templates/key_created.ezt | 4 +-
templates/keys.ezt | 21 +++---
templates/{keys.ezt => keys_other.ezt} | 33 +++++----
10 files changed, 189 insertions(+), 65 deletions(-)
diff --git a/docs/STATUS.md b/docs/STATUS.md
index 8e854bd..7452907 100644
--- a/docs/STATUS.md
+++ b/docs/STATUS.md
@@ -20,7 +20,7 @@ Detailed “where we are.” Top-level README stays short and links here.
| Model inventory SoT | **`model_list.yaml`** + LiteLLM `include`; flat `model_info`; **no** `STORE_MODEL_IN_DB` for inventory |
| Secrets | On-disk YAML; prod **hiera/eyaml**; same `master_key` in `config.yaml` + `litellm.yaml`; provider **API keys** in `model_list.yaml`; **api_base** cleartext |
| Postgres / Prisma | `litellm[proxy,extra-proxy]`; system PostgreSQL; `make db` |
-| **PAT UX** | `/keys` list/create/revoke; personal + admin automation; secret once; revoke modal |
+| **PAT UX** | **My Keys** `/keys` (personal, one list call); **Other Keys** `/keys/other` (automation, PMC/admin); create/revoke split; secret once |
| Tests | Offline **`tests/mock_backend.py`** injected into Seam — not a config mode |
### Credential rules (as implemented)
diff --git a/pages.py b/pages.py
index 5039339..bf71a6a 100644
--- a/pages.py
+++ b/pages.py
@@ -50,10 +50,11 @@ async def basic_info() -> edict:
basic.flashes = []
basic.error = None
- # Form defaults for create page
+ # Form defaults for create pages
basic.form_project = ""
basic.form_purpose = ""
- basic.form_automation = False
+ basic.keys_back = "/keys"
+ basic.keys_create_another = "/keys/new"
try:
msgs = quart.get_flashed_messages(with_categories=True)
@@ -80,7 +81,13 @@ async def basic_info() -> edict:
client_session.uid in site_admins
or bool(getattr(client_session, "isRoot", False))
)
+ # Other Keys nav + automation mint (provisional: PMC or site admin).
basic.can_create_automation = basic.is_site_admin or bool(committees)
+ if basic.is_site_admin:
+ admin_names = projects
+ else:
+ admin_names = committees
+ basic.admin_projects = [edict({"name": p}) for p in admin_names]
else:
basic.uid = None
basic.name = None
@@ -89,11 +96,12 @@ async def basic_info() -> edict:
basic.committees = []
basic.is_site_admin = False
basic.can_create_automation = False
+ basic.admin_projects = []
return basic
-def _key_rows(keys: list[KeyInfo]) -> list:
+def _key_rows(keys: list[KeyInfo], *, after_path: str = "/keys") -> list:
rows = []
for k in keys:
budget = k.max_budget
@@ -110,6 +118,7 @@ def _key_rows(keys: list[KeyInfo]) -> list:
"last_used": k.last_used or "—",
"created_at": k.created_at or "—",
"blocked": k.blocked,
+ "after_path": after_path,
}))
return rows
@@ -122,31 +131,60 @@ async def home_page():
return result
+def _safe_after_path(raw: str | None, default: str = "/keys") -> str:
+ """Only allow in-app keys paths as post-revoke/create redirects."""
+ if raw in ("/keys", "/keys/other"):
+ return raw
+ return default
+
+
@APP.get("/keys")
@asfquart.auth.require
@APP.use_template(TEMPLATES / "keys.ezt")
async def keys_list():
+ """My Keys — personal PATs only (one list_keys call)."""
+ result = await basic_info()
+ result.title = "My Keys"
+ result.keys = []
+ result.error = None
+ try:
+ ident = await current_identity(APP.cfg)
+ assert ident is not None
+ seam = APP.config["LLMAO_SEAM"]
+ my_keys = await seam.list_my_keys(ident)
+ result.keys = _key_rows(my_keys, after_path="/keys")
+ except (AuthzError, BackendUnavailable) as e:
+ result.error = str(e)
+ return result
+
+
+@APP.get("/keys/other")
+@asfquart.auth.require
+@APP.use_template(TEMPLATES / "keys_other.ezt")
+async def keys_other_list():
+ """Other Keys — automation / team-scoped (PMC / site admin)."""
result = await basic_info()
- result.title = "API keys (PATs)"
+ result.title = "Other Keys"
result.keys = []
result.error = None
+ if not result.can_create_automation:
+ result.error = "Other Keys is limited to PMC members and site admins."
+ return result
try:
ident = await current_identity(APP.cfg)
assert ident is not None
seam = APP.config["LLMAO_SEAM"]
- by_id: dict[str, KeyInfo] = {
- k.token_id: k for k in await seam.list_my_keys(ident)
- }
admin_projects = (
ident.all_projects() if ident.is_site_admin else list(ident.committees)
)
+ by_id: dict[str, KeyInfo] = {}
for p in admin_projects:
try:
for k in await seam.list_automation_keys(ident, p):
by_id.setdefault(k.token_id, k)
except (AuthzError, BackendUnavailable):
continue
- result.keys = _key_rows(list(by_id.values()))
+ result.keys = _key_rows(list(by_id.values()), after_path="/keys/other")
except (AuthzError, BackendUnavailable) as e:
result.error = str(e)
return result
@@ -157,7 +195,7 @@ async def keys_list():
@APP.use_template(TEMPLATES / "key_create.ezt")
async def keys_new_form():
result = await basic_info()
- result.title = "Create API key"
+ result.title = "Create personal key"
return result
@@ -167,23 +205,18 @@ async def keys_new_submit():
form = await quart.request.form
project = (form.get("project") or "").strip()
purpose = (form.get("purpose") or "").strip()
- automation = form.get("automation") == "on"
try:
ident = await current_identity(APP.cfg)
assert ident is not None
seam = APP.config["LLMAO_SEAM"]
- if automation:
- created = await seam.create_automation_key(ident, project, purpose)
- else:
- created = await seam.create_personal_key(ident, project, purpose)
+ created = await seam.create_personal_key(ident, project, purpose)
except (AuthzError, BackendUnavailable) as e:
result = await basic_info()
- result.title = "Create API key"
+ result.title = "Create personal key"
result.error = str(e)
result.form_project = project
result.form_purpose = purpose
- result.form_automation = automation
return _render("key_create.ezt", result)
result = await basic_info()
@@ -191,9 +224,61 @@ async def keys_new_submit():
result.secret = created.secret
result.purpose = created.info.purpose
result.project = created.info.project
- result.kind_label = "Automation" if created.info.is_automation else "Personal"
- result.is_automation = created.info.is_automation
+ result.kind_label = "Personal"
+ result.is_automation = False
+ result.created_by = None
+ result.keys_back = "/keys"
+ result.keys_create_another = "/keys/new"
+ return _render("key_created.ezt", result)
+
+
+@APP.get("/keys/other/new")
+@asfquart.auth.require
+@APP.use_template(TEMPLATES / "key_create_other.ezt")
+async def keys_other_new_form():
+ result = await basic_info()
+ result.title = "Create automation key"
+ if not result.can_create_automation:
+ result.error = "Only PMC members and site admins may create automation keys."
+ return result
+
+
+@APP.post("/keys/other/new")
+@asfquart.auth.require
+async def keys_other_new_submit():
+ form = await quart.request.form
+ project = (form.get("project") or "").strip()
+ purpose = (form.get("purpose") or "").strip()
+
+ result = await basic_info()
+ if not result.can_create_automation:
+ result.title = "Create automation key"
+ result.error = "Only PMC members and site admins may create automation keys."
+ result.form_project = project
+ result.form_purpose = purpose
+ return _render("key_create_other.ezt", result)
+
+ try:
+ ident = await current_identity(APP.cfg)
+ assert ident is not None
+ seam = APP.config["LLMAO_SEAM"]
+ created = await seam.create_automation_key(ident, project, purpose)
+ except (AuthzError, BackendUnavailable) as e:
+ result.title = "Create automation key"
+ result.error = str(e)
+ result.form_project = project
+ result.form_purpose = purpose
+ return _render("key_create_other.ezt", result)
+
+ result.title = "API key created"
+ result.secret = created.secret
+ result.purpose = created.info.purpose
+ result.project = created.info.project
+ result.kind_label = "Automation"
+ result.is_automation = True
result.created_by = created.info.created_by
+ result.keys_back = "/keys/other"
+ result.keys_create_another = "/keys/other/new"
return _render("key_created.ezt", result)
@@ -202,6 +287,7 @@ async def keys_new_submit():
async def keys_revoke():
form = await quart.request.form
token_id = (form.get("token_id") or form.get("token") or "").strip()
+ after_path = _safe_after_path(form.get("after_path"))
try:
ident = await current_identity(APP.cfg)
assert ident is not None
@@ -210,7 +296,7 @@ async def keys_revoke():
await quart.flash("Key revoked.", "success")
except (AuthzError, BackendUnavailable) as e:
await quart.flash(str(e), "danger")
- return quart.redirect("/keys")
+ return quart.redirect(after_path)
@APP.get("/static/<path:filename>")
diff --git a/static/js/llmao.js b/static/js/llmao.js
index f44722f..3b855fb 100644
--- a/static/js/llmao.js
+++ b/static/js/llmao.js
@@ -7,9 +7,12 @@ document.addEventListener("DOMContentLoaded", function () {
if (!btn) return;
var tokenId = btn.getAttribute("data-token-id") || "";
var purpose = btn.getAttribute("data-purpose") || "";
+ var afterPath = btn.getAttribute("data-after-path") || "/keys";
var tokenInput = document.getElementById("revokeTokenId");
var purposeEl = document.getElementById("revokePurpose");
+ var afterInput = document.getElementById("revokeAfterPath");
if (tokenInput) tokenInput.value = tokenId;
if (purposeEl) purposeEl.textContent = purpose;
+ if (afterInput) afterInput.value = afterPath;
});
});
diff --git a/templates/header.ezt b/templates/header.ezt
index d77069d..243a100 100644
--- a/templates/header.ezt
+++ b/templates/header.ezt
@@ -25,8 +25,13 @@
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
[if-any uid]
<li class="nav-item">
- <a class="nav-link" href="/keys">API keys</a>
+ <a class="nav-link" href="/keys">My Keys</a>
</li>
+ [if-any can_create_automation]
+ <li class="nav-item">
+ <a class="nav-link" href="/keys/other">Other Keys</a>
+ </li>
+ [end]
[end]
</ul>
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
diff --git a/templates/home.ezt b/templates/home.ezt
index d5cf645..ee5d60e 100644
--- a/templates/home.ezt
+++ b/templates/home.ezt
@@ -21,7 +21,7 @@
<br><span class="text-muted small">projects: [projects_label]</span>
[end]
</p>
- <a class="btn btn-primary btn-sm mt-3" href="/keys">Manage API keys</a>
+ <a class="btn btn-primary btn-sm mt-3" href="/keys">Manage my keys</a>
</div>
</div>
[else]
diff --git a/templates/key_create.ezt b/templates/key_create.ezt
index d6af1ff..c8ec3fb 100644
--- a/templates/key_create.ezt
+++ b/templates/key_create.ezt
@@ -2,7 +2,7 @@
<div class="container py-4" style="max-width: 36rem;">
<div class="mt-2">[include "flashes.ezt"]</div>
- <h1 class="h3 mb-3">Create API key</h1>
+ <h1 class="h3 mb-3">Create personal key</h1>
<p class="text-muted small">
The secret is shown <strong>once</strong> after creation. Store it in your
password manager or secrets system.
@@ -25,21 +25,10 @@
<div>
<label class="form-label" for="purpose">Purpose</label>
<input class="form-control" type="text" name="purpose" id="purpose"
- required maxlength="128" placeholder="e.g. laptop-cli, INFRA-1234-nightly"
+ required maxlength="128" placeholder="e.g. laptop-cli, local-dev"
value="[form_purpose]">
- <div class="form-text">Stored as the key alias; required for personal and automation keys.</div>
+ <div class="form-text">Short label for this key (required).</div>
</div>
- [if-any can_create_automation]
- <div class="form-check">
- <input class="form-check-input" type="checkbox" name="automation" id="automation" value="on">
- <label class="form-check-label" for="automation">
- Automation key (team-scoped, no personal user — admin / PMC only)
- </label>
- <div class="form-text">
- Use only for scripts after a formal request (include ticket id in purpose).
- </div>
- </div>
- [end]
<div class="d-flex gap-2">
<button type="submit" class="btn btn-primary">Create key</button>
<a class="btn btn-outline-secondary" href="/keys">Cancel</a>
diff --git a/templates/key_create_other.ezt b/templates/key_create_other.ezt
new file mode 100644
index 0000000..1ecb6e1
--- /dev/null
+++ b/templates/key_create_other.ezt
@@ -0,0 +1,41 @@
+[include "header.ezt"]
+<div class="container py-4" style="max-width: 36rem;">
+ <div class="mt-2">[include "flashes.ezt"]</div>
+
+ <h1 class="h3 mb-3">Create automation key</h1>
+ <p class="text-muted small">
+ Team-scoped key with no personal user binding. Uncommon — typically for
+ scripts after a formal request. The secret is shown <strong>once</strong>;
+ you will be recorded as <code>created_by</code>.
+ </p>
+
+ [if-any error]
+ <div class="alert alert-danger">[error]</div>
+ [end]
+
+ [if-any can_create_automation]
+ <form method="post" action="/keys/other/new" class="vstack gap-3">
+ <div>
+ <label class="form-label" for="project">Project</label>
+ <select class="form-select" name="project" id="project" required>
+ <option value="">Select project…</option>
+ [for admin_projects]
+ <option value="[admin_projects.name]">[admin_projects.name]</option>
+ [end]
+ </select>
+ </div>
+ <div>
+ <label class="form-label" for="purpose">Purpose</label>
+ <input class="form-control" type="text" name="purpose" id="purpose"
+ required maxlength="128" placeholder="e.g. INFRA-1234-nightly"
+ value="[form_purpose]">
+ <div class="form-text">Include a ticket id when possible.</div>
+ </div>
+ <div class="d-flex gap-2">
+ <button type="submit" class="btn btn-primary">Create automation key</button>
+ <a class="btn btn-outline-secondary" href="/keys/other">Cancel</a>
+ </div>
+ </form>
+ [end]
+</div>
+[include "footer.ezt"]
diff --git a/templates/key_created.ezt b/templates/key_created.ezt
index fcaab61..c359140 100644
--- a/templates/key_created.ezt
+++ b/templates/key_created.ezt
@@ -23,8 +23,8 @@
<input class="form-control font-monospace" id="secret" type="text" readonly
value="[secret]" onclick="this.select()">
<div class="mt-3 d-flex gap-2">
- <a class="btn btn-primary" href="/keys">Back to keys</a>
- <a class="btn btn-outline-secondary" href="/keys/new">Create another</a>
+ <a class="btn btn-primary" href="[keys_back]">Back to keys</a>
+ <a class="btn btn-outline-secondary" href="[keys_create_another]">Create another</a>
</div>
</div>
[include "footer.ezt"]
diff --git a/templates/keys.ezt b/templates/keys.ezt
index 3931494..98c596e 100644
--- a/templates/keys.ezt
+++ b/templates/keys.ezt
@@ -3,17 +3,15 @@
<div class="mt-2">[include "flashes.ezt"]</div>
<div class="d-flex justify-content-between align-items-center mb-3">
- <h1 class="h3 mb-0">API keys (PATs)</h1>
+ <h1 class="h3 mb-0">My Keys</h1>
<a class="btn btn-primary btn-sm" href="/keys/new">
<i class="bi bi-plus-lg"></i> Create key
</a>
</div>
<p class="text-muted small">
- Personal keys bind your ASF identity to a project team so usage is attributed
- to you. Automation keys (admin only) are team-scoped for scripts after a
- formal request — purpose is required. Only the creator sees the secret;
- <strong>Created by</strong> is who to ask for it.
+ Personal access tokens bind your ASF identity to a project so usage is
+ attributed to you. The secret is shown once when you create the key.
</p>
[if-any error]
@@ -27,8 +25,6 @@
<tr>
<th>Purpose</th>
<th>Project</th>
- <th>Type</th>
- <th>Created by</th>
<th>Last used</th>
<th>Spend</th>
<th>Limit</th>
@@ -41,8 +37,6 @@
<tr>
<td class="font-monospace small">[keys.purpose]</td>
<td>[keys.project]</td>
- <td><span class="badge text-bg-secondary">[keys.kind_label]</span></td>
- <td class="small font-monospace">[keys.created_by]</td>
<td class="small text-muted">[keys.last_used]</td>
<td class="small font-monospace">[keys.spend]</td>
<td class="small font-monospace">[keys.max_budget]</td>
@@ -50,7 +44,8 @@
<td class="text-end">
<button type="button" class="btn btn-outline-danger btn-sm"
data-bs-toggle="modal" data-bs-target="#revokeModal"
- data-token-id="[keys.token_id]" data-purpose="[keys.purpose]">
+ data-token-id="[keys.token_id]" data-purpose="[keys.purpose]"
+ data-after-path="[keys.after_path]">
Revoke
</button>
</td>
@@ -61,24 +56,24 @@
</div>
[else]
[if-any error][else]
- <p class="text-muted">No keys yet. <a href="/keys/new">Create one</a>.</p>
+ <p class="text-muted">No personal keys yet. <a href="/keys/new">Create one</a>.</p>
[end]
[end]
</div>
-<!-- Revoke confirmation modal -->
<div class="modal fade" id="revokeModal" tabindex="-1" aria-labelledby="revokeModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<form method="post" action="/keys/revoke" id="revokeForm">
<div class="modal-header">
- <h2 class="modal-title fs-5" id="revokeModalLabel">Revoke API key?</h2>
+ <h2 class="modal-title fs-5" id="revokeModalLabel">Revoke personal key?</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p class="mb-2">This cannot be undone. Clients using this key will fail immediately.</p>
<p class="mb-0">Purpose: <strong class="font-monospace" id="revokePurpose"></strong></p>
<input type="hidden" name="token_id" id="revokeTokenId" value="">
+ <input type="hidden" name="after_path" id="revokeAfterPath" value="/keys">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
diff --git a/templates/keys.ezt b/templates/keys_other.ezt
similarity index 73%
copy from templates/keys.ezt
copy to templates/keys_other.ezt
index 3931494..f2c7ce4 100644
--- a/templates/keys.ezt
+++ b/templates/keys_other.ezt
@@ -3,17 +3,19 @@
<div class="mt-2">[include "flashes.ezt"]</div>
<div class="d-flex justify-content-between align-items-center mb-3">
- <h1 class="h3 mb-0">API keys (PATs)</h1>
- <a class="btn btn-primary btn-sm" href="/keys/new">
- <i class="bi bi-plus-lg"></i> Create key
+ <h1 class="h3 mb-0">Other Keys</h1>
+ [if-any can_create_automation]
+ <a class="btn btn-outline-primary btn-sm" href="/keys/other/new">
+ <i class="bi bi-plus-lg"></i> Create automation key
</a>
+ [end]
</div>
<p class="text-muted small">
- Personal keys bind your ASF identity to a project team so usage is attributed
- to you. Automation keys (admin only) are team-scoped for scripts after a
- formal request — purpose is required. Only the creator sees the secret;
- <strong>Created by</strong> is who to ask for it.
+ Team-scoped <strong>automation</strong> keys (no personal user). These are
+ uncommon — typically issued by RAI or a project admin for scripts after a
+ formal request. The secret is shown only once at creation;
+ <strong>Created by</strong> is who saw it and who teammates should ask.
</p>
[if-any error]
@@ -27,7 +29,6 @@
<tr>
<th>Purpose</th>
<th>Project</th>
- <th>Type</th>
<th>Created by</th>
<th>Last used</th>
<th>Spend</th>
@@ -41,7 +42,6 @@
<tr>
<td class="font-monospace small">[keys.purpose]</td>
<td>[keys.project]</td>
- <td><span class="badge text-bg-secondary">[keys.kind_label]</span></td>
<td class="small font-monospace">[keys.created_by]</td>
<td class="small text-muted">[keys.last_used]</td>
<td class="small font-monospace">[keys.spend]</td>
@@ -50,7 +50,8 @@
<td class="text-end">
<button type="button" class="btn btn-outline-danger btn-sm"
data-bs-toggle="modal" data-bs-target="#revokeModal"
- data-token-id="[keys.token_id]" data-purpose="[keys.purpose]">
+ data-token-id="[keys.token_id]" data-purpose="[keys.purpose]"
+ data-after-path="[keys.after_path]">
Revoke
</button>
</td>
@@ -61,24 +62,28 @@
</div>
[else]
[if-any error][else]
- <p class="text-muted">No keys yet. <a href="/keys/new">Create one</a>.</p>
+ <p class="text-muted">No automation keys for your admin projects yet.
+ [if-any can_create_automation]
+ <a href="/keys/other/new">Create one</a>.
+ [end]
+ </p>
[end]
[end]
</div>
-<!-- Revoke confirmation modal -->
<div class="modal fade" id="revokeModal" tabindex="-1" aria-labelledby="revokeModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<form method="post" action="/keys/revoke" id="revokeForm">
<div class="modal-header">
- <h2 class="modal-title fs-5" id="revokeModalLabel">Revoke API key?</h2>
+ <h2 class="modal-title fs-5" id="revokeModalLabel">Revoke automation key?</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
- <p class="mb-2">This cannot be undone. Clients using this key will fail immediately.</p>
+ <p class="mb-2">This cannot be undone. Scripts using this key will fail immediately.</p>
<p class="mb-0">Purpose: <strong class="font-monospace" id="revokePurpose"></strong></p>
<input type="hidden" name="token_id" id="revokeTokenId" value="">
+ <input type="hidden" name="after_path" id="revokeAfterPath" value="/keys/other">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org