Remove IMDS v1 Fallback from oci-java-sdk
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- java
研究方向
從 bmc-common/src/main/java/com/oracle/bmc/auth/AbstractFederationClientAuthenticationDetailsProviderBuilder.java 中連結的重試邏輯附近開始。檢查 IMDS v2 請求和失敗的處理方式,然後驗證不存在 v1 fallback,並且已涵蓋文件中說明的八次嘗試、帶 jitter 的指數退避行為;payload 未列出任何測試。
由索引模型根據 Issue 內容生成。
描述
This issue tracks the removal of fallback to IMDS v1 endpoints and the introduction of retry logic for IMDS v2 in oci-java-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
- Exponential backoff with Jitter between attempts
- details: {link to retry code}
This change will take effect starting from the version 3.55.0
Impact on Users
Users relying on IMDS v1 or using a version older than 3.55.0 must upgrade to the latest SDK version. Failure to do so may result in disruptions if IMDS v2 encounters issues, as the new versions will no longer fall back to v1.
Action Required
- Review the new retry logic to ensure expected behavior.
- Upgrade to the latest SDK version to remove reliance on IMDS v1.
- Test integrations to confirm seamless operation with the new IMDS v2 behavior.
- 主要語言
- Java
- 星號
- 243
- 分支
- 171
- 平均合併
- 5 分鐘
- 30 天內合併 PR
- 4
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
oracle/oci-java-sdk 的其他 Issue
-
NoSuchMethodError in the circuit breaker since 3.103.0 when resilience4j 2.x is on the classpath未關閉
難度 2/5 1-3 小時 新手友好度 76/100
oracle/oci-java-sdk#803 ·
-
SDK
難度 1/5 1 小時以內 新手友好度 20/100
oracle/oci-java-sdk#788 ·
-
Identity Domains
難度 4/5 3-5 天 新手友好度 25/100
oracle/oci-java-sdk#764 · 3 則留言 ·
-
SDK
難度 3/5 1-2 天 新手友好度 48/100
oracle/oci-java-sdk#726 · 1 則留言 ·
-
Object Storage
難度 4/5 3-5 天 新手友好度 25/100
oracle/oci-java-sdk#723 · 1 個 reaction ·
查看 oracle/oci-java-sdk 的全部 Issue
相似的 Issue
-
enhancement infra
難度 2/5 1-3 小時 新手友好度 67/100
維護者通常 1 天內回覆
-
5.0.x backport bug
難度 1/5 1 小時以內 新手友好度 68/100
spring-cloud/spring-cloud-function#1569 ·
維護者通常 1 天內回覆
-
Move the spring-cloud-commons version and BOM import from the bus parent to the stream parent可能已有人在做 @olegz 今天認領。 未關閉task
難度 2/5 1-3 小時 新手友好度 74/100
spring-cloud/spring-cloud-stream#3355 ·
維護者通常 1 天內回覆
-
area:cpan-port area:performance bug
難度 2/5 1-3 小時 新手友好度 72/100
fglock/PerlOnJava#2230 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100