under (one's) hat
In confidence; as a secret; without being disclosed to others. Keep this under your hat for now, but Greg is definitely the one getting the promotion. As long as it stays under his hat, I don't mind giving John some insider tips.
under (one's) hat
As a secret or in confidence: Keep this information under your hat.