a permit much like you'd find for a resturant:

1. approved commercial kitchen

2. training such as serv-safe

3. permit from city/county

4. insurance

Don't be stupid and try to copy another food product as the regular manufacturers get really testy and will sue you into bankruptcy!