Edge You Can Trust: Security and Resilience for Distributed Infrastructure