Docs: step-by-step recipe for giving a node a custom role
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- go
- Domain
- documentation
Research direction
Start by checking the getting-started path and the reference pages that cover node enrollment, roles, and policy bindings, then choose a suitable location under guides/. Write a step-by-step recipe for enrolling a node, finding its peer ID, binding a role, and verifying access; explain that policy bindings grant effective access even when the credential lists only mesh:role:node. Done when the recipe includes the commands, expected wait behavior, and successful and forbidden call checks.
Written by the indexing model from the issue text.
Description
agentmesh-node always requests mesh:role:node (RequiredRole: api.RoleNode), and the control plane requires the requested role to match the bootstrap token's role. That's the intended design. But it means a token minted with agentmesh-one token create --role caller can't enroll an agentmesh-node, and nothing in the getting-started path says so.
The supported route works well, but you have to assemble it from several reference pages. A short recipe would help:
- Mint a plain node token and enroll once:
agentmesh-node join <url> --bootstrap-token-path tok --data-dir ./n1. - Start it with
run, without the token flag. - Get the peer ID: the
PeerID:line in the startup log, orGET /debug/mesh-infoon the node's API with its token. (/mesh/identityanswers only over the socket or mTLS.) - Bind the role by peer ID: add
{"role": "caller", "members": ["node:<peer-id>"]}tobindingsandPOST /policieswith the admin token. - No restart is needed. In a single test run, a new grant took effect in about 2 s and a removal in about 50 s.
- Verify with a call that should succeed and one that should get a 403.
Worth stating explicitly in the recipe: the binding grants access through policy evaluation, so a renewed credential can still list only mesh:role:node while the binding authorizes the call. Anyone building a "what can this node do" view needs to read effective grants from the policy, not the roles printed in the credential.
I can write this as a docs PR under guides/ if that's useful.
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 207
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 85
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from google/agentmesh
-
Difficulty 3/5 1-2 days Newbie friendliness 56/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
google/agentmesh#952 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 Half a day Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
Proposal: Out of Band Host Containment and Local Veto Hook for Uncooperative Agents (KillSwitch Integration)Possibly taken @oyesanyf claimed this 15 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
google/agentmesh#879 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
google/agentmesh#844 · 2 comments ·
Maintainers usually reply within 1 day
All issues in google/agentmesh
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
projectcalico/calico#14766 ·
Maintainers usually reply within 1 day
-
forward/review service/container
Difficulty 1/5 Under an hour Newbie friendliness 86/100
hashicorp/terraform-provider-google#30852 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
docs(scheduling): a rolling deploy can open a second launch-gate episode (old replica after new)Open
Difficulty 1/5 Under an hour Newbie friendliness 82/100
SocialGouv/iterion#3826 ·
Maintainers usually reply within 1 day