The Jedi Order didn't learn the truth about Palpatine until it was too late, but what if they were aware of the Death Star's existence?
With the series set to blast through the ... the discovery of the Death Star and whatever intelligence there is, espionage, that leads to the beginning of Rogue One is canonical.