In general, it is permitted to work for the civil service and in other government posts. If there is possibility of something being haram, one should consult with reliable scholars about how to proceed while striving to uphold balanced scrupulousness. When something is clearly haram, then one must (clearly) avoid it.