San Francisco was one of the few places in the world to try to address that with it's 'ban the box ' initiative. Crimes must be relevant to disqualify a candidate. https://www.shrm.org/resourcesandtools/legal-and-compliance/...
Every conviction must be declared for a small number of years if asked. After that period it must only be declared if you're applying for a sensitive job (e.g. school teacher) and it resulted in a custodial sentence.