Add more missing ACME stuff

# Conflicts:
#	frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/ProfileRow.tsx

# Conflicts:
#	frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CreateProfileModal.tsx
This commit is contained in:
Fang-Pen Lin
2025-11-07 09:18:02 -08:00
parent 3916d48ba4
commit 2d8126c011
4 changed files with 36 additions and 13 deletions
@@ -225,11 +225,8 @@ export const certificateProfileServiceFactory = ({
message: "API enrollment requires API configuration"
});
}
if (data.enrollmentType === EnrollmentType.ACME && !data.acmeConfig) {
throw new ForbiddenRequestError({
message: "ACME enrollment requires ACME configuration"
});
}
// TODO: acme type currently doesn't require config obj, but add a check in the future if
// we have options
// Create enrollment configs and profile
const profile = await certificateProfileDAL.transaction(async (tx) => {