psychologist helping a patient overcome emotional challenges brought on by sexual assault

If one is psychologist helping a patient overcome emotional challenges brought on by sexual assault. The sessions have been focused largely on the client adjustment to the protracted legal proceedings.

Recently, the court heard the client case, and the defendant was convicted guilty and given a lengthy prison term. The client confides in the counselor during a counseling session that they lied during the trial.

The client claims the convicted assailant was not the one responsible for the attack with no remorse. The client has made it clear that she does not want the counselor to share this information with anybody else.

Is there a general obligation to keep confidentiality in counseling, and if so, what gives rise to it?

Is there ever a time when it is acceptable to break the duty of confidentiality, given this scenario? In that case, under what circumstances?

Provide legal and ethical examples when breaching the rule of confidentiality might be justified? Thank you.