Remove IMDS v1 Fallback from oci-java-sdk
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- java
- Ambito
- authentication, security
Direzione di ricerca
Iniziate da bmc-common/src/main/java/com/oracle/bmc/auth/AbstractFederationClientAuthenticationDetailsProviderBuilder.java, in corrispondenza della logica di retry collegata. Esaminate come vengono gestite le richieste e gli errori di IMDS v2, quindi verificate che il fallback a v1 sia assente e che sia coperto il comportamento documentato con otto tentativi, exponential backoff e jitter; il payload non indica alcun test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Java
- Stelle
- 243
- Fork
- 171
- Merge medio
- 5m
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di oracle/oci-java-sdk
-
NoSuchMethodError in the circuit breaker since 3.103.0 when resilience4j 2.x is on the classpathAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
oracle/oci-java-sdk#803 ·
-
Potential token refresh timeout issue in Versions 2.91.0, 2.93.0, and 2.95.0 (Fixed in 2.97.0)ApertaSDK
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 20/100
oracle/oci-java-sdk#788 ·
-
Identity Domains
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
oracle/oci-java-sdk#764 · 3 commenti ·
-
SDK
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
oracle/oci-java-sdk#726 · 1 commento ·
-
Object Storage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
oracle/oci-java-sdk#723 · 1 reazione ·
Tutte le issue di oracle/oci-java-sdk
Issue simili
-
enhancement infra
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
5.0.x backport bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
spring-cloud/spring-cloud-function#1569 ·
I maintainer di solito rispondono entro 1 giorno
-
Move the spring-cloud-commons version and BOM import from the bus parent to the stream parentForse già presa @olegz l’ha presa oggi. Apertatask
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
spring-cloud/spring-cloud-stream#3355 ·
I maintainer di solito rispondono entro 1 giorno
-
area:cpan-port area:performance bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
fglock/PerlOnJava#2230 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100