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
@@ -9,6 +9,8 @@ export async function up(knex: Knex): Promise<void> {
await knex.schema.alterTable(TableName.DynamicSecret, (table) => { await knex.schema.alterTable(TableName.DynamicSecret, (table) => {
table.uuid("gatewayId").nullable(); table.uuid("gatewayId").nullable();
table.foreign("gatewayId").references("id").inTable(TableName.Gateway).onDelete("SET NULL"); 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) => { await knex.schema.alterTable(TableName.DynamicSecret, (table) => {
table.dropForeign("gatewayId"); table.dropForeign("gatewayId");
table.dropColumn("gatewayId"); table.dropColumn("gatewayId");
table.dropIndex("gatewayId");
}); });
} }
@@ -165,8 +165,7 @@ export const identityKubernetesAuthServiceFactory = ({
// if ca cert, rejectUnauthorized: true // if ca cert, rejectUnauthorized: true
httpsAgent: new https.Agent({ httpsAgent: new https.Agent({
ca: caCert, ca: caCert,
// rejectUnauthorized: !!caCert, rejectUnauthorized: !!caCert
rejectUnauthorized: false
}) })
} }
) )