For years, the contest for the second-most powerful office in city government has been held behind closed doors.