Skip to content

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

misc: addressed feedback

Sheen Capadngan03f0b86d5fc5
diff --git a/backend/src/ee/services/agent-vault-access-bundle/agent-vault-access-bundle-service.ts b/backend/src/ee/services/agent-vault-access-bundle/agent-vault-access-bundle-service.ts
index fa10af9e72..4b625dfe0d 100644
--- a/backend/src/ee/services/agent-vault-access-bundle/agent-vault-access-bundle-service.ts
+++ b/backend/src/ee/services/agent-vault-access-bundle/agent-vault-access-bundle-service.ts
@@ -1161,6 +1161,11 @@ export const agentVaultAccessBundleServiceFactory = (deps: TAgentVaultAccessBund
},
service.hostPattern
);
+ // The schema's check sees the read-back fields too, so a request holding only those reaches here with nothing to
+ // change.
+ if ([name, credential, customHeaders, ...Object.values(sentFields)].every((value) => value === undefined)) {
+ throw new BadRequestError({ message: "Provide at least one field besides 'type' to update" });
+ }
const { hostPattern: requestedHostPattern, allowedMethods, allowedPathPrefixes, substitutions } = sentFields;
const serverUrl = sentFields.serverUrl ?? undefined;
const transport = sentFields.transport ?? undefined;
diff --git a/docs/documentation/platform/agent-vault/session-logs.mdx b/docs/documentation/platform/agent-vault/session-logs.mdx
index 15f57bba69..05162b3d9d 100644
--- a/docs/documentation/platform/agent-vault/session-logs.mdx
+++ b/docs/documentation/platform/agent-vault/session-logs.mdx
@@ -75,7 +75,7 @@ You can view a session's logs if you created the session or you're an Agent Vaul
- `serviceType`: `http` or `mcp`, or `null` if no service matched the request
- `mcp`: left out for other requests to an MCP service, such as the `GET` that opens an event stream
- `mcp.parsed`: `false` if the proxy couldn't read the calls from the request body, such as a compressed body
- - `mcp.truncated`: `true` if the request held more than 32 calls and the rest weren't recorded (left out otherwise)
+ - `mcp.truncated`: `true` if the request held more than 8 calls and the rest weren't recorded (left out otherwise)
</Step>
</Steps>
diff --git a/frontend/src/components/agent-vault/service-sheet/OAuthAuthorizeCard.tsx b/frontend/src/components/agent-vault/service-sheet/OAuthAuthorizeCard.tsx
index 7a7c8f110e..8161ad1819 100644
--- a/frontend/src/components/agent-vault/service-sheet/OAuthAuthorizeCard.tsx
+++ b/frontend/src/components/agent-vault/service-sheet/OAuthAuthorizeCard.tsx
@@ -246,7 +246,7 @@ export const OAuthAuthorizeCard = ({ accessBundleId, service, onSignInChange }:
authorize({
accessBundleId,
serverUrl: trimmedUrl,
- ...(stored && service ? { serviceId: service.id } : {}),
+ ...(service ? { serviceId: service.id } : {}),
...(wantsOwnApp
? { clientId: clientId.trim(), clientSecret: clientSecret || undefined }
: {}),
diff --git a/frontend/src/hooks/api/agentVault/queries.tsx b/frontend/src/hooks/api/agentVault/queries.tsx
index 25ddcd75b1..e738de6d42 100644
--- a/frontend/src/hooks/api/agentVault/queries.tsx
+++ b/frontend/src/hooks/api/agentVault/queries.tsx
@@ -7,7 +7,6 @@ import { useOrganization } from "@app/context";
import { VARIABLE_KEY_MAX_LENGTH, VARIABLE_KEY_RE } from "@app/helpers/agentVaultVariables";
import {
- AgentVaultCredentialType,
AgentVaultMemberType,
AgentVaultOauthAuthorizationStatus,
AgentVaultVariableScope
@@ -286,14 +285,7 @@ export const useGetAgentVaultAccessBundle = (accessBundleId: string) => {
);
return data.accessBundle;
},
- enabled: Boolean(accessBundleId),
- // Token refreshes and missing-scope reports change OAuth status in the background, so the badges would go stale.
- refetchInterval: (query) =>
- query.state.data?.services.some(
- (service) => service.credential.type === AgentVaultCredentialType.OAuth
- )
- ? 30_000
- : false
+ enabled: Boolean(accessBundleId)
});
};