gocardless / theatre

GoCardless' collection of Kubernetes extensions
MIT License
23 stars 17 forks source link

Fix: Console authorisation rule list length mismatch #235

Closed jackatbancast closed 3 years ago

jackatbancast commented 3 years ago

This change fixes an issue where, in the case of mismatched lengths of commands and match elements we would break out of our rule evaluation loop, returning the default authorisation rule.

To correct this we now continue the named loop instead of breaking out of the named loop. This ensures that all rules get evaluated now, even if some would have had a mismatch in the number of command elements.