If the uchiha massacre was in fact a truly just act why keep secrets about it from the people. The told a lie that was Itachi Uchiha, on his on accord massacred his fellow clansmen for no reason. This is their lie. They needed to hide the fact that it was an order to kill the uchiha clan. They created multiple lies to hid any suspicions on this event, since if people figured out that it the masscre was ordered then they would want to find out everything including why the uchiha revolted. This would expose konoha and the high ups don't want this.
The uchiha clan chose to give hashirama the seat of hokage in order to preserve peace between the two clans that decided on a peace treaty. This is why madara got pissed because his own clan betrayed him in his mind. The events dealing with the uchiha unjust treatment began during the reign of the second hokage. Second hokage made the uchicha the police force aka the dogs of the senju. They were pushed to the far ends ok konoha away from everyone else. Yes, they were mistreated and this caused them to revolt.
Like I said in my previous post Itachi convinced the council not to speak a word about the truth. Itachi wanted to keep the Uchiha name clean Hiruzen being the peace maker he is agreed to it along with the other elders. Danzo however he treatened that he'd expose secrets about the village to other countries if he spoke about it to and if he tried to hurt Sasuke. So based on what i've gathered it was Itachi who wanted to keep the secret NOT Konoha. Sasuke however is going aganist everything because believe it or not Itachi is the one who is trying to keep the Uchiha's good name he wants Sasuke to revive his clan and start a new begining, Sasuke is ruining all of the sacrifices he made for the Uchiha clan due to his own SELFISH desires of wanting to justify a clan that has brought everything on themselves.
Again the only thing I see about them getting mistreated is them being in the back of the village which wasn't that bad tbh. If you think being in the back of the village is bad enough where you want to commit a war on Konoha knowing that you have children and a family to think about than you have some issues?