I'm attempting to setup our CDN without weakening our security. So we're using the premium CDN from Azure using Token authentication, which seems to work, we're able to generate an encrypted token which the CDN is able to decrypt.
However, after authentication we want the CDN to rewrite the URL to contain a SAS signature for our blob storage. We've generated a working SAS signature, but we're having trouble setting up the URL rewrite rule.
We query the CDN with a URL with the following format:
endpoint.azureedge.net/blob path?encrypted token
As far as I've understood we'll need to rewrite the URL using the rules to apply the SAS signature for the blob-like so:
endpoint.azureedge.net/blob path?SAS signature
This is probably extremely simple however I'm a bit out of my comfort zone and the CDN rules seem like a black box where I have no idea what's wrong, I just get a 403 error back.
Hope someone can help.
(edit added screenshot of current rule)