requested changes

This commit is contained in:
Daniel Hougaard
2025-05-13 15:18:23 +04:00
parent 49ab487dc2
commit a12522db55
2 changed files with 4 additions and 2 deletions

View File

@@ -9,6 +9,8 @@ export async function up(knex: Knex): Promise<void> {
await knex.schema.alterTable(TableName.DynamicSecret, (table) => {
table.uuid("gatewayId").nullable();
table.foreign("gatewayId").references("id").inTable(TableName.Gateway).onDelete("SET NULL");
table.index("gatewayId");
});
}
@@ -16,5 +18,6 @@ export async function down(knex: Knex): Promise<void> {
await knex.schema.alterTable(TableName.DynamicSecret, (table) => {
table.dropForeign("gatewayId");
table.dropColumn("gatewayId");
table.dropIndex("gatewayId");
});
}

View File

@@ -165,8 +165,7 @@ export const identityKubernetesAuthServiceFactory = ({
// if ca cert, rejectUnauthorized: true
httpsAgent: new https.Agent({
ca: caCert,
// rejectUnauthorized: !!caCert,
rejectUnauthorized: false
rejectUnauthorized: !!caCert
})
}
)