Ok, so the obvious choice is telling your SO and NOT the friend. But you must realize that your SO probably thinks you are having an affair. I am incredulous that you would prefer to tell a friend such an intimate secret ahead of your SO, the one who has the right to know. You have to reset your priorities.