Skip to content

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

More linter

Fang-Pen Lincb2810b263bd
diff --git a/backend/src/ee/routes/v1/pki-acme-router.ts b/backend/src/ee/routes/v1/pki-acme-router.ts
index 8e300f8f6b..aa8f23766f 100644
--- a/backend/src/ee/routes/v1/pki-acme-router.ts
+++ b/backend/src/ee/routes/v1/pki-acme-router.ts
@@ -44,7 +44,7 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
req: R;
schema?: TSchema;
}): Promise<TAuthenciatedJwsPayload<T>> => {
- return await server.services.pkiAcme.validateExistingAccountJwsPayload({
+ return server.services.pkiAcme.validateExistingAccountJwsPayload({
url: new URL(req.url, `${req.protocol}://${req.hostname}`),
profileId: (req.params as { profileId: string }).profileId,
rawJwsPayload: req.body as TRawJwsPayload,
@@ -71,7 +71,7 @@ export const registerPkiAcmeRouter = async (server: FastifyZodProvider) => {
if (!strBody) {
done(null, undefined);
}
- const json = JSON.parse(strBody as string);
+ const json = JSON.parse(strBody);
done(null, json);
} catch (err) {
const error = err as Error;
diff --git a/backend/src/ee/services/pki-acme/pki-acme-challenge-service.ts b/backend/src/ee/services/pki-acme/pki-acme-challenge-service.ts
index f266aef98c..cbc6abbab2 100644
--- a/backend/src/ee/services/pki-acme/pki-acme-challenge-service.ts
+++ b/backend/src/ee/services/pki-acme/pki-acme-challenge-service.ts
@@ -90,6 +90,7 @@ export const pkiAcmeChallengeServiceFactory = ({
} else if (cause instanceof Error) {
errors = [cause];
}
+ // eslint-disable-next-line no-unreachable-loop
for (const err of errors) {
// TODO: handle multiple errors, return a compound error instead of just the first error
const fetchError = err as FetchError;