mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-01 04:21:29 +02:00
The agent-config answer withheld the endpoint from callers no policy covers, so "account not set up" and "you have no access" were the same shape. The dashboard shows every user the same connection config, so Configured now tracks the account: once it has an endpoint every member gets it, with an empty providers list for those no policy covers. That list stays caller-scoped, and the endpoint authorizes nothing on its own since the gateway still refuses every request no policy permits. Rename the files and symbols the endpoint outgrew when it became /agent-network/agent-config: me_handler.go, setup.go and types/setup.go become agent_config.go, GetSetupForUser becomes GetAgentConfigForUser, and the AgentNetworkMeSetup schema becomes AgentNetworkAgentConfig. Regenerating types.gen.go from the untouched spec first reproduced it byte for byte, so the generated diff is only these renames.