Gauge and topological symmetries in the bulk quantization of gauge theories