If you dream of knowing a secret, it means you are being asked to do something. During the day, your intuition had probably told you about this secret. However, you are not ready to act on this knowledge. That is why your brain created a dream, to bring the knowledge of the secret out into your dream. This was done in the hope of motivating you to do something about the secret.