Secrecy and democracy are incompatible with each other
The problem is secrecy itself.
Consent isn't valid, unless it's an informed consent. That's what the law says in medical type of consent and other types of consent. And that's how it is with the consent from the people to be governed by their government. This consent needs to be informed, or else it's not valid.
When the government is hiding not just some specific operations but the laws and rules which it follows. Then it's fair to say that the consent from the people to be governed by their government isn't valid anymore.
What we have now is just an illusion of democracy for propaganda and deception purposes. It's like the Soviet Union also claimed to be democratic, because they had regular elections. It was done for propaganda purposes.