-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[v17] Add support for target port in gateways in Connect #51014
Merged
ravicious
merged 7 commits into
branch/v17
from
r7s/v17/backport-50912-target-port-connect
Jan 21, 2025
Merged
[v17] Add support for target port in gateways in Connect #51014
ravicious
merged 7 commits into
branch/v17
from
r7s/v17/backport-50912-target-port-connect
Jan 21, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Update type for targetSubresourceName on DocumentGateway The way DocumentsService.createGatewayDocument is implemented means that the targetSubresourceName property is always present, but it can be undefined. * Use "local port" instead of "port" in DocumentGatewapApp * Rewrite gateway FieldInputs to use styled components * Update comments in protos * useGateway: Stabilize useAsync functions of ports * Add padding to menu label if it's first child * Add support for required prop to Input and FieldInput * Add UI for changing target port * ActionButtons: Show ports of multi-port apps when VNet is not supported Now that we have support for the target port in Connect's gateways, we can show the ports and then open a gateway for that specific port on click. * Add RWMutex to gateways * Clear app gateway cert on target port change * Remove gateways/app.LocalProxyURL It was used only in tests and it made sense only for web apps anyway. * TestTCP: Close connections when test ends * Create context with timeout in testGatewayCertRenewal …instead of in each function that uses it. * Add tests for changing the target port of a TCP gateway * Parallelize app gateway tests within MFA/non-MFA groups * Make testGatewayConnection take ctx as first arg This will be needed in tests that check target port validation. * Validate target port of app gateways * Increase timeouts in app gateway tests
gzdunek
approved these changes
Jan 14, 2025
Please patch #51022 in here before you merge it. |
avatus
approved these changes
Jan 14, 2025
* Make OfflineGateway use uncontrolled forms * Pass form fields to OfflineGateway from outside This will enable each callsite to establish it's own rules as to which fields are required. This will be useful once we add required target subresource name for TCP apps. * Add tests for submitting form through OfflineGateway * Make sure reconnect and formSchema operate on the same type * Add comment for Terminal input
… port * Ensure uniqueness of gateways in tshd * Add comments to a bunch of related types and functions * Refactor ClustersService.findGatewayByConnectionParams This makes it work with app gateways too. * Remove gatewayUri from TrackedGatewayConnection * Update document title on target port change * MenuLogin: Support custom ButtonComponent and buttonText * setUpAppGateway: Accept app URI instead of whole app This will let us call this function from places which do not have access to the whole app object. * useGateway: Update doc title after creating gateway * Change list of buttons with ports to MenuLogin with ports
gzdunek
approved these changes
Jan 20, 2025
@ravicious - this PR will require admin approval to merge due to its size. Consider breaking it up into a series smaller changes. |
zmb3
approved these changes
Jan 20, 2025
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport
I'll add more PRs here until the whole feature is ready.
changelog: Added support for using multi-port TCP apps in Teleport Connect without VNet