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

[vnet] refactor AppProvider for Windows implementation #51216

Open
wants to merge 1 commit into
base: nklaassen/vnet-protos
Choose a base branch
from

Conversation

nklaassen
Copy link
Contributor

@nklaassen nklaassen commented Jan 18, 2025

Part of RFD 195.

This PR refactors the way that the VNet client applications (Connect and tsh vnet) provide teleport clients and other functionality to the VNet library. The goal is to move toward an interface that can be implemented locally OR over gRPC so that the VNet Windows service can interact with the client application from another process.

The current implementation (prior to this change) has both clients implementing an interface called vnet.AppProvider. In this PR, each client now implements vnet.ClientApplication. vnet.localAppProvider now wraps vnet.ClientApplication to implement the now-unexported vnet.appProvider. In a following PR, I will add a vnet.remoteAppProvider that also implements this interface but interacts with the client application over gRPC.

This is basically a rewrite of lib/vnet/app_resolver.go so the diff may not be very useful there, but the new code on its own should be reviewable.

@nklaassen nklaassen added no-changelog Indicates that a PR does not require a changelog entry vnet backport/branch/v17 labels Jan 18, 2025
@nklaassen nklaassen requested a review from ravicious January 18, 2025 02:00
@github-actions github-actions bot requested review from hugoShaka and vapopov January 18, 2025 02:00
@github-actions github-actions bot added size/md tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v17 no-changelog Indicates that a PR does not require a changelog entry size/md tsh tsh - Teleport's command line tool for logging into nodes running Teleport. vnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant