I am not aware that there has been a requirement for swimmers to sign a non-disclosure agreement. There have been examples out of a disciplinary process where all parties with legal representation have agreed to confidentiality, but I'm not aware that there's a broad-stroke NDA in place.
On June 5th, 2023. See this statement in context.