In his new book, former defense secretary Robert Gates says both President Obama and Hillary Clinton have admitted -- to varying degrees -- that they opposed the 2007 surge in Iraq because they faced each other in the 2008 Democratic presidential primary.
According to Bob Woodward's review, Gates writes the following:
“Hillary told the president that her opposition to the  surge in Iraq had been political because she was facing him in the Iowa primary. ... The president conceded vaguely that opposition to the Iraq surge had been political. To hear the two of them making these admissions, and in front of me, was as surprising as it was dismaying.”