fix: 支持测试根证书注入解决部署HTTPS回环校验报错并升级版本号至v1.52.5
This commit is contained in:
1 parent
0c1a04e1e7
commit
d123ff3f35
11 files changed
+62
-16
No files matched your search
@@ -128,7 +128,8 @@ func NewWithConfigPath(ctx context.Context, cfg config.Config, configPath string
|
||||
taskRepo := repository.NewSQLTaskRepository(db.DB, runtimeDatabaseConfig.Driver)
|
||||
transactionRepo := repository.NewSQLDeploymentTransactionRepository(db.DB, runtimeDatabaseConfig.Driver)
|
||||
deploymentService := deployment.NewServiceWithJournal(deployment.SSHFactory{Secrets: secretStore}, transactionRepo)
|
||||
remoteValidator := certificate.RemoteValidator{}
|
||||
trustRoots, _ := certificate.CombinedTrustRoots("staging")
|
||||
remoteValidator := certificate.RemoteValidator{Roots: trustRoots}
|
||||
deploymentService.VerifyRecoveryTarget = func(ctx context.Context, server deployment.Server, baseline deployment.RecoveryBaseline, committed bool) error {
|
||||
expected := baseline.PreviousFingerprint
|
||||
if committed {
|
||||
|
||||
Reference in new issue
Block a user