[management] Add agent_network_only account setting (#6736)

* [management] Add agent_network_only account setting

* [management] Load agent_network_only in pgx account loader and cover persistence
This commit is contained in:
Maycon Santos
2026-07-12 14:46:08 +02:00
committed by GitHub
parent fd94fdb42b
commit aa92ad3fb1
7 changed files with 111 additions and 2 deletions

View File

@@ -375,6 +375,10 @@ components:
description: Enables or disables client metrics push for all peers in the account
type: boolean
example: false
agent_network_only:
description: Limits the dashboard to the Agent Network surface for this account. Set for accounts created via netbird.ai signups and can be disabled later.
type: boolean
example: false
embedded_idp_enabled:
description: Indicates whether the embedded identity provider (Dex) is enabled for this account. This is a read-only field.
type: boolean

View File

@@ -1647,6 +1647,9 @@ type AccountRequest struct {
// AccountSettings defines model for AccountSettings.
type AccountSettings struct {
// AgentNetworkOnly Limits the dashboard to the Agent Network surface for this account. Set for accounts created via netbird.ai signups and can be disabled later.
AgentNetworkOnly *bool `json:"agent_network_only,omitempty"`
// AutoUpdateAlways When true, updates are installed automatically in the background. When false, updates require user interaction from the UI.
AutoUpdateAlways *bool `json:"auto_update_always,omitempty"`