Agent Mesh
Go a2aa2a-protocolagent-meshagentic-aiinferencemcpmeshmesh-networknetwork-securitynetworking-aip2p-network
address review
Antonio Ojeaa6f36c2748dc
diff --git a/.github/k8s/sam-node-openclaw-template.yaml b/.github/k8s/sam-node-openclaw-template.yamlindex 918fd4f3..bf52981b 100644--- a/.github/k8s/sam-node-openclaw-template.yaml+++ b/.github/k8s/sam-node-openclaw-template.yaml@@ -35,14 +35,14 @@ spec:serviceAccountName: sam-node-sainitContainers:- name: init-openclaw-config- image: busybox:latest+ image: busybox:1.36.1command: ["sh", "-c", "mkdir -p /data && echo '{\"gateway\": {\"mode\": \"local\"}}' > /data/openclaw.json"]volumeMounts:- name: openclaw-datamountPath: /datacontainers:- name: openclaw- image: ghcr.io/openclaw/openclaw:latest+ image: ghcr.io/openclaw/openclaw:2026.4.9ports:- containerPort: 18789name: http-gatewaydiff --git a/cmd/sam-hub/main.go b/cmd/sam-hub/main.goindex 99f6f988..ad6246bc 100644--- a/cmd/sam-hub/main.go+++ b/cmd/sam-hub/main.go@@ -144,7 +144,7 @@ func NewHub(ctx context.Context, policy *api.PolicyConfig) (*Hub, error) {if libp2pKeyHex != "" {logger.Infof("Initializing libp2p host with static PeerID...")- seed, err := hex.DecodeString(libp2pKeyHex)+ seed, err := hex.DecodeString(strings.TrimSpace(libp2pKeyHex))if err != nil {return nil, fmt.Errorf("failed to decode libp2p key hex: %w", err)}@@ -208,7 +208,7 @@ func NewHub(ctx context.Context, policy *api.PolicyConfig) (*Hub, error) {var initialSeed []byteif biscuitHex != "" {var err error- initialSeed, err = hex.DecodeString(biscuitHex)+ initialSeed, err = hex.DecodeString(strings.TrimSpace(biscuitHex))if err != nil {return nil, fmt.Errorf("failed to decode key flag: %w", err)}diff --git a/cmd/sam-node/main.go b/cmd/sam-node/main.goindex 22e3cc1c..b79fcc2e 100644--- a/cmd/sam-node/main.go+++ b/cmd/sam-node/main.go@@ -133,7 +133,7 @@ func main() {}if hubPublicKeyFlag != "" {- pubBytes, err := hex.DecodeString(hubPublicKeyFlag)+ pubBytes, err := hex.DecodeString(strings.TrimSpace(hubPublicKeyFlag))if err != nil {logger.Fatalf("Invalid hub public key: %v", err)}diff --git a/cmd/sam-node/node.go b/cmd/sam-node/node.goindex 88a9c279..99edc230 100644--- a/cmd/sam-node/node.go+++ b/cmd/sam-node/node.go@@ -313,7 +313,7 @@ func (n *SamNode) ConnectAndAuthWithHub(ctx context.Context, addr multiaddr.Mult// Open auth streams, err := n.Host.NewStream(ctx, addrInfo.ID, api.AuthProtocolID)if err != nil {- return fmt.Errorf("%w: failed to open auth stream to hub: %w", ErrFatalAuth, err)+ return fmt.Errorf("failed to open auth stream to hub: %w", err)}defer func() {if err := s.Close(); err != nil {