Allow subject_key to be set with a function

What does this MR do and why?

Allow subject_key to be set with a function

We need to load the value from the database because it's updated by a database trigger, so it's not visible in the code directly.

References

Fixes gitlab-com/gl-infra/tenant-scale/cells-infrastructure/team#607

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading