Hi Jessgarson,
Only 1 time so far i got the 502 error, I have tried to replicate the scenario where pass the xpac.security.enabled = true. Getting below msg on the browser while launching the elastic:
upstream connect error or disconnect/reset before headers. retried and the latest reset reason: connection termination