Skip to content

Commit 9253ed7

Browse files
Merge pull request #75 from Infisical/fix/local-base-proxy-certificate-check
fix: local base proxy check
2 parents 7725d22 + 3865185 commit 9253ed7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/pam/local/base-proxy.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"time"
1313

1414
"github.com/Infisical/infisical-merge/packages/api"
15+
"github.com/Infisical/infisical-merge/packages/util"
1516
"github.com/go-resty/resty/v2"
1617
"github.com/rs/zerolog/log"
1718
)
@@ -73,6 +74,11 @@ func (b *BaseProxyServer) CreateRelayConnection() (net.Conn, error) {
7374
MinVersion: tls.VersionTLS12,
7475
}
7576

77+
if util.IsDevelopmentMode() {
78+
tlsConfig.InsecureSkipVerify = true
79+
log.Debug().Msg("Development mode: skipping TLS certificate verification for relay connection")
80+
}
81+
7682
conn, err := tls.Dial("tcp", fmt.Sprintf("%s:%d", host, port), tlsConfig)
7783
if err != nil {
7884
return nil, fmt.Errorf("failed to connect to relay: %w", err)

0 commit comments

Comments
 (0)