azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Dangerous FAQ suggestion on APIM subscription keys

Open garthoid opened this issue 3 years ago • 1 comments

Source Link

The linked section states: "Use subscription key authentication." as a potential solution to the question "How can I secure the connection between the API Management gateway and my backend services? ".

This is partly true, but also dangerous for the following reasons:

  1. Subscription keys are observable in logs so can be easily read by a malicious insider.
  2. There is developer unfettered access across APIM shared instances and so they are also vulnerable to insider attack.
  3. Sent in plaintext and vulnerable to MITM.

Therefore, they should not be used to secure access to backend webservices. What am I missing?


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

garthoid avatar Dec 05 '22 20:12 garthoid

Thank you for your feedback! We will review and update as appropriate.

mike-urnun-msft avatar Dec 06 '22 02:12 mike-urnun-msft

@garthoid - Thanks for the feedback on this article. You are correct that a subscription key by itself is not sufficient, but is often used by customers in conjunction with other mechanisms. See discussion here. I'll submit an update soon to the article to clarify the recommendation.

dlepow avatar Jan 23 '23 22:01 dlepow