In ferments, the salt holds back harmful microbes and lets lactic acid bacteria do their work, acidifying the vegetables. It is important that everything stays well submerged: anything exposed to the air spoils.
Technique
Brine

Rana· about brine
Salted water, sometimes with vinegar or spices, in which vegetables and olives are preserved or fermented.

Preserves and ferments