zerotier / ZeroTierOne

A Smart Ethernet Switch for Earth
https://zerotier.com
Other
14.55k stars 1.7k forks source link

[Feature Request] Support scopes and network limitations for API tokens #2319

Open arbales opened 4 months ago

arbales commented 4 months ago

It'd be useful for ZeroTier to support multiple scopes, so that services like zeronsd can have read-only access required to run, but not make other changes to one's network(s). Readonly, and per-network access would both be useful places to start.

janjaapbos commented 4 months ago

I have not checked, but I assume API tokens are created for a specific user account. You can set those rights on a user account.

arbales commented 4 months ago

Yes, but they are read-write and apply to all networks. Read-only and network-scoped keys seem like a straightforward ask, and a tablestakes security feature for a product like ZeroTier.