SENTRY-266: Implement _HOST substitution in principal (Jarek Jarcec Cecho via Prasad Mujumdar)