Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: updated

=11f27198424c
diff --git a/cli/packages/gateway/gateway.go b/cli/packages/gateway/gateway.go
index a8de875beb..658d1fef87 100644
--- a/cli/packages/gateway/gateway.go
+++ b/cli/packages/gateway/gateway.go
@@ -196,7 +196,7 @@ func (g *Gateway) Listen(ctx context.Context) error {
if len(state.PeerCertificates) > 0 {
organizationUnit := state.PeerCertificates[0].Subject.OrganizationalUnit
commonName := state.PeerCertificates[0].Subject.CommonName
- if organizationUnit[0] != "gateway-client" && commonName != "cloud" {
+ if organizationUnit[0] != "gateway-client" || commonName != "cloud" {
log.Error().Msgf("Client certificate verification failed. Received %s, %s", organizationUnit, commonName)
continue
}
@@ -262,7 +262,7 @@ func (g *Gateway) registerPermissionLifecycle(permissionFn func() error, done ch
go func() {
// wait for 5 mins
permissionFn()
- log.Printf("Ceated permission for incoming connections")
+ log.Printf("Created permission for incoming connections")
for {
select {
case <-done: