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] run networking stack on Windows #51280

Merged
merged 2 commits into from
Jan 29, 2025
Merged

Conversation

nklaassen
Copy link
Contributor

@nklaassen nklaassen commented Jan 21, 2025

Part of RFD 195.

This PR builds on top of the remote app provider added in #51279 to create the gRPC connection between the windows service and the user process/client application, and use the remote app provider to start the VNet networking stack on Windows.

I'm not yet configuring any routing or DNS resolvers on Windows, so it doesn't actually do anything, but it's one step in the process.

@nklaassen nklaassen force-pushed the nklaassen/remote-appprovider branch from 3d197ac to 7f8b0b3 Compare January 22, 2025 01:54
@nklaassen nklaassen force-pushed the nklaassen/windows-netstack branch from 9503952 to 70fb809 Compare January 22, 2025 01:54
@nklaassen nklaassen added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v17 labels Jan 22, 2025
@nklaassen nklaassen force-pushed the nklaassen/remote-appprovider branch from 7f8b0b3 to 375602d Compare January 22, 2025 19:01
@nklaassen nklaassen force-pushed the nklaassen/windows-netstack branch 3 times, most recently from 7779e33 to a3eda59 Compare January 23, 2025 01:41
@nklaassen nklaassen added the vnet label Jan 23, 2025
@nklaassen nklaassen force-pushed the nklaassen/remote-appprovider branch from 5486ab6 to a80b639 Compare January 23, 2025 23:02
@nklaassen nklaassen force-pushed the nklaassen/windows-netstack branch from a3eda59 to 0c5517f Compare January 23, 2025 23:02
@nklaassen nklaassen force-pushed the nklaassen/remote-appprovider branch from a80b639 to 6086c59 Compare January 24, 2025 01:27
@nklaassen nklaassen force-pushed the nklaassen/windows-netstack branch 6 times, most recently from 6644c87 to e46225e Compare January 25, 2025 01:03
@nklaassen nklaassen marked this pull request as ready for review January 25, 2025 01:22
@github-actions github-actions bot requested review from flyinghermit and zmb3 January 25, 2025 01:23
@ravicious ravicious self-requested a review January 27, 2025 09:45
Copy link
Contributor

@flyinghermit flyinghermit left a comment

Choose a reason for hiding this comment

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

lgtm with comments

Comment on lines +111 to +114
// TODO(nklaassen): implement process authentication.
return nil
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we return trace.NotImplemented for now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is all a work in progress, for now i'd like to leave it as nil so i can actually see the process running and not just immediately exiting with an error

Comment on lines 21 to 34
type OSUpstreamNameserverSource struct{}

func NewOSUpstreamNameserverSource() (*OSUpstreamNameserverSource, error) {
return &OSUpstreamNameserverSource{}, nil
}

func (s *OSUpstreamNameserverSource) UpstreamNameservers(ctx context.Context) ([]string, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Where are these used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added some comments

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from zmb3 January 28, 2025 14:13
@nklaassen nklaassen force-pushed the nklaassen/remote-appprovider branch from f34a5a6 to 7ad0064 Compare January 28, 2025 18:03
@nklaassen nklaassen force-pushed the nklaassen/windows-netstack branch from e46225e to 493aaf0 Compare January 28, 2025 18:03
Base automatically changed from nklaassen/remote-appprovider to master January 28, 2025 18:42
@nklaassen nklaassen force-pushed the nklaassen/windows-netstack branch from 71320a1 to 26899bf Compare January 28, 2025 18:43
@nklaassen nklaassen enabled auto-merge January 28, 2025 18:51
@nklaassen nklaassen added this pull request to the merge queue Jan 28, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 28, 2025
@nklaassen nklaassen added this pull request to the merge queue Jan 29, 2025
Merged via the queue into master with commit b31c27e Jan 29, 2025
41 checks passed
@nklaassen nklaassen deleted the nklaassen/windows-netstack branch January 29, 2025 00:20
@public-teleport-github-review-bot

@nklaassen See the table below for backport results.

Branch Result
branch/v17 Failed

nklaassen added a commit that referenced this pull request Jan 29, 2025
nklaassen added a commit that referenced this pull request Jan 29, 2025
github-merge-queue bot pushed a commit that referenced this pull request Jan 29, 2025
carloscastrojumo pushed a commit to carloscastrojumo/teleport that referenced this pull request Feb 19, 2025
* [vnet] run networking stack on Windows

* respond to review comments
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 vnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants