Ukraine's parliament has passed a measure that would allow foreigners to serve in its armed forces.

The legislation, which cleared a final reading on Tuesday, comes as tensions persist with Russia over the separatist insurgency in eastern Ukraine. Ukraine and Western governments allege Russia is sending troops and equipment to back the separatists and Ukraine has adopted a national security doctrine declaring Russia as its foe.

Russia in turn claims Ukraine's Western leanings and interest in joining NATO threaten Russia's security. Allowing foreigners into the Ukrainian military is likely to reinforce Moscow's concerns.

The measure still needs the president's signature in order to become law.