Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 6 commits into from
Apr 19, 2024

Conversation

GavinFrazar
Copy link
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
@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
lib/srv/app/server.go Outdated Show resolved Hide resolved
lib/srv/app/aws/handler_test.go Show resolved Hide resolved
@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
39 checks passed
@GavinFrazar GavinFrazar deleted the gavinfrazar/raise-app-http-request-size-limit branch April 19, 2024 22:49
@public-teleport-github-review-bot

@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants