Remove IMDS v1 Fallback from oci-java-sdk

Abierto
#647 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
java

Línea de trabajo

Comience con bmc-common/src/main/java/com/oracle/bmc/auth/AbstractFederationClientAuthenticationDetailsProviderBuilder.java, alrededor de la lógica de reintento enlazada. Revise cómo se gestionan las solicitudes y los fallos de IMDS v2 y, después, verifique que no exista un fallback a v1 y que esté cubierto el comportamiento documentado de ocho intentos con backoff exponencial y jitter; el payload no menciona ninguna prueba.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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:

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.
Lenguaje dominante
Java
Estrellas
243
Forks
171
Merge medio
5 min
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de oracle/oci-java-sdk

Todos los issues de oracle/oci-java-sdk

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.