a manual of moral theology for english-speaking countries
p. 460
Uncharitable harm might be done against such a one if he was trying to lead a good life in his new surroundings.
Similarly the sin of detraction is not committed when a sin which is matter of common report in one place is made known in another, if the knowledge of it would be sure to penetrate there before long. It is a disputed point among theologians whether or not sin is committed in such a case if otherwise the knowledge would not penetrate to the place where it is made known. At any rate it is advisable to keep silence about such cases unless there be some good reason for making known the truth. If some one is thinking of employing an unknown servant whom we know to have committed theft from her former mistress in another part of the country, we are justified in making the fact known to the person concerned. It does not follow that we are justified in publishing elsewhere the sin of another which was well known indeed to a particular circle or community, but which was not really public. In such a case the right to one's reputation with the outside world has not been lost.
4. The right to one's reputation is not absolute. We are of course never justified in calumniating another by imputing false charges to him. But for just and sufficient reasons we may make known the secret sin of another. There are cases when this is necessary for the public good or for the protection of the rights of the innocent, and in a conflict of rights the stronger should prevail. Thus when lawfully summoned to give evidence in a court of justice we may witness to secret crime, and generally whenever the defense of ourselves, or of the innocent, or the good of the delinquent himself, or of our hearers, require the truth to be made known.