Constraints on sterile neutrino dark matter