Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

misc: polishing work

Sheen Capadngane1703929d6c3
diff --git a/docs/documentation/platform/agent-vault/mcp-servers.mdx b/docs/documentation/platform/agent-vault/mcp-servers.mdx
index 50223622f6..4718e2c27c 100644
--- a/docs/documentation/platform/agent-vault/mcp-servers.mdx
+++ b/docs/documentation/platform/agent-vault/mcp-servers.mdx
@@ -162,7 +162,7 @@ Infisical won't save a custom header with the same name as the credential's head
{"error":"upstream_auth_failed","message":"The MCP server rejected the credential Infisical provided. Reauthorize this service in Infisical Agent Vault."}
```
- In the access bundle's **Services** table, the service shows **Needs Additional Scopes** if the server asked for scopes the authorization lacks, and **Needs Reauthorization** if the provider no longer accepts the service's login. If the server rejected the fresh token, the service shows no warning.
+ In the access bundle's **Services** table, the service shows **Missing Scopes** if the server asked for scopes the authorization lacks, and **Needs Reauthorization** if the provider no longer accepts the service's login. If the server rejected the fresh token, the service shows no warning.
In each case, reauthorize the service. Open the service's menu, select **Edit**, and continue to the **Credential** step. Select **Reauthorize**, sign in to the provider again, then continue and select **Save**. Then try the tool call again.
</Accordion>
diff --git a/frontend/src/components/agent-vault/service-sheet/OAuthAuthorizeCard.tsx b/frontend/src/components/agent-vault/service-sheet/OAuthAuthorizeCard.tsx
index 4146ef5394..9b38c3b447 100644
--- a/frontend/src/components/agent-vault/service-sheet/OAuthAuthorizeCard.tsx
+++ b/frontend/src/components/agent-vault/service-sheet/OAuthAuthorizeCard.tsx
@@ -1,6 +1,5 @@
import { Fragment, ReactNode, useEffect, useId, useState } from "react";
import { useFormContext, useWatch } from "react-hook-form";
-import { format } from "date-fns";
import { CheckIcon, CircleAlertIcon, CircleXIcon, InfoIcon, TriangleAlertIcon } from "lucide-react";
import { twMerge } from "tailwind-merge";
@@ -61,7 +60,7 @@ export const OAuthStatusBadge = ({ status }: { status: AgentVaultOauthStatus })
</Badge>
);
-const TONE_CLASS = { danger: "text-danger", warning: "text-warning" } as const;
+const TONE_CLASS = { danger: "[&>svg]:text-danger", warning: "[&>svg]:text-warning" } as const;
const Status = ({
icon,
@@ -77,8 +76,8 @@ const Status = ({
<div className="flex min-w-0 flex-col gap-0.5">
<span
className={twMerge(
- "flex items-center gap-1.5 text-sm [&>svg]:size-3.5 [&>svg]:shrink-0",
- tone ? TONE_CLASS[tone] : "text-foreground"
+ "flex items-center gap-1.5 text-sm text-foreground [&>svg]:size-3.5 [&>svg]:shrink-0",
+ tone && TONE_CLASS[tone]
)}
>
{icon}
@@ -298,8 +297,6 @@ export const OAuthAuthorizeCard = ({ accessBundleId, service, onSignInChange }:
if (!stored) return null;
- const authorizedAt = stored.authorizedAt ? new Date(stored.authorizedAt) : null;
-
let head: ReactNode;
if (stored.status === AgentVaultOauthStatus.NeedsReauthorization) {
head = (
@@ -318,27 +315,12 @@ export const OAuthAuthorizeCard = ({ accessBundleId, service, onSignInChange }:
tone="warning"
title={OAUTH_STATUS_LABELS[AgentVaultOauthStatus.NeedsAdditionalScopes]}
>
- An agent needed scopes this authorization doesn&apos;t have.
+ An agent requested scopes that aren&apos;t granted yet. Reauthorize to add them.
</Status>
);
} else {
head = (
- <Status
- icon={<CheckIcon />}
- title={
- authorizedAt ? (
- <Tooltip>
- <TooltipTrigger asChild>
- {/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */}
- <span tabIndex={0}>Authorized on {format(authorizedAt, "MMM d, yyyy")}</span>
- </TooltipTrigger>
- <TooltipContent>{format(authorizedAt, "MMM d, yyyy h:mm a")}</TooltipContent>
- </Tooltip>
- ) : (
- "Authorized"
- )
- }
- />
+ <Status icon={<CheckIcon />} title={OAUTH_STATUS_LABELS[AgentVaultOauthStatus.Connected]} />
);
}
diff --git a/frontend/src/components/agent-vault/service-sheet/serviceSchema.ts b/frontend/src/components/agent-vault/service-sheet/serviceSchema.ts
index a30e3a78d9..1b8afa1e98 100644
--- a/frontend/src/components/agent-vault/service-sheet/serviceSchema.ts
+++ b/frontend/src/components/agent-vault/service-sheet/serviceSchema.ts
@@ -46,7 +46,7 @@ export const HTTP_CREDENTIAL_TYPES = [
export const OAUTH_STATUS_LABELS: Record<AgentVaultOauthStatus, string> = {
[AgentVaultOauthStatus.Connected]: "Authorized",
[AgentVaultOauthStatus.NeedsReauthorization]: "Needs Reauthorization",
- [AgentVaultOauthStatus.NeedsAdditionalScopes]: "Needs Additional Scopes"
+ [AgentVaultOauthStatus.NeedsAdditionalScopes]: "Missing Scopes"
};
export const SERVICE_TYPE_LABELS: Record<AgentVaultServiceType, string> = {