Remove IMDS v1 Fallback from oci-java-sdk

Offen
#647 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
java

Rechercherichtung

Beginnen Sie mit bmc-common/src/main/java/com/oracle/bmc/auth/AbstractFederationClientAuthenticationDetailsProviderBuilder.java im Bereich der verlinkten Retry-Logik. Überprüfen Sie, wie IMDS-v2-Anfragen und -Fehler behandelt werden, und verifizieren Sie anschließend, dass kein v1-Fallback vorhanden ist und das dokumentierte Verhalten mit acht Versuchen, exponentiellem Backoff und Jitter abgedeckt ist; der Payload nennt keine Tests.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.
Vorherrschende Sprache
Java
Sterne
243
Forks
171
Ø Merge
5 Min.
Gemergte PRs (30 T.)
4

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus oracle/oci-java-sdk

Alle Issues in oracle/oci-java-sdk

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.