Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] https://azconfig.io is a disallowed token scope for cloud shell managed identity #477

Open
jackhorton opened this issue Aug 21, 2024 · 1 comment
Labels
bug Something isn't working Priority 2

Comments

@jackhorton
Copy link

To Reproduce

curl 'http://localhost:50342/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https%3A%2F%2Fazconfig.io%2F' -H Metadata:true

Observed Behavior

{"error":{"code":"AudienceNotSupported","message":"Audience https://azconfig.io/ is not a supported MSI token audience."}}

Expected behavior

An access token is returned.

Is this specific to Cloud Shell?

This is Cloud Shell-specific and looks like limitation #1 stated in https://edyoung.github.io/blog/cloud_shell_auth/, which suggests filing an issue against this repository can get this scope allowlisted.

Interface information

Edge (Stable Channel) on Windows 11

Additional context

https://azconfig.io (and i believe also https://your-config-store-name.azconfig.io) are audiences used by Azure App Configuration: https://learn.microsoft.com/en-us/azure/azure-app-configuration/rest-api-authentication-azure-ad#audience. As it stands now, this issue blocks using the App Configuration REST API or Client SDKs from cloud shell.

@jackhorton jackhorton added bug Something isn't working Triage-needed Triage needed by Cloud Shell team labels Aug 21, 2024
@mbifeld
Copy link
Member

mbifeld commented Sep 10, 2024

Looks like Cloud Shell is missing the specific MSI token needed here. Will be looking at designs that cover this and other MSI token issues. Thank you for reporting this bug.

@mbifeld mbifeld added Priority 2 and removed Triage-needed Triage needed by Cloud Shell team labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority 2
Projects
None yet
Development

No branches or pull requests

2 participants