mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 16:27:40 +00:00
Try to fix skip challenge
This commit is contained in:
@@ -613,7 +613,7 @@ export const pkiAcmeServiceFactory = ({
|
|||||||
const auth = await acmeAuthDAL.create(
|
const auth = await acmeAuthDAL.create(
|
||||||
{
|
{
|
||||||
accountId: account.id,
|
accountId: account.id,
|
||||||
status: AcmeAuthStatus.Pending,
|
status: skipDnsOwnershipVerification ? AcmeAuthStatus.Valid : AcmeAuthStatus.Pending,
|
||||||
identifierType: identifier.type,
|
identifierType: identifier.type,
|
||||||
identifierValue: identifier.value,
|
identifierValue: identifier.value,
|
||||||
// RFC 8555 suggests a token with at least 128 bits of entropy
|
// RFC 8555 suggests a token with at least 128 bits of entropy
|
||||||
@@ -625,15 +625,17 @@ export const pkiAcmeServiceFactory = ({
|
|||||||
},
|
},
|
||||||
tx
|
tx
|
||||||
);
|
);
|
||||||
// TODO: support other challenge types here. Currently only HTTP-01 is supported.
|
if (!skipDnsOwnershipVerification) {
|
||||||
await acmeChallengeDAL.create(
|
// TODO: support other challenge types here. Currently only HTTP-01 is supported.
|
||||||
{
|
await acmeChallengeDAL.create(
|
||||||
authId: auth.id,
|
{
|
||||||
status: skipDnsOwnershipVerification ? AcmeChallengeStatus.Valid : AcmeChallengeStatus.Pending,
|
authId: auth.id,
|
||||||
type: AcmeChallengeType.HTTP_01
|
status: AcmeChallengeStatus.Pending,
|
||||||
},
|
type: AcmeChallengeType.HTTP_01
|
||||||
tx
|
},
|
||||||
);
|
tx
|
||||||
|
);
|
||||||
|
}
|
||||||
return auth;
|
return auth;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user