SpinTheMic
Pro

Interview practice question

Gateway checks auth but services trust everything

Backend Engineering · Auth and Security · Experienced

Your API gateway validates tokens, then forwards requests to internal services, which trust a plain X-User-Id header. What is the risk and how do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Anyone reaching services can forge header.
  • Lateral movement after one compromise.
  • Forward signed token/JWT instead.
  • mTLS between gateway and services.
  • Services still authorise objects.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics