We revisit the path integral computation of the Casimir energy between two infinite parallel plates placed in a QED vacuum. We implement perfectly magnetic conductor boundary conditions (as a prelude to the dual superconductor picture of the QCD vacuum) via constraint fields and show how an effective gauge theory can be constructed for the constraint boundary fields, from which the Casimir energy can be simply computed, in perfect agreement with the usual more involved approaches.
Gauge invariance is natural in this framework, as well as the generalization of the result to d dimensions. We also pay attention to the case where the outside of the plates is not the vacuum, but a perfect magnetic (super)conductor, disallowing any dynamics outside the plates.
We find perfect agreement between both setups.