Skip to content

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

fix(secret-rotation): drop retry on Azure credential existence lookup

Claudebb1df620513c
diff --git a/backend/src/ee/services/secret-rotation-v2/azure-client-secret/azure-client-secret-rotation-fns.ts b/backend/src/ee/services/secret-rotation-v2/azure-client-secret/azure-client-secret-rotation-fns.ts
index d55a2de65f..6d9727ef80 100644
--- a/backend/src/ee/services/secret-rotation-v2/azure-client-secret/azure-client-secret-rotation-fns.ts
+++ b/backend/src/ee/services/secret-rotation-v2/azure-client-secret/azure-client-secret-rotation-fns.ts
@@ -134,16 +134,12 @@ export const azureClientSecretRotationFactory: TRotationFactory<
const endpoint = `${GRAPH_API_BASE}/applications/${objectId}/passwordCredentials`;
try {
- const { data } = await withAzureConcurrentRequestRetry(
- () =>
- request.get<{ value: Array<{ keyId: string }> }>(endpoint, {
- headers: {
- Authorization: `Bearer ${accessToken}`,
- "Content-Type": "application/json"
- }
- }),
- "list credentials"
- );
+ const { data } = await request.get<{ value: Array<{ keyId: string }> }>(endpoint, {
+ headers: {
+ Authorization: `Bearer ${accessToken}`,
+ "Content-Type": "application/json"
+ }
+ });
return data.value?.some((credential) => credential.keyId === keyId) || false;
} catch (error: unknown) {