Secret Santa rules
Most of what gets called a rule is a local habit. There are four that do real work, and everything else is yours to set, so it helps to know which is which before somebody argues with you about it.
The four that matter
One: everybody buys for exactly one person, and everybody receives exactly one gift. That is what makes it fair and it is the whole structure.
Two: nobody draws themselves. If it happens, the draw is void and you start again rather than quietly swapping two names, because a swap tells at least two people something they should not know.
Three: the same budget applies to everyone. Not similar, the same.
Four: you do not say who you drew. Not before, and ideally not after either, though most groups give up on this one over lunch.
Should the giver stay secret after the gifts are opened?
Both ways work and the group should pick one in advance. Staying anonymous keeps it light and means nobody is weighing up what they got against what they gave. Revealing it turns the opening into the entertainment, which is better for a party and worse for anybody who drew badly.
Decide before the draw, not on the day, because half the room assuming the other answer is how somebody gets embarrassed.
House rules worth adding
A keep-apart rule for couples and people who live together. Partners buying for each other is the commonest complaint about a draw, and it is the easiest to prevent.
A "no joke gifts" line, if your group needs it. Novelty presents are funny to the giver for about four seconds and then belong to somebody else for a year.
A rule about what happens if somebody drops out after the draw. The simplest answer is that the organiser buys for the orphaned person, and the person who dropped out is asked to go through with the gift they already bought.
Rules that are not rules
There is no requirement to spend the full budget, no requirement for the gift to be a surprise in its category, and no requirement to wrap it, although somebody will be annoyed if you do not.
There is also no rule about handmade gifts. Groups argue about this every year. If yours is likely to, say in advance that handmade counts, because the people most likely to make something are the least likely to ask.
Questions people ask
What happens if you draw your own name?
You redraw, all of it. Putting the name back and taking another one works only if nobody has looked at theirs yet, which by then they have. An online draw avoids the problem by never producing that result.
Can two people draw each other in Secret Santa?
Yes, unless you rule it out. A draw where two people happen to buy for each other is valid, it just feels less like an exchange. If you do not want it, set it as a keep-apart pair before drawing.
Is there a rule about spending exactly the budget?
No. The budget is a ceiling that keeps gifts comparable. Spending less is fine and spending more is the thing to avoid, because it quietly obliges everybody else.