Scope checks reject cluster-scoped resources from namespaced XRs
Previously, a function could set metadata.namespace on a composed cluster-scoped resource, bypassing the scope check.
Show release-note lines
* [release-2.3] fix(composite): check scope of every resource composed by a namespaced XR by @lsviben in https://github.com/crossplane/crossplane/pull/8052 * **Namespaced XRs can no longer compose cluster scoped resources:** A function could make a namespaced XR compose a cluster scoped resource by setting `metadata.namespace` on it, because the scope check only ran on composed resources without a namespace. Crossplane now checks the scope of every resource a namespaced XR composes, based on its kind. Backported in #8052, originally fixed in #8050.github.com/crossplane/crossplane/releases/tag/v2.3.8