Question: can hr tell your boss?
Answer: Most often the answer is nothing, as HR is not actually mandated to keep too many things confidential. That said, you're expected to have expert discretion and judgment. Good HR professionals do their best to limit the exposure of delicate information shared by employees to a need-to-know basis.