AWS, GCP: Credential refresh handlers reject multiple credentials of the same storage type

Abierto
#18,825 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@VenkataKarthikP ya está trabajando en esto.

Desde el 9/11/2026.

  • #18848 de @VenkataKarthikP — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
aws, gcp, java
Área
backend, cloud

Línea de trabajo

Start with VendedCredentialsProvider.refreshCredential() and OAuth2RefreshCredentialsHandler.refreshAccessToken(), then inspect the existing multipleS3Credentials and multipleGcsCredentials tests. Trace how each client selects credentials for its storage prefix and check that credentials for unrelated paths are excluded. Done when both providers refresh successfully with multiple same-type credentials while preserving prefix-specific selection; run the related tests.

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

Descripción

The REST spec allows multiple storage credentials with different prefixes, but VendedCredentialsProvider.refreshCredential() and OAuth2RefreshCredentialsHandler.refreshAccessToken() require exactly one credential of their storage type. A response with two S3 credentials or two GCS credentials fails with only one S3 credential should exist or only one GCS credential should exist.

This limitation is present at 778d103c0fa802be5e85e4cb2e4e4b4bcd8ac891, the base of #17912. The existing multipleS3Credentials and multipleGcsCredentials tests assert these failures. I also reproduced the AWS failure through AwsClientProperties.credentialsProvider() with a mock endpoint returning two prefix-scoped credentials and initial credentials inside the refresh window.

Refresh should preserve the storage client's prefix and select the applicable credential, without using credentials for an unrelated path. The FileIO-level refresh already retrieves a list; the limitation is in the individual client credential providers.

Found while reviewing #17912. That PR preserves existing provider selection while fixing endpoint resolution; this issue tracks the existing multi-prefix refresh limitation separately. It is distinct from #18817, #18818, and #18819.

Lenguaje dominante
Java
Estrellas
9.4k
Forks
3.7k
Merge medio
2 d 15 h
PR fusionados (30 d)
169

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 apache/iceberg

Todos los issues de apache/iceberg

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.