What is surprising is the agreement in out in the open, not that they might cooperate covertly.
True, but with Israel selling weapons and military equipment to Morocco, the arrangement would be impossible to hide from the Moroccan military.