-
Notifications
You must be signed in to change notification settings - Fork 70
Feature ssl wildcard and multiple update #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
9b5278d
bb141a4
36a936e
3a6433d
bafd314
e726229
21519f6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| -- AlterTable: Add wildcard SSL certificate support fields | ||
| ALTER TABLE "ssl_certificates" | ||
| ADD COLUMN "isWildcard" BOOLEAN NOT NULL DEFAULT false, | ||
| ADD COLUMN "wildcardDomain" TEXT; | ||
|
|
||
| -- CreateIndex: Index on isWildcard for efficient wildcard certificate queries | ||
| CREATE INDEX "ssl_certificates_isWildcard_idx" ON "ssl_certificates"("isWildcard"); |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,3 @@ | ||||||
| -- AlterTable | ||||||
| ALTER TABLE "ssl_certificates" ADD COLUMN "dnsProvider" TEXT; | ||||||
| ALTER TABLE "ssl_certificates" ADD COLUMN "dnsCredentials" JSONB; | ||||||
|
||||||
| ALTER TABLE "ssl_certificates" ADD COLUMN "dnsCredentials" JSONB; | |
| ALTER TABLE "ssl_certificates" ADD COLUMN "dnsCredentialRef" TEXT; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| -- AlterEnum | ||
| ALTER TYPE "NotificationChannelType" ADD VALUE 'jira'; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import path from 'node:path' | ||
| import { defineConfig } from 'prisma/config' | ||
|
|
||
| export default defineConfig({ | ||
| earlyAccess: true, | ||
| schema: path.join(__dirname, 'schema.prisma'), | ||
| migrate: { | ||
| async url() { | ||
| const databaseUrl = process.env.DATABASE_URL | ||
| if (!databaseUrl) { | ||
| throw new Error('DATABASE_URL environment variable is required for migrations') | ||
| } | ||
| return databaseUrl | ||
| } | ||
| } | ||
| }) |
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -7,7 +7,6 @@ generator client { | |||||||||||||
|
|
||||||||||||||
| datasource db { | ||||||||||||||
| provider = "postgresql" | ||||||||||||||
| url = env("DATABASE_URL") | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| enum UserRole { | ||||||||||||||
|
|
@@ -262,6 +261,14 @@ model SSLCertificate { | |||||||||||||
| issuerDetails Json? // { commonName, organization, country } | ||||||||||||||
| serialNumber String? // Certificate serial number | ||||||||||||||
|
|
||||||||||||||
| // Wildcard SSL support | ||||||||||||||
| isWildcard Boolean @default(false) // Whether this is a wildcard certificate | ||||||||||||||
| wildcardDomain String? // The wildcard pattern (e.g., "*.example.com") | ||||||||||||||
|
|
||||||||||||||
| // DNS credentials for wildcard auto-renewal (Cloudflare DNS-01 challenge) | ||||||||||||||
| dnsProvider String? // DNS provider plugin name (e.g., "dns_cf") | ||||||||||||||
| dnsCredentials Json? // DNS API credentials for auto-renewal (e.g., { CF_Token: "...", CF_Account_ID: "..." }) | ||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Storing sensitive information like
Comment on lines
+269
to
+270
|
||||||||||||||
| dnsProvider String? // DNS provider plugin name (e.g., "dns_cf") | |
| dnsCredentials Json? // DNS API credentials for auto-renewal (e.g., { CF_Token: "...", CF_Account_ID: "..." }) | |
| dnsProvider String? // DNS provider plugin name (e.g., "dns_cf") | |
| // Reference/identifier to DNS API credentials stored in a dedicated secret store. | |
| // This must not contain raw API tokens or secrets. | |
| dnsCredentialRef String? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Express v5.2.1 is specified, but as of January 2025, Express v5 is still in beta (latest stable is 4.x). Express 5.x introduces breaking changes including changes to middleware signatures, error handling, and removed methods. This is a major version upgrade that requires careful testing and potential code changes. Verify that all middleware and route handlers are compatible with Express 5, particularly error handlers which now requireasync errors to be explicitly caught.