Unable to login after db upgrade
Make sure that the HBA rules that PostgreSQL is actually using are the ones you expect:
select * 
from pg_hba_file_rules 
where type = 'host' 
order by line_number ;

Check the error column for anything amiss with the file syntax.