Use safe navigation when accessing policy reads
requested to merge 458883-nomethoderror-undefined-method-fail_open-for-nil-nilclass-from-security into master
What does this MR do and why?
There's a race condition that can trigger when e.g. a security policy project is unassigned. It doesn't affect the functionality of fallback_behavior
, but it will eat into our error budget.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #458883 (closed)
Edited by Dominic Bauer