Added support for TLS client auth for datasource proxies (#5801)
This commit is contained in:
@@ -101,4 +101,15 @@ func addDataSourceMigration(mg *Migrator) {
|
||||
mg.AddMigration("Add column with_credentials", NewAddColumnMigration(tableV2, &Column{
|
||||
Name: "with_credentials", Type: DB_Bool, Nullable: false, Default: "0",
|
||||
}))
|
||||
|
||||
// add columns to activate TLS client auth option
|
||||
mg.AddMigration("Add column tls_auth", NewAddColumnMigration(tableV2, &Column{
|
||||
Name: "tls_auth", Type: DB_Bool, Nullable: false, Default: "0",
|
||||
}))
|
||||
mg.AddMigration("Add column tls_client_cert", NewAddColumnMigration(tableV2, &Column{
|
||||
Name: "tls_client_cert", Type: DB_NVarchar, Length: 255, Nullable: true,
|
||||
}))
|
||||
mg.AddMigration("Add column tls_client_key", NewAddColumnMigration(tableV2, &Column{
|
||||
Name: "tls_client_key", Type: DB_NVarchar, Length: 255, Nullable: true,
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user