Pick the fix
The billing service accepts any request with header X-Service: orders. Fix?
Hint 1 of 1
Can another caller set that header?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Require mTLS or a signed token proving the caller is the orders service, and check its permissions
Correct. Identity is verified, not asserted.
A header is something the caller says about itself; any client can set it. mTLS or a signed token is proof checked with cryptography, and permissions then limit what that identity may do.
Why not the others?
- B Rename the header to something secret. Still just a claim anyone can send.
- C Allow only requests from the private network. Any compromised workload there can call it.
- D Log the header. Logging isn't authentication.