googleapis/google-cloud-java

[google-auth-library-java] Generating ID token with ImpersonatedCredentials does not support overriding quota project

Open

#12.604 geöffnet am 11. Aug. 2022

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Java (1.082 Forks)batch import
help wantedpriority: p3type: feature request

Repository-Metriken

Stars
 (1.763 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 2T 21h) (145 gemergte PRs in 30 T)

Beschreibung

Is your feature request related to a problem? Please describe. ImpersonatedCredentials accepts a quota project in its builder, and the quota project is properly overridden when generating an access token. However, when generating id token with the idTokenWithAudience() method, it won't perform such override. The impact is that if a service does impersonate many IdTokens on its own quota - it exceeds a default limit of 60k.

Describe the solution you'd like It seems to me that providing the quota project in the additionalFields argument when invoking the IamUtils.getIdToken() method would work

Describe alternatives you've considered There doesn't seem to be good alternatives.

Contributor Guide