openstack-ansible/inventory
Jonathan Rosser 2ec6709eee Add default rate-limits for API endpoints and Horizon authentication
This patch adds rate limiting for any API call which results in a
4xx response by applying a common stick-table to each HAProxy
backend definition. The stick table can be overridden to allow
customisation of the behaviour.

An additional stick-table is defined for the Horizon endpoint to
enforce a 20-requests-per-10s-per-source-ip sliding window limit
on the horizon /auth path. This provides some protection against
credential stuffing attacks and will generate 429 response codes
to the client and in the HAProxy log. The log could be used by an
alerting system to detect potentially malicious traffic.

The defined rate limit does not include traffic from rfc1918 addresses
and this should be reviewed and overridden as necessary to protect
the external API endpoint.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-haproxy_server/+/848657
Change-Id: I02ed08f9d3d12f7ad2e5dd3a45a699d766933877
2022-07-08 09:43:27 +00:00
..
env.d Implements framework for ironic_neutron_agent and Neutron 'baremetal' plugin 2021-10-07 08:39:15 -05:00
group_vars Add default rate-limits for API endpoints and Horizon authentication 2022-07-08 09:43:27 +00:00
host_vars/localhost Cleanup after service variables merged 2021-06-02 08:17:30 +00:00
dynamic_inventory.py config: Enable OSA_CONFIG_DIR to customize configuration folder 2019-04-03 15:43:41 -04:00
inventory.ini Implements framework for ironic_neutron_agent and Neutron 'baremetal' plugin 2021-10-07 08:39:15 -05:00
localhost Move inventory files to folder in root of repo 2017-12-16 02:34:33 -08:00