Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions agents/manager/loader.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -28,6 +28,7 @@ import (
"github.com/codefly-dev/core/resources"
runnersbase "github.com/codefly-dev/core/runners/base"
"github.com/codefly-dev/core/runners/sandbox"
"github.com/codefly-dev/core/solution"
coretoolbox "github.com/codefly-dev/core/toolbox"
"github.com/codefly-dev/core/wool"

Expand DownExpand Up@@ -1028,6 +1029,11 @@ func Load(ctx context.Context, p *resources.Agent, opts ...LoadOption) (*AgentCo
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithStatsHandler(otelgrpc.NewClientHandler()),
grpc.WithPerRPCCredentials(bearerCreds{token: authToken}),
// Host-side dispatch gate for the Solution contract: refuses to send a
// Solution RPC whose declared effect/network policy exceeds the ceiling
// stamped on the call context (solution.WithCeiling). No-ops for every
// other service, so it is safe on every agent connection.
grpc.WithChainUnaryInterceptor(solution.EnforcingClientInterceptor()),
grpcconfig.TypedMessageClientDialOption(),
)
if err != nil {
Expand Down
Loading
Loading