fix: setup confd before connecting

This fixes a race condition where the confd files aren't read before the connection finishes and is promoted.