mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-04 02:21:02 +08:00
* 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