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

Backwards compatible SSH port forwarding controls #50043

Merged

Conversation

eriktate
Copy link
Contributor

This PR adds a permanent transformation of roles fetched over gRPC that assigns a value to port_forwarding based on the ssh_port_forwarding configuration. This preserves backwards compatibility when communicating with agents that aren't aware of the newer ssh_port_forwarding field without impacting newer agents since they will drop the configured port_forwarding value in favor of the newer configuration.

lib/auth/grpcserver.go Outdated Show resolved Hide resolved
@eriktate eriktate force-pushed the eriktate/backward-compatible-ssh-port-forward-controls branch from 6bee479 to 7045356 Compare December 11, 2024 19:13
@eriktate eriktate added the no-changelog Indicates that a PR does not require a changelog entry label Dec 11, 2024
@eriktate eriktate force-pushed the eriktate/backward-compatible-ssh-port-forward-controls branch 2 times, most recently from b4cb01e to 9843660 Compare December 12, 2024 21:36
lib/auth/grpcserver.go Outdated Show resolved Hide resolved
@eriktate eriktate force-pushed the eriktate/backward-compatible-ssh-port-forward-controls branch from 9843660 to 2c2c03c Compare December 12, 2024 22:59
lib/auth/grpcserver.go Outdated Show resolved Hide resolved
Copy link
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.

LGTM once the minimum supported versions are updated

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from vapopov December 13, 2024 14:29
@eriktate eriktate force-pushed the eriktate/backward-compatible-ssh-port-forward-controls branch from 2c2c03c to 363e22d Compare December 13, 2024 15:16
lib/auth/grpcserver.go Outdated Show resolved Hide resolved
@eriktate eriktate force-pushed the eriktate/backward-compatible-ssh-port-forward-controls branch from 363e22d to 21e8ba6 Compare December 13, 2024 15:50
@eriktate eriktate added this pull request to the merge queue Dec 13, 2024
Merged via the queue into master with commit 892b27c Dec 13, 2024
40 checks passed
@eriktate eriktate deleted the eriktate/backward-compatible-ssh-port-forward-controls branch December 13, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

3 participants