It's not as sketchy as it used to be, due to some rules changes in the last few years.
As a one-person S-Corp, you run payroll and you are your own employee. You can set your salary, and you can also pay yourself in distributions. Salary is subject to FICA, distributions are not. Both are subject to income tax.
When you pay yourself salary, your "personal" side pays its half of the FICA, and your "business" side pays the other. This is the same way a regular employer/employee relationship works (and why it "feels" like you are paying double FICA when you're self-employed; it's because you are both the employee and the employer).
It used to be that you could severely limit your salary, and pay yourself the bulk of your income through distributions, and lower your tax bill by having lower FICA costs.
These days, it is your responsibility to pay yourself a "reasonable salary", as in something you could reasonably defend during an audit. Once you have paid yourself a reasonable salary (which is subject to FICA), you can give yourself more money (revenue permitting :) ) in distributions.
Also, if your self-employment is part-time, you can pro-rate your salary to reflect that part-time employment.
It's also worth noting that as your business gets successful and long-term, you may want to increase your salary and pay into FICA so you can get a better social security payment when you retire. But still, if you analyze it in a spreadsheet, you'll see that social security, as an annuity, is a "bad deal" when you're paying both sides. (It's a very good deal as a W-2 employee with someone else paying the employer half, though.)