Identity-driven microsegmentation and encrypted communication