-
Notifications
You must be signed in to change notification settings - Fork 16
impl: add the option to disable ssh wildcard configuration #584
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
Conversation
It will be used later by the Coder Settings view to allow users to enable or disable SSH hostname wildcard configuration.
Updated the UI component to allow configuration by the user
when generating the ssh config for Coder Gateway. Up until now we just checked if the Coder deployment supports this feature, but now users have to option to continue to use expanded hostnames in the ssh config.
Qodana Community for JVM34 new problems were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
To get - name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2023.3.2
with:
upload-result: true Contact Qodana teamContact us at qodana-support@jetbrains.com
|
CLIManager can be created with default settings (simplifies testing), among which the ssh wildcard config is enabled. But in reality the config can be disabled by the user.
…rd config was changed Currently, if a user starts a connection with wildcard enabled and then later on it disables the wildcard config then the recent connections becomes unusable because the hostnames are invalid. The issue can reproduce the other way around as well (start with wildcard ssh config disabled, start an IDE and then later on enable wildcard config) This commit addresses the issue by resolving the hostname on demand when the user wants to open the remote IDE from the recent connections panel.
Connections started with two different hostnames (because of the ssh wildcard config) can be rendered twice in the Recent projects panel. With this commit we ignore the hostname and instead use the workspace name and deployment URL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Do we know why users want this? I figured wildcard would always be better.
There is apparently a client that has issues with wildcard config, "After the SSH configuration changes introduced with jetbrains-coder in Version 2.18 (f39e1f4) we are no longer able to connect JetBrains Gateway to our workspaces (Failed to retrieve IDEs / Host is unknown)." They requested a way to disable the wildcard configuration. Probably it makes more sense to understand the issue they have with this configuration but unfortunately they haven't provided any logs. And on the other hand, Coder Toolbox already provides both options (wildcard enabled or disabled) |
Ahh gotcha that makes sense! |
It will be used later by the Coder Settings view to allow users to enable or disable SSH hostname wildcard configuration.