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

VmMetadataApiHandler should be only used on VM #4654

Closed
saugereau opened this issue Aug 27, 2024 · 1 comment
Closed

VmMetadataApiHandler should be only used on VM #4654

saugereau opened this issue Aug 27, 2024 · 1 comment
Labels
customer-reported Issue created by a customer needs-investigation

Comments

@saugereau
Copy link

Is your feature request related to a problem? Please describe.
Using Cosmosdb SDK on ContainerApp, I can observe that http://169.254.169.254/metadata/instance?api-version=2020-06-01 is unsuccessfully called with a timeout of 1 min. Because the endpoint doesn't exist on containerapp environment ...it shouldn't be called

Describe the solution you'd like
The metadata instance endpoint should be called only for VM not containerapp, or should be configurable.

@Pilchie
Copy link
Member

Pilchie commented Aug 28, 2024

You can opt out of this call by setting an environment variable: COSMOS_DISABLE_IMDS_ACCESS

See #4568 for details.

@Pilchie Pilchie closed this as completed Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issue created by a customer needs-investigation
Projects
None yet
Development

No branches or pull requests

2 participants