Skip to content
This repository was archived by the owner on Jun 30, 2026. It is now read-only.

fix: make google_gax compatible with tesla >= 1.18.3#13328

Closed
grzuy wants to merge 5 commits into
googleapis:mainfrom
mimiquate:tesla-compat
Closed

fix: make google_gax compatible with tesla >= 1.18.3#13328
grzuy wants to merge 5 commits into
googleapis:mainfrom
mimiquate:tesla-compat

Conversation

@grzuy

@grzuy grzuy commented Jun 23, 2026

Copy link
Copy Markdown

fixes #13325

These are the changes needed to get the test to pass after running mix deps.update tesla.

Note that no changes in mix.lock becuase the file is ignored in .gitignore.

)

plug(Tesla.Middleware.DecompressResponse, [])
plug(Tesla.Middleware.DecompressResponse, max_body_size: :infinity)

@grzuy grzuy Jun 23, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tesla's max_body_size option here was made required to fix a "decompression bomb" vulnerability in elixir-tesla/tesla@340f75b.

So, setting it to :infinity is not ideal, decompression vuln still present, but it's the more backwards-compatible way to make google_gax compatible with latest tesla, and just keeps previous tesla behavior.

We can set to :infinity, release 0.4.2, then consider setting it to some safer, limited value for a new release that might be backwards-incompatible.

But at least having a patch version that it's compatible with latest tesla can unblock a lot of downstream projects being blocked from updating tesla.

@codyoss

codyoss commented Jun 30, 2026

Copy link
Copy Markdown
Member

Thank you for your contribution to elixir-google-api. This repository is currently in the process of being archived and as such all existing pull requests are being closed.

@codyoss codyoss closed this Jun 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

google_api_pub_sub / google_gax raises exception when tesla >= 1.18.3

2 participants