Properly check for correct trusted api secret