Nagato, Konan, Itachi, Kisame, Orochimaru, and Im pretty sure Sasori (Since he was one of the OG members) knew all along
Nagato knew him from the beginning and he introduced himself to pain and konan as madara and had few other scenes with them in the manga...