In all counties, the sheriff shall have authority to appoint so many special deputies as the sheriff deems proper and for whose official acts the sheriff shall be responsible. Before an appointment shall be made the sheriff or marshal of the district court shall have the right to demand an indemnity bond before any commission as special deputy shall be issued. The appointments may be revoked at the pleasure of the appointing officer, except that all appointments made by a sheriff pursuant to this section shall automatically be revoked at the time that such appointing sheriff’s service as sheriff concludes. Except as provided by Kan. Stat. Ann. § 19-827, and amendments thereto, a special deputy appointed under this section shall not receive any payment, for services rendered, from public funds.