Agent Mesh
Go a2aa2a-protocolagent-meshagentic-aiinferencemcpmeshmesh-networknetwork-securitynetworking-aip2p-network
deploy: define sam:role:node in the seeded policy and fail loudly on rejection
Antonio Ojea8ce97e40448c
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yamlindex a43dc848..f3d6f1af 100644--- a/.github/workflows/deploy.yaml+++ b/.github/workflows/deploy.yaml@@ -391,7 +391,7 @@ jobs:sleep 1done- curl -s -X POST \+ curl -fsS -X POST \-H "Content-Type: application/json" \-H "Authorization: Bearer ${ADMIN_TOKEN}" \-d '{@@ -399,6 +399,7 @@ jobs:{"name": "sam-canary", "allowed_services": ["*"], "allowed_targets": ["*"]},{"name": "sam:role:sambox", "allowed_services": ["*"], "allowed_targets": ["*"]},{"name": "sam:role:router", "allowed_services": ["*"], "allowed_targets": ["*"]},+ {"name": "sam:role:node"},{"name": "public-mesh", "allowed_services": ["*"], "allowed_targets": ["*"]}],"bindings": [@@ -408,7 +409,11 @@ jobs:{"role": "public-mesh", "members": ["sam:system:authenticated"]}]}' \- http://localhost:8080/policies >/dev/null+ http://localhost:8080/policies || {+ echo "Policy seeding failed - a rejected policy leaves enrollment broken (nodes get 403 at /register)."+ kill $PF_PID+ exit 1+ }kill $PF_PID