The servo horn/output shaft must exit the housing. Options:
Magnetic coupling to transfer motion without shaft penetration.
Sealed rotary feedthrough with O-ring.
https://www.electrodragon.com