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

Removal of IMDS v1 Fallback from oci-python-sdk #725

Open
github-anurag opened this issue Dec 13, 2024 · 0 comments
Open

Removal of IMDS v1 Fallback from oci-python-sdk #725

github-anurag opened this issue Dec 13, 2024 · 0 comments

Comments

@github-anurag
Copy link
Member

This issue tracks the removal of fallback to IMDS v1 endpoints and the introduction of retry logic for IMDS v2 in oci-python-sdk

IMDS (Instance Metadata Service) endpoints provide region information and metadata for Instance Principal, Resource Principal, and etc. To ensure the security and functionality of this feature, IMDS v1 fallback will be removed from all SDKs. After this change, if the IMDS v2 endpoint is unavailable, there will be no fallback to IMDS v1. Applications relying on v1 fallback must update accordingly to avoid service disruptions.

Changes Implemented

Remove Fallback to IMDS v1:
The SDK will no longer attempt to access IMDS v1 if IMDS v2 requests fail.

Retry Mechanism for IMDS v2 in Auth:
A retry strategy has been introduced with 8 retry attempts and exponential backoff with Jitter between attempts

This change will take effect starting from the version 2.141.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant