Since the United States and Israel launched their war against Iran, most international law experts appear to be speaking with one voice on the legality of the attacks.
Legal experts have said the attacks violated Article 2(4) of the UN Charter, which prohibits the use of force against states. The US and Israel have not produced any evidence that Iran posed an imminent threat to either of them. And neither has brought the matter to the UN Security Council. As such, this was a clear breach of international law.
But even though most scholars agree the strikes were unlawful, the public and political debate has shifted somewhere else entirely.