Legal is what the government of a given country says is legal. My understanding is that New Zealand for example allows returning travelers but they have to stay in designated quarantine hotels and those are basically unavailable.
I meant the scenario where a Canadian resident but non-citizen wants to return to his country, but he's not vaccinated. Is the Canadian government going to prevent him from boarding a plane?