Add challenge token

This commit is contained in:
Fang-Pen Lin
2025-11-07 09:18:42 -08:00
parent a7f773b78f
commit 1319ccc0d3
4 changed files with 23 additions and 16 deletions
@@ -104,6 +104,9 @@ export async function up(knex: Knex): Promise<void> {
// Authorization status
t.string("status").notNullable(); // pending, valid, invalid, deactivated, expired, revoked
// Token used to validate the authorization through ACME challenge
t.timestamp("token").nullable();
// Identifier type and value
t.string("identifierType").notNullable(); // dns
t.string("identifierValue").notNullable(); // domain name
+1 -1
View File
@@ -96,8 +96,8 @@ export * from "./pki-acme-accounts";
export * from "./pki-acme-auths";
export * from "./pki-acme-challenges";
export * from "./pki-acme-enrollment-configs";
export * from "./pki-acme-orders";
export * from "./pki-acme-order-auths";
export * from "./pki-acme-orders";
export * from "./pki-alerts";
export * from "./pki-api-enrollment-configs";
export * from "./pki-certificate-profiles";
+2 -1
View File
@@ -16,7 +16,8 @@ export const PkiAcmeAuthsSchema = z.object({
expiresAt: z.date(),
certificateId: z.string().uuid().nullable().optional(),
createdAt: z.date(),
updatedAt: z.date()
updatedAt: z.date(),
token: z.string().nullable().optional()
});
export type TPkiAcmeAuths = z.infer<typeof PkiAcmeAuthsSchema>;