https://github.com/osquery/osquery logo
#fleet
Title
# fleet
f

frederick ferby

03/01/2023, 3:53 PM
Hey yall. Is there a way to set an limit to the number of hosts that can connect to fleetdm?
z

zwass

03/01/2023, 5:26 PM
Interesting question... Are you looking to limit the number of hosts that can enroll? The number of hosts that can be online at one time? Can you tell us more about your scenario and motivations?
f

frederick ferby

03/01/2023, 5:35 PM
We have staging environment setup using the the kubernetes and fleetdm charts. I wan to our IT teams who are interested to learn by creating qurieries/admining etc. However, Just wanted see if there was a way to limit the amount of hosts that can be added.
z

zwass

03/01/2023, 5:36 PM
Not directly. You could however change the enroll secret once you've got the number of hosts you want -- then nothing new can enroll unless it has the enroll secret.
f

frederick ferby

03/01/2023, 5:41 PM
I am guessing maintainers cam’t really grab enrollment keys. Maybe thats method I can use
z

zwass

03/01/2023, 5:41 PM
IIRC maintainers can, but observers cannot.
f

frederick ferby

03/01/2023, 5:45 PM
Thanks alot. ill probably just take the route. and then let the team know to only enroll test machines