mirror of
https://github.com/fosrl/pangolin.git
synced 2026-10-22 04:29:05 +02:00
Add mtls to blueprint, policy, and oss getTraefikConfig
This commit is contained in:
@@ -36,6 +36,24 @@ export default async function migration() {
|
||||
);
|
||||
`
|
||||
).run();
|
||||
db.prepare(
|
||||
`
|
||||
CREATE TABLE 'resourcePolicyMtlsCertificates' (
|
||||
'mtlsCertificateId' integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||
'resourcePolicyId' integer NOT NULL,
|
||||
'name' text,
|
||||
'certificate' text NOT NULL,
|
||||
'subject' text,
|
||||
'issuer' text,
|
||||
'serialNumber' text,
|
||||
'fingerprint' text,
|
||||
'notBefore' integer,
|
||||
'notAfter' integer,
|
||||
'createdAt' integer NOT NULL,
|
||||
FOREIGN KEY ('resourcePolicyId') REFERENCES 'resourcePolicies'('resourcePolicyId') ON UPDATE no action ON DELETE cascade
|
||||
);
|
||||
`
|
||||
).run();
|
||||
db.prepare(
|
||||
`
|
||||
CREATE TABLE 'clientOrgRoles' (
|
||||
@@ -98,6 +116,16 @@ export default async function migration() {
|
||||
ALTER TABLE 'resources' ADD 'mtlsEnabled' integer DEFAULT false NOT NULL;
|
||||
`
|
||||
).run();
|
||||
db.prepare(
|
||||
`
|
||||
ALTER TABLE 'resources' ADD 'forwardIdentityHeaders' integer DEFAULT true NOT NULL;
|
||||
`
|
||||
).run();
|
||||
db.prepare(
|
||||
`
|
||||
ALTER TABLE 'resourcePolicies' ADD 'mtlsEnabled' integer DEFAULT false NOT NULL;
|
||||
`
|
||||
).run();
|
||||
})();
|
||||
|
||||
db.pragma("foreign_keys = ON");
|
||||
|
||||
Reference in New Issue
Block a user