Skip to content

increase app access max http request size to 70MiB#40242

Merged
GavinFrazar merged 6 commits intomasterfrom
gavinfrazar/raise-app-http-request-size-limit
Apr 19, 2024
Merged

increase app access max http request size to 70MiB#40242
GavinFrazar merged 6 commits intomasterfrom
gavinfrazar/raise-app-http-request-size-limit

Conversation

@GavinFrazar
Copy link
Copy Markdown
Contributor

@GavinFrazar GavinFrazar commented Apr 5, 2024

changelog: Fixed an issue that prevented uploading a zipfile larger than 10MiB when updating an AWS Lambda function via tsh app access.

AWS limits lambda function zip file upload to 50MiB, but base64 encodes the body so the actual request size maximum is around ~70MiB. Anything bigger than that, they should just use s3 upload.

I decoupled app access request size limiting from other services by pulling the size limit out of our http utils.

@GavinFrazar GavinFrazar added aws Used for AWS Related Issues. application-access labels Apr 5, 2024
@GavinFrazar GavinFrazar force-pushed the gavinfrazar/raise-app-http-request-size-limit branch from 4733590 to 61d6e8b Compare April 5, 2024 04:33
Comment thread lib/srv/db/clickhouse/engine_http.go
@GavinFrazar GavinFrazar force-pushed the gavinfrazar/raise-app-http-request-size-limit branch from 61d6e8b to d726669 Compare April 5, 2024 21:08
@GavinFrazar GavinFrazar changed the title increase app access max http request size to 50MB increase app access max http request size to 70MB Apr 5, 2024
@GavinFrazar GavinFrazar changed the title increase app access max http request size to 70MB increase app access max http request size to 70MiB Apr 5, 2024
@GavinFrazar GavinFrazar force-pushed the gavinfrazar/raise-app-http-request-size-limit branch from d726669 to d1c9e69 Compare April 5, 2024 22:27
@GavinFrazar GavinFrazar marked this pull request as ready for review April 5, 2024 22:33
@github-actions github-actions Bot added database-access Database access related issues and PRs size/sm labels Apr 5, 2024
@github-actions github-actions Bot requested review from greedy52 and smallinsky April 5, 2024 22:33
Comment thread lib/srv/app/server.go Outdated
Comment thread lib/srv/app/aws/handler_test.go
@GavinFrazar GavinFrazar added this pull request to the merge queue Apr 19, 2024
Merged via the queue into master with commit 6e9bc6a Apr 19, 2024
@GavinFrazar GavinFrazar deleted the gavinfrazar/raise-app-http-request-size-limit branch April 19, 2024 22:49
@public-teleport-github-review-bot
Copy link
Copy Markdown

@GavinFrazar See the table below for backport results.

Branch Result
branch/v13 Failed
branch/v14 Create PR
branch/v15 Create PR

GavinFrazar added a commit that referenced this pull request Apr 22, 2024
* increase app access max http request size to 70MB

* move request body limiting into handlers

* shim original behavior with custom reader wrappers

* speed up aws handler tests
GavinFrazar added a commit that referenced this pull request Apr 22, 2024
* increase app access max http request size to 70MB

* move request body limiting into handlers

* shim original behavior with custom reader wrappers

* speed up aws handler tests
github-merge-queue Bot pushed a commit that referenced this pull request Apr 23, 2024
* increase app access max http request size to 70MiB (#40242)

* increase app access max http request size to 70MB

* move request body limiting into handlers

* shim original behavior with custom reader wrappers

* speed up aws handler tests

* fix imports for backport
github-merge-queue Bot pushed a commit that referenced this pull request Apr 23, 2024
* increase app access max http request size to 70MiB (#40242)

* increase app access max http request size to 70MB

* move request body limiting into handlers

* shim original behavior with custom reader wrappers

* speed up aws handler tests

* fix imports for backport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

application-access aws Used for AWS Related Issues. database-access Database access related issues and PRs size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants