As long as it is a regular patent agency, it is responsible for confidentiality. If it leaks, it will bear legal responsibility. Please refer to the Regulations on the Administration of Patent Agents.
The staff in China National Intellectual Property Administration also need to keep your application confidential. Only after it is made public, the public instructions are no longer confidential, and other things are still confidential. Refer to the patent law and detailed rules.