mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-14 04:16:06 +00:00
fix(cli-credentials): clarify agent grant env controls
This commit is contained in:
1 parent
f1277af8c9
commit
d57d3810e4
3 files changed
+15
-1
No files matched your search
@@ -34,6 +34,10 @@ Significant changes, features, and fixes in reverse chronological order.
|
||||
- Removed the duplicate standalone `CLI Credentials` item from the left sidebar.
|
||||
- Added focused coverage for grant env payload semantics and routing contracts.
|
||||
|
||||
**Fixes**
|
||||
|
||||
- Made agent-grant environment variable controls easier to find by labeling the row action and adding a visible Environment Variables header inside the grant form.
|
||||
|
||||
**Security**
|
||||
|
||||
- Nested agent-grant get/update/delete/reveal routes now verify the grant belongs to the binary ID in the URL.
|
||||
|
||||
@@ -149,6 +149,9 @@ export function CliCredentialGrantEnvSection({
|
||||
|
||||
return (
|
||||
<div className="grid gap-2 rounded-md border p-3">
|
||||
<Label className="text-sm font-medium">
|
||||
{t("grants.envVars.title")}
|
||||
</Label>
|
||||
<div className="flex items-start gap-3">
|
||||
<Switch id="grant-env-override" checked={overrideEnabled} onCheckedChange={handleToggle} className="mt-0.5" />
|
||||
<div className="grid gap-0.5">
|
||||
|
||||
@@ -67,8 +67,15 @@ export function CliCredentialsTable({ items, onEdit, onDelete, onUserCreds, onGr
|
||||
<td className="px-4 py-3 text-muted-foreground">{item.timeout_seconds}s</td>
|
||||
<td className="px-4 py-3 text-right">
|
||||
<div className="flex items-center justify-end gap-1">
|
||||
<Button variant="ghost" size="sm" onClick={() => onGrants(item)} title={t("grants.title", { name: item.binary_name })}>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
onClick={() => onGrants(item)}
|
||||
title={t("grants.title", { name: item.binary_name })}
|
||||
className="gap-1"
|
||||
>
|
||||
<Shield className="h-3.5 w-3.5" />
|
||||
{t("grants.addGrant")}
|
||||
</Button>
|
||||
<Button variant="ghost" size="sm" onClick={() => onUserCreds(item)} title={t("userCredentials.title")}>
|
||||
<Users className="h-3.5 w-3.5" />
|
||||
|
||||
Reference in new issue
Block a user