I’m surprised about the missing security guarantees for cloudId though, which seems to subvert tenant isolation at the site level when integrating external resources - here’s an example payload from useProductContext():
Could you please clarify why cloudId is not “guaranteed to be secure” as well, and provide guidance how to implement tenant isolation per installation context without it?
Sorry for the delayed reply. While cloudId is currently not considered secure and unable to be tampered with, we do consider the installContext property to be secure. The installContext is an identifier which includes the installed product and cloudId within it.
I will update the document with this information and also look into exposing the cloudId or installContext securely in Custom UI as well.