The grammatically correct sentence is: “People who have overcome depression, what’s your secret?”
In this sentence, "people" is plural, so the verb "have" is appropriately used. The second option, “People who has overcome depression, what was your secret?” uses "has," which is incorrect for the plural subject "people." Additionally, “what’s your secret” is more conversational and suits the context better than “what was your