This kind od amazes me. At times there will always be things you see in your job that you dont agree with. Morally what you do is leave. If you stay and you then breach confidences then you are on pretty shaky ground.
Leaking it to the Telegraph was more of a political rather than a moral move...