Skip to content

[BUG] Vertex AI Google Auth fails in certain circumstances (e.g. AWS multi cloud federation) #484

@eddietokens

Description

@eddietokens

Basic checks

  • I searched existing issues - this hasn't been reported
  • I can reproduce this consistently
  • This is a RubyLLM bug, not my application code

What's broken?

This could arguably be a Google Auth bug, but nevertheless there seems to be a slightly more robust way to apply the auth headers that works with both vertexi google SA access keys and more complex ADC setups that use IAM instance roles / multi cloud federation with AWS. Wonder if this might fix other things too.

How to reproduce

Not easy, can only repro in a AWS federated to Gcloud env .

Expected behavior

Works w/simple ADC credentials (e.g. service accounts w/access keys) and also w/federated auth (more complex usage of Google Auth)

What actually happened

@authorizer.fetch_access_token!['access_token'] does not populate the bearer token - empty.

Environment

AWS + GCP Iam instance role federated ADC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriaged

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions