Reverse Proxy IP Lists
SiteMinder, being a gateway approached SSO solution, expects the backend HTTP access point of the web sites it protests to be firewall restricted, otherwise the SiteMinder injected HTTP headers can be easily spoofed. However, the restriction cannot be easily implemented on PAAS such as OpenShift. To mitigate, two configuration objects are introduced to create an application-level firewall, both are arrays of ip addresses in the format of dot-decimal or CIDR notation
- siteMinderReverseProxyIps contains a list of ips or ranges of SiteMinder Web Agents. If set, then the SiteMinder HTTP headers are trusted only if the request is routed from the listed nodes.
- trustedReverseProxyIps contains a list of ips or ranges of trusted reverse proxies. If NotifyBC is placed behind SiteMinder Web Agents, then trusted reverse proxies should include only those between SiteMinder Web Agents and NotifyBC application. When running on OpenShift, this is usually the OpenShift router. Express.js trust proxy is set to this config object.
By default trustedReverseProxyIps is empty and siteMinderReverseProxyIps contains only localhost as defined in src/config.ts
module.exports = {
siteMinderReverseProxyIps: ['127.0.0.1'],
};
To modify, add following objects to file /src/config.local.js
module.exports = {
siteMinderReverseProxyIps: ['130.32.12.0'],
trustedReverseProxyIps: ['172.17.0.0/16'],
};
The rule to determine if the incoming request is authenticated by SiteMinder is
- obtain the real client ip address by filtering out trusted proxy ips according to Express behind proxies
- if the real client ip is contained in siteMinderReverseProxyIps, then the request is from SiteMinder, and its SiteMinder headers are trusted; otherwise, the request is considered as directly from internet, and its SiteMinder headers are ignored.