Given this reference text about Gorbachev, tell me whether he was an ally of Yeltsin and Putin.

According to this passage, Gorbachev was neither an ally of Yeltsin nor of Putin. In fact, he was a vocal critic of both of them.