Skip to content

Add paginated ListAuthServers/ListProxies#61702

Merged
kiosion merged 2 commits intomasterfrom
maxim/add-authservers-proxies-list-fns
Dec 12, 2025
Merged

Add paginated ListAuthServers/ListProxies#61702
kiosion merged 2 commits intomasterfrom
maxim/add-authservers-proxies-list-fns

Conversation

@kiosion
Copy link
Copy Markdown
Contributor

@kiosion kiosion commented Nov 22, 2025

  • Add new paginated replacements for GetAuthServers/GetProxies
  • Deprecate non-paginated funcs
  • Implement replacements, update tests

Required for https://github.com/gravitational/teleport.e/pull/7709

@kiosion kiosion added do-not-merge no-changelog Indicates that a PR does not require a changelog entry labels Nov 22, 2025
@kiosion kiosion force-pushed the maxim/add-authservers-proxies-list-fns branch from e7a6931 to 2c69755 Compare November 25, 2025 17:51
@kiosion kiosion force-pushed the maxim/add-authservers-proxies-list-fns branch from 2c69755 to 5668486 Compare November 25, 2025 18:12
@kiosion kiosion marked this pull request as ready for review November 25, 2025 18:26
@kiosion kiosion requested a review from rosstimothy November 25, 2025 18:55
@kiosion kiosion force-pushed the maxim/add-authservers-proxies-list-fns branch 2 times, most recently from 1ec8c1d to 9f97bc2 Compare November 25, 2025 20:12
Comment thread api/client/client.go
Comment thread api/proto/teleport/legacy/client/proto/authservice.proto Outdated
Comment thread lib/auth/auth_with_roles.go Outdated
Comment thread lib/auth/authclient/api.go Outdated
Comment thread lib/services/local/presence.go Outdated
Comment thread lib/services/presence.go
@marcoandredinis marcoandredinis removed their request for review November 26, 2025 17:45
@kiosion kiosion force-pushed the maxim/add-authservers-proxies-list-fns branch 5 times, most recently from e3bad8f to b00e1fc Compare November 26, 2025 22:32
Comment thread integration/ec2_test.go Outdated
Comment thread lib/auth/authclient/http_client.go Outdated
Comment thread lib/auth/auth.go Outdated
Comment thread lib/auth/usertoken.go Outdated
Comment thread lib/auth/usertoken.go
Comment thread lib/auth/usertoken.go Outdated
Comment thread lib/cache/auth_server.go Outdated
Comment thread lib/cache/proxy_server.go Outdated
@kiosion kiosion force-pushed the maxim/add-authservers-proxies-list-fns branch from b00e1fc to a3ecc1a Compare December 1, 2025 18:43
Comment thread api/proto/teleport/legacy/client/proto/authservice.proto Outdated
Comment thread lib/auth/authclient/http_client.go Outdated
Comment thread lib/auth/auth.go Outdated
Comment thread lib/auth/usertoken.go Outdated
Comment on lines +103 to 105
//
// Deprecated: Prefer paginated variant [ListProxies].
GetProxies() ([]types.Server, error)
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.

Can we remove this from the interface? It doesn't look like we call it anymore.

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.

it's used in fetchProxyPublicAddr as the fallback

Comment thread lib/srv/app/watcher.go Outdated
Comment thread lib/utils/oidc/issuer.go
Comment on lines 34 to 37
// GetProxies returns a list of registered proxies.
//
// Deprecated: Prefer paginated variant [ListProxies].
GetProxies() ([]types.Server, error)
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.

Can we remove this? It doesn't looked used anymore.

Comment thread tool/tctl/common/auth_rotate_command.go Outdated
Comment thread tool/tctl/common/bots_command.go Outdated
Comment on lines 198 to 199
// Deprecated: Prefer paginated variant [ListProxies].
GetProxies() ([]types.Server, error)
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.

Can we remove this if it is no longer used?

Comment thread tool/tctl/common/bots_command.go Outdated
@kiosion kiosion force-pushed the maxim/add-authservers-proxies-list-fns branch 2 times, most recently from bd657e3 to eab7173 Compare December 10, 2025 22:24
@kiosion kiosion requested a review from rosstimothy December 10, 2025 22:24
Copy link
Copy Markdown
Contributor

@espadolini espadolini left a comment

Choose a reason for hiding this comment

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

+1 for trying to delete the legacy methods from interfaces rather than marking them as deprecated as @rosstimothy mentioned

Comment thread api/proto/teleport/presence/v1/service.proto Outdated
Comment thread lib/auth/apiserver.go Outdated
Comment thread lib/auth/usertoken.go Outdated
Comment thread lib/auth/authclient/httpfallback.go
Comment thread lib/auth/apiserver_test.go Outdated
Comment thread lib/auth/auth_with_roles.go
Comment thread lib/auth/auth_with_roles.go
@kiosion kiosion force-pushed the maxim/add-authservers-proxies-list-fns branch from 170a905 to f6651da Compare December 11, 2025 21:16
- Add `ListAuthServers` and `ListProxyServers` RPCs to PresenceService
- Implement new funcs
- Mark `GetAuthServers`/`GetProxies` deprecated
- Replace existing usages
@kiosion kiosion force-pushed the maxim/add-authservers-proxies-list-fns branch from f6651da to 1e83e41 Compare December 12, 2025 20:22
@kiosion kiosion requested a review from rosstimothy December 12, 2025 20:24
Copy link
Copy Markdown
Contributor

@rosstimothy rosstimothy left a comment

Choose a reason for hiding this comment

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

Thanks for seeing this through @kiosion!

@kiosion kiosion added this pull request to the merge queue Dec 12, 2025
Merged via the queue into master with commit 4ebec26 Dec 12, 2025
46 checks passed
@kiosion kiosion deleted the maxim/add-authservers-proxies-list-fns branch December 12, 2025 22:03
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@kiosion See the table below for backport results.

Branch Result
branch/v18 Failed

21KennethTran pushed a commit that referenced this pull request Jan 6, 2026
* types: Add `ListAuthServers`/`ListProxyServers` to PresenceService

- Add `ListAuthServers` and `ListProxyServers` RPCs to PresenceService

* feat: Implement `ListAuthServers`/`ListProxyServers`

- Implement new funcs
- Mark `GetAuthServers`/`GetProxies` deprecated
- Replace existing usages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/branch/v18 no-changelog Indicates that a PR does not require a changelog entry size/md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants