In a medium bowl, whisk together egg yolk, salt, ground mustard, onion powder, garlic powder, and sugar. Add vinegar and whisk until thoroughly combined.
While whisking continuously, add oil slowly, a couple drops a time. Whisk until all the oil has been added and the mayonnaise is thick.