What does the Bible say about civil disobedience? Under what circumstances is a Christian allowed to disobey the government? When should Christians rise up and oppose the government?

Links:

When is civil disobedience allowed for a Christian? - https://www.gotquestions.org/civil-disobedience.html

Do Christians have to obey the laws of the land? - https://www.gotquestions.org/laws-land.html

What does it mean that we must obey God rather than men (Acts 5:29)? - https://www.gotquestions.org/we-must-obey-God-rather-than-men.html