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 回退,并且已覆盖文档中说明的八次尝试、带抖动的指数退避行为;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