Use safe navigation when accessing policy reads
requested to merge 458883-nomethoderror-undefined-method-fail_open-for-nil-nilclass-from-security-2 into master
What does this MR do and why?
Similiar to !151498 (merged):
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.
Kibana: https://log.gprd.gitlab.net/app/r/s/50mvs
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)