Skip to content

Commit

Permalink
Add server next protos configuration
Browse files Browse the repository at this point in the history
Latest version of grpc added more strict enforcement of ALPN

Signed-off-by: Derek McGowan <[email protected]>
  • Loading branch information
dmcgowan committed Jan 3, 2025
1 parent e8ecf83 commit 9a32e27
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ca/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ import (

cfconfig "github.com/cloudflare/cfssl/config"
events "github.com/docker/go-events"
"github.com/opencontainers/go-digest"
"github.com/pkg/errors"
"google.golang.org/grpc/credentials"

"github.com/moby/swarmkit/v2/api"
"github.com/moby/swarmkit/v2/connectionbroker"
"github.com/moby/swarmkit/v2/identity"
"github.com/moby/swarmkit/v2/log"
"github.com/moby/swarmkit/v2/watch"
"github.com/opencontainers/go-digest"
"github.com/pkg/errors"
"google.golang.org/grpc/credentials"
)

const (
Expand Down Expand Up @@ -649,6 +650,7 @@ func NewServerTLSConfig(certs []tls.Certificate, rootCAPool *x509.CertPool) (*tl
ClientCAs: rootCAPool,
PreferServerCipherSuites: true,
MinVersion: tls.VersionTLS12,
NextProtos: alpnProtoStr,
}, nil
}

Expand Down

0 comments on commit 9a32e27

Please sign in to comment.