To be track legal it has to have:
Sealed box. Most will allow a plastic box but they perfer metal, and it has to be sealed.
Vent tube to outside.
ON/OFF switch mounted so it can be switched off from the outside. Some get real picky and want it set up so the engine stalls if it is turned.
Mounted secure. This means bolted in, not bungee cords or zip ties.