javaseleniumselenium-webdriverselenium-gridselenium-grid2

Grid : How to make hub password protected


I am planning to deploy my hub in internet.I want only particular nodes to connect to my hub(Restricting unknown nodes from connecting to my hub).Currently i am doing it in firewall level.Is there any feature in grid level to make hub password protected ie)when nodes connect to a hub they are required to enter a password to connect to hub or any other mechanism through which we can block unknown nodes from connecting to hub

I went through the selenium grid docs couldn't find one

Any help is greatly appreciated


Solution

  • I believe Selenium Grid don't has such option and you may need to write your own method for that.

    Using firewall is the better approach.

    Refer: Can selenium Grid and Node URLs be used with security? and Security in Selenium 2?

    Gridlastic is a good tool that can help you setup firewall with Selenium Grid.

    Selenium Grid can be helpful when you want to authenticate the node before running test on them, eg. authentication on Saucelabs by URL.

    Also Refer: Can Selenium Grid be configured to require authentication?