aerokube / ggr

A lightweight load balancer used to create big Selenium clusters
https://aerokube.com/ggr/latest/
Apache License 2.0
314 stars 74 forks source link

REST API for GGR #149

Closed rab2215 closed 6 years ago

rab2215 commented 6 years ago

Are there any other REST endpoints other than /ping for getting information from GGR? Since GGR does not have a UI, it would be nice to have some way of getting info on the state of GGR's current configuration in regards to browsers available, quotas, etc.

vania-pooh commented 6 years ago

1) Ggr has no state - thus no API. :) What is the purpose of getting browser information from the outside? All this information is available in quota files. 2) However in addition to Selenium API Ggr has host API, video proxying API and VNC proxying API. Further reading:

rab2215 commented 6 years ago

True, the quota files contain all the information I'm looking for but a "user" wouldn't necessarily have access to this file to know whats available. I was looking to create a UI component that would show the current configuration.

vania-pooh commented 6 years ago

Which information do you need then in such API?

rab2215 commented 6 years ago

It would be awesome if all the content of the quota.xml could be returned for each user, but at a minimum at least the browser name, version, and host IP address for each user.

vania-pooh commented 6 years ago

@rab2215 how about authentication? Returning this data without auth seems to reveal internal cluster architecture.

rab2215 commented 6 years ago

Good point, in that case it would likely be best to only return the specific user configuration for an authenticated user and unauthenticated users would get the configuration for guest-enabled quotas (which I admit I haven't used much so I'm not sure of all the functionality here).

vania-pooh commented 6 years ago

@aandryashin thoughts?