Skip to content

Document Agent Network Admin and Usage Viewer roles - #927

Open
mlsmaycon wants to merge 3 commits into
mainfrom
agent-network-roles
Open

Document Agent Network Admin and Usage Viewer roles#927
mlsmaycon wants to merge 3 commits into
mainfrom
agent-network-roles

Conversation

@mlsmaycon

@mlsmaycon mlsmaycon commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Delegating Agent Network access today requires full account admin, and the roles page does not cover the new delegated roles shipping in netbirdio/netbird#7221.

This documents the two new roles and the self-service surface:

  • Agent Network Admin: full management of the Agent Network area with read-only peers and team, nothing else in the account.
  • Usage Viewer: the usage and cost overview, plus read-only access to the resources its filters resolve against (users, groups, peers, the provider list) — for cost stakeholders.
  • The permission matrix gains an Agent Network row, and the User section notes the caller-scoped me/setup endpoint plus the self-scoped usage and access-log reads available to every role (the regular endpoints answer with the caller's own data when the role has no account-wide access).
  • The Agent Network overview gains an access-roles section linking to the matrix.
  • Wide documentation tables scroll horizontally instead of clipping under the side menu.

Companion to the management change in netbirdio/netbird#7221 and the dashboard change in netbirdio/dashboard#764.


Summary by CodeRabbit

Documentation

  • Added documentation for the Agent Network Admin and Usage Viewer roles.
  • Expanded role permissions tables to cover access across account areas, including Agent Network.
  • Clarified access to personal usage, requests, and permitted connection details for Usage Viewer and User roles.

Usability Improvements

  • Documentation tables now support horizontal scrolling on smaller screens for easier viewing.

Add the two delegated Agent Network roles to the user-roles matrix and
role descriptions, note the self-service endpoints every user can read,
and add an access-roles section to the Agent Network overview.
@vercel

vercel Bot commented Aug 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Aug 18, 2026 5:24pm

Request Review

@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: cac386ac-8f12-49fe-8bf5-37d1e9308834

📥 Commits

Reviewing files that changed from the base of the PR and between bdc4cd4 and 2dde8b8.

📒 Files selected for processing (3)
  • src/components/mdx.jsx
  • src/pages/agent-network/index.mdx
  • src/pages/manage/team/user-roles.mdx
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/pages/agent-network/index.mdx
  • src/pages/manage/team/user-roles.mdx

Included review availability: Your plan includes up to 1 review per rolling hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The change adds horizontally scrollable MDX tables and documents the Agent Network Admin and Usage Viewer roles. It updates the permissions matrix, role descriptions, Agent Network access notes, and self-service access details.

Changes

Agent Network roles and table rendering

Layer / File(s) Summary
Scrollable table rendering
src/components/mdx.jsx
The exported table component wraps rendered tables in a horizontally scrollable container.
Role matrix and access rules
src/pages/manage/team/user-roles.mdx
The page now documents eight roles, adds Agent Network permissions, and defines access restrictions for Agent Network Admin, Usage Viewer, and User.
Agent Network access documentation
src/pages/agent-network/index.mdx
The page describes the two roles and self-service access to personal consumption and authorized connection details.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 2dde8

This documentation-only change adds descriptions and navigation for delegated Agent Network roles without introducing an actionable merge-blocking risk; it is merge-ready after normal checks and review.

Poem

A rabbit checks the roles today,
While wide tables scroll away.
Admin powers, viewer sight,
Personal usage kept in flight,
Clear access rules now lead the way.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main change: documenting the Agent Network Admin and Usage Viewer roles.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent-network-roles

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

The expanded permissions matrix on the user-roles page is wider than the
content column, and markdown tables had no overflow container, so the
extra columns rendered underneath the sticky "On this page" menu. Map
the MDX table element to a wrapper that scrolls horizontally within the
column, fixing every wide table site-wide.
The dedicated me/consumption endpoint is gone: every user's own usage and
requests come through the regular usage and access-log endpoints, which
answer with the caller's own data when the role has no account-wide
access. usage_viewer now carries read-only access to the resources the
usage filters resolve against (users, groups, peers, provider list).
@linear-code

linear-code Bot commented Aug 19, 2026

Copy link
Copy Markdown

NET-1399

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant