According to UN, is it legal for a country to be under military protection of other country?
Or vice versa, is it illegal to give military protection to other countries?
Why I think it could be illegal because military protections can cause WW3, as countries would be pulled into the wars of other countries.