Cross-website redirect
Show the original and final URL, explain the trust decision, and default to No.
PS C:\workspace> azd extension install https://short.example/contoso-tools.zip
Download redirects to a different website: https://downloads.example.net/contoso-tools.zip
? Trust the new destination and continue? (y/N)
Cross-website redirect in non-interactive mode
--no-prompt is not consent. Fail with a specific recovery path.
$ azd extension install https://short.example/contoso-tools.zip --no-prompt
ERROR: Extension redirects to a different website
https://downloads.example.net/contoso-tools.zip
To approve the redirect automatically, run again with --force.
Secure connection downgrade
Show the secure and insecure URLs, require confirmation, and default to No.
PS C:\workspace> azd extension install https://short.example/contoso-tools.zip
Download redirects to an insecure connection: http://downloads.example.net/contoso-tools.zip
? Continue with the insecure download? (y/N)
Explicit cross-website redirect approval
Automation can express the security decision separately from suppressing prompts.
$ azd extension install https://short.example/contoso-tools.zip --force
(!) WARNING: Download redirected to https://downloads.example.net/contoso-tools.zip
<continue the flow>