ambari
ambari copied to clipboard
AMBARI-26137:Add whitelist setting for host access control
What changes were proposed in this pull request?
Add a whitelist configuration setting to control which host will be allowed to access Ambari server.
How was this patch tested?
- Add a comma-separated whitelist setting(security.server.access.whitelist) in ambari.properties configuration file. Supported values are IP、hostname or IP range as following. host1,192.168.0.118-168,192.168.1.5
- Restart Ambari server
- You can try to access Ambari server. The configured hosts can access succeed, and others are forbidden.
@JiaLiangC Can you help review this PR? Thanks. BTW, This feature has been deployed on our product environment. and everything works well until now.