vaccination credentials

So, are vaccine passports legal? In a word, yes. They are legal if the various governments want them to be.  But are they ethical?