This topic has been covered a number of times. Here is a link of how to passivate SS.
https://bssa.org.uk/bssa_articles/passi ... ss-steels/
There is no better source than this that I know of. The classic way is with nitric acid AND chromates which are very hazardous. The easy way is citric acid and you need to use enough . A lemon is not enough and Vitamin C tablets are whimsical .Vitamin C is ascorbic acid, which is actually quite good as an oxygen scavenger but you could never afford enough to apssivate SS.
If there is rust it is highly likely that wire wool has been used which is an absolute No-No. Never use wire wool or another type of stainless steel abrasive as it may induce corrosion. Polishing requires the proper material and 240 grit abrasives are too aggressive. 1200 grit is about as much as you should use, preferebaly even higher. Better use a proper stainless steel polishing kit such you can find here.
https://www.metalpolishingsupplies.co.uk/
240 grit will leave ridges like a ploughed field and could induce corrosion - self passivation is slow and not always successful which is why chemical passivation is better. Buy some citric acid and soak your kegs. You will need AT least 60 g per litre and fill the keg which means a lot of citric acid. You can re-use the citric acid.