18 Commits

Author SHA1 Message Date
Edoardo Spadolini 02298d394a Add a check against reentrancy in lib/cache tests (#67973) 2026-06-29 17:44:12 +00:00
Edoardo Spadolini 394ff188cb Avoid reentrancy in Cache.GetAccessListOwners (#67963)
* Shrink the interface needed by GetMembersFor

* Avoid reentrancy in Cache.GetAccessListOwners

* Try deadlocking in TestGetAccessListOwners

* Use a struct for accessListMembersListerStore

Co-authored-by: Marek Smoliński <marek@goteleport.com>

---------

Co-authored-by: Marek Smoliński <marek@goteleport.com>
2026-06-22 14:46:01 +00:00
rosstimothy 4f17314a11 Initial migration to the Opaque API (#67279)
* Convert existing non-gogo codegen to the Hybrid API

Contributes to https://github.com/gravitational/teleport/issues/66776.

All existing protos explicitly set to API_OPEN have been change to
API_HBYRID. The new codegen was performed via make grpc. There are no
other functional changes to the code to start consuming the Hybrid API
those will come later. The intent is to get all Hybrid codegen in and
backported to ease the transition.

* Initial migration to the Opaque API

Contributes to https://github.com/gravitational/teleport/issues/66776.

All of the changes here are mechanical conversions generated from
`open2opaque rewrite -levels=green ./...`. There will be a follow up
to this in teleport.e which does the same. Once all changes have been
merged the process will be repeated with -levels=yellow followed by
-levels=red.


See https://protobuf.dev/reference/go/opaque-migration/ for more
details.
2026-06-05 14:52:58 +00:00
nixpig 4726a384c0 Update suggested reviewers to include owners of JIT access lists (#64046)
* Update suggested reviewers to include owners of JIT access lists

* Replace undefined with empty array so data serialises without error

* Use consistent proto naming

Co-authored-by: Marek Smoliński <marek@goteleport.com>

* Remove unused req return value from reviewer list function

* Remove suggested reviewers logic from OSS API

* Tests and tidy up

* Refactoring

* wip

* Remove changes addresses in a separate PR

* Remove proto for reviewers

* Add godoc

---------

Co-authored-by: Marek Smoliński <marek@goteleport.com>
2026-03-06 10:44:35 +00:00
Nic Klaassen c336af79c7 fix: tighten access list review range bounds (#63312) 2026-01-30 17:05:50 +00:00
Pawel Kopiczko 10f3ae389a Cache: Fix listing access_list_members for lists with prefix names (#60559) 2025-10-24 15:42:10 +00:00
rosstimothy d012ba8148 Stop using the sqlite backend in tests (#60153)
Swaps the lite backend for the memory backend in all tests that
can allow it. This could lead to reducing test times and is a
workaround for https://github.com/gravitational/teleport/issues/60127
- which is being addressed seperately.

The _only_ tests which have a hard requirement to use the sqlite backend
those which create a teleport process via service.NewTeleport. These
processes validate the the backend type is _not_ memory as that's not
a valid backend for a real Teleport process.
2025-10-10 20:13:25 +00:00
Luke Okraszewski 24d3a3447d [cache] update test harness to support paginated APIs by default (#58927)
Fixes WindowsDesktop list not respecting pagination limits.
2025-09-17 14:31:32 +00:00
Michael 4e19f75052 Add CreateAccessListNextKey and title sort to AccessLists cache (#58716) 2025-09-15 16:28:33 +00:00
Tiago Silva 64ae08da62 Refactor test assertions to use consistent variable naming in require.EventuallyWithT calls (#58997)
* Refactor test assertions to use consistent variable naming in `require.EventuallyWithT` calls

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>

* handle code review comment

* handle code review comment

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
2025-09-15 15:19:53 +00:00
Michael 5f2abea090 Add ListAccessListsV2 to support sorting and searching (#58323)
This PR adds a new API to access lists service/cache that will allow us
to sort by name and auditNextDate as well as filter by a search term
2025-09-02 19:54:13 +00:00
Marek Smoliński 2641c411e0 Fix cache ListAllAccessListMembers spin loop (#58580) 2025-09-02 17:14:10 +00:00
Marek Smoliński d23f88a3dd Align Cache Pagination Tests (#56791) 2025-07-18 10:47:52 +00:00
Marek Smoliński bceb643d0d Add Cache resources pagination tests (#56547) 2025-07-09 18:30:08 +00:00
Zac Bergquist 6dbcf9b5d3 Modernize lib/backend, lib/cache, lib/cloud, and integration (#55921) 2025-06-21 15:05:11 +00:00
rosstimothy c91899a2dd Limit ListAccessReviews to the associated AccessList (#55489) 2025-06-16 15:31:27 +00:00
Maxim fc541ba80f fix: Correctly scope member counts per Access List (#55369) 2025-06-10 18:02:35 +00:00
rosstimothy c0eb83474b Convert access lists to new in memory cache collection (#54389)
Moves access lists, access list members and access list reviews
to the new cache collection scheme that was introduced in #52210.
No additional functionality changes have been made here. This should
be a purely mechanical translation to the new internal caching machinery.
2025-05-05 19:07:57 +00:00