Hobbes lays out a mixture of natural/God aspects and society negotiated aspects. But I think they all boil down to an ongoing slow shift of what society accepts as a whole.
I think society has opinions and ideas that evolve into ethics and morals that are represented in laws.
It’s not a secret. In this case, rights are curtailed to require vaccines. This is deemed acceptable. If you don’t like it, convince your country mates to change their mind. Or move to a country that feels differently. Or move to the wilderness.