Skip to content

Introduce a member count method to access lists.#38650

Merged
mdwn merged 1 commit intomasterfrom
mike.wilson/take-4-access-list-member-count
Feb 28, 2024
Merged

Introduce a member count method to access lists.#38650
mdwn merged 1 commit intomasterfrom
mike.wilson/take-4-access-list-member-count

Conversation

@mdwn
Copy link
Copy Markdown
Contributor

@mdwn mdwn commented Feb 26, 2024

The access list interface now supports counting members without unmarshaling. This method has been added to the generic backend service as well. This will allow for quicker counts when necessary.

Additionally, a status field as per RFD-153 has been added to access lists that will house the new optional member count field.

image

This is on a test cluster with roughly 562 access lists and 20,000+ access list members. This is an improvement from 3.5 seconds per retrieval.

changelog: The Access List page in the UI has been heavily optimized, which should speed things up considerably.

Depends on:

@github-actions
Copy link
Copy Markdown
Contributor

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

@mdwn mdwn requested review from espadolini and tigrato and removed request for fspmarshall and rudream February 26, 2024 22:18
@github-actions
Copy link
Copy Markdown
Contributor

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

Comment thread lib/services/local/generic/generic.go Outdated
Comment thread api/client/accesslist/accesslist.go Outdated
Comment thread api/proto/teleport/accesslist/v1/accesslist.proto Outdated
@mdwn mdwn force-pushed the mike.wilson/take-4-access-list-member-count branch from d2340ad to abbba97 Compare February 27, 2024 19:58
Comment thread api/proto/teleport/accesslist/v1/accesslist.proto Outdated
@mdwn mdwn force-pushed the mike.wilson/take-4-access-list-member-count branch from f02c8a8 to 3cfd71c Compare February 28, 2024 05:36
Comment thread api/types/accesslist/accesslist.go Outdated
Comment thread api/types/accesslist/convert/v1/accesslist.go Outdated
Comment thread api/types/accesslist/convert/v1/accesslist.go Outdated
Comment thread api/types/accesslist/accesslist.go Outdated
Comment thread api/proto/teleport/accesslist/v1/accesslist_service.proto Outdated
Comment thread api/proto/teleport/accesslist/v1/accesslist.proto Outdated
Comment thread lib/services/local/generic/generic.go Outdated
@mdwn mdwn requested a review from espadolini February 28, 2024 15:29
Comment thread integrations/operator/crdgen/handlerequest.go Outdated
Comment thread lib/services/local/generic/generic.go Outdated
Comment thread lib/backend/backend.go Outdated
Copy link
Copy Markdown
Contributor

@tigrato tigrato left a comment

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What does this test tests?
Only if FromProto doesn't return any error? It still doesn't validate if the members count was propagated from and to protons

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This effectively makes sure that the member count being nil doesn't break/panic. The RoundTrip test function tests the propagation.

@mdwn mdwn force-pushed the mike.wilson/take-4-access-list-member-count branch from a9689c1 to 1accdaa Compare February 28, 2024 17:34
@mdwn mdwn enabled auto-merge February 28, 2024 18:17
The access list interface now supports counting members without unmarshaling.
This method has been added to the generic backend service as well. This will
allow for quicker counts when necessary. This method has been added to the
cache.

Additionally, a status field as per RFD-153 has been added to access lists
that will house the new optional member count field.
@mdwn mdwn force-pushed the mike.wilson/take-4-access-list-member-count branch from d075eec to fb1c102 Compare February 28, 2024 18:27
@mdwn mdwn added this pull request to the merge queue Feb 28, 2024
Merged via the queue into master with commit 12c3f50 Feb 28, 2024
@mdwn mdwn deleted the mike.wilson/take-4-access-list-member-count branch February 28, 2024 20:21
@public-teleport-github-review-bot
Copy link
Copy Markdown

@mdwn See the table below for backport results.

Branch Result
branch/v14 Failed
branch/v15 Create PR

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants