Achieving Resilient Cloud-to-edge Security