I take a couple of bottles on-board, purchased gate-side at a shop or, in the case of LHR at the gate from the machines that seem to be at most gates (when the machines are actually working). No problems drinking coffee or tea on-board. My airline regularly checks the potable water supply and adds a purification chemical to ensure no bacterial growth (can't remember what it's called).