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

Extend resource access request validation checks #48079

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

zmb3
Copy link
Collaborator

@zmb3 zmb3 commented Oct 29, 2024

In #46780 we put a cap on the total number of resources that can be requested in a single request, which helps avoid situations where a large access request can exceed resource size limits and break request listing.

This change expands on the validations by also checking that the sum of the lengths of all of the requested IDs stays below a reasonable limit.

@zmb3 zmb3 requested a review from nklaassen October 29, 2024 15:46
@zmb3 zmb3 added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v15 backport/branch/v16 backport/branch/v17 labels Oct 29, 2024
@github-actions github-actions bot requested review from atburke and ravicious October 29, 2024 15:47
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-48079.d3pp5qlev8mo18.amplifyapp.com

lib/services/access_request_test.go Outdated Show resolved Hide resolved
In #46780 we put a cap on the total number of resources that can
be requested in a single request, which helps avoid situations
where a large access request can exceed resource size limits and
break request listing.

This change expands on the validations by also checking that the sum
of the lengths of all of the requested IDs stays below a reasonable
limit.
@zmb3 zmb3 force-pushed the zmb3/access-request-size-check branch from a590f45 to a722107 Compare October 29, 2024 16:04
@zmb3 zmb3 requested a review from rosstimothy October 30, 2024 14:39
@zmb3 zmb3 added this pull request to the merge queue Oct 30, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 30, 2024
@zmb3 zmb3 added this pull request to the merge queue Oct 30, 2024
Merged via the queue into master with commit 83333c4 Oct 30, 2024
40 checks passed
@zmb3 zmb3 deleted the zmb3/access-request-size-check branch October 30, 2024 15:39
@public-teleport-github-review-bot

@zmb3 See the table below for backport results.

Branch Result
branch/v16 Create PR
branch/v17 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v16 backport/branch/v17 no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants