Unfortunately, things in paradise aren’t quite perfect. Indonesia is among the most corrupt countries in the world and things don’t seem to be getting drastically better. Government officials on all levels are largely open to bribes and sometimes even require them before they will do any sort of work.
While the average expat will probably never have anything to do with some of these higher level guys, you will see traffic cops and police on a daily basis. Foreigners are often pulled over, often with no official reason for the stop except to make sure things are all in order, of which things are usually not, at least to the police officer’s satisfaction.