"let the cat out of the bag"

To reveal a secret--often inadvertently. The phrase goes back at least as far as 1760.