MongoDB_Official
tonykim4's profile
Tony Kim@tonykim4•Sep 01, 2025
40
Post cover image

Solving the Confused Deputy Problem

From evernorthtech.medium.com•Sep 01, 2025•3m read time

The confused deputy problem occurs when a privileged entity can be coerced to perform actions on behalf of less privileged entities. In MongoDB Kafka connector deployments on shared infrastructure, this manifests when the Kafka role can assume roles from multiple AWS accounts, potentially allowing unauthorized cross-account data access. The solution involves enhancing the AwsAssumeRoleCredentialProvider class to use external IDs derived from topic names or database/collection combinations, which must be specified in the trust relationship conditions of assumed roles.

Sort:

tonykim4's user avatar
Tony Kim
@tonykim4
Joined Feb 13. 2025
40

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard