Term: benign betrayal
Example: jack knew it was a benign betrayal telling kathy that her boyfriend was cheating on her even although he was a friend
Definition: the act of breaking a confidence or revealing information that was shared with you in private for reasons that are deemed moral or otherwise necessary