[management] Add agent_network_only account setting#6736
Merged
Conversation
2 tasks
Contributor
📝 WalkthroughWalkthroughAdds the ChangesAgent Network account setting
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
|
Release artifactsBuilt for PR head
GHCR images (amd64)
This comment is updated by the Release workflow. Artifact links expire according to the workflow retention policy. |
braginini
approved these changes
Jul 12, 2026
This was referenced Jul 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Describe your changes
Adds a per-account
agent_network_onlysetting that lets the dashboard limit atenant's view to the Agent Network surface. The mark is applied by the dashboard
after signup (mirroring the AWS Marketplace enrich flow) and can be disabled
later by the user; the backend simply stores and returns it as a standard
account setting.
types.Settings.AgentNetworkOnly(+Settings.Copy)agent_network_onlyin the OpenAPI spec,types.gen.goregeneratedPUT/GET /accounts)GetAccountloader updated to select and scan the new column — withoutthis the field silently reads back
falsein production (the gorm write pathpersists it, but the hand-written pgx read path lists columns explicitly)
cases toggling the setting
Defaults to
falsefor new accounts; the value never reaches the peer client(dashboard-only view setting, so it is not added to the sync conversion).
Issue ticket number and link
Stack
Checklist
Documentation
Select exactly one:
The account setting's raw API field is generated automatically into the API
reference. The user-facing behavior it drives (the Agent Network focused view
and its opt-out) is documented in the docs PR below.
Docs PR URL (required if "docs added" is checked)
Paste the PR link from https://github.com/netbirdio/docs here:
netbirdio/docs#848