Files
teleport/lib/modules
Trent Clarke 736c86f88f Update AccessList Entitlement Enforcement to handle infinite limit (#44318)
* Update AccessList Entitlement Enforcement to handle infinite limit

The AccessList service was not correctly handling a zero-value limit
(i.e. an infinite limit) when checking to see if creating an
AccessList would breach the cluster Access List entitlement.

This patch:
 * Adds a centralized implementation of a limit check, so that we
   only have to get the calculation right once.
 * Tests for same
 * Updates the AccessList limit check to use the new limit check
 * Adds table-driven tests to exercise the limit check in various
   scenarios, replacing several almost identical tests.

* Review feedback
2024-07-18 06:40:46 +00:00
..