-
Notifications
You must be signed in to change notification settings - Fork 15
chore: use background hostname for admin tasks #446
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
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.
Looking good!
Should we use the background host name for this one too?
jetbrains-coder/src/main/kotlin/com/coder/gateway/CoderRemoteConnectionHandle.kt
Line 353 in dceb578
.command("ssh", "-t", workspace.hostname, "cd '${workspace.idePathOnHost}' ; cd bin ; $command") |
It is responsible for running the setup command (users use it to preinstall plugins, mainly) before connecting to the IDE.
src/main/kotlin/com/coder/gateway/CoderRemoteConnectionHandle.kt
Outdated
Show resolved
Hide resolved
1bed23e
to
632e12a
Compare
b8e0e29
to
cf673a1
Compare
Qodana Community for JVM3 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
|
@code-asher thanks for catching these other cases! I've updated the PR with those changes as well as got the tests all passing. |
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!
This adds a new
getBackgroundHostName()
func that is intended to be used for all SSH connections that are not the main IDE connection. This prevents background admin actions using SSH to trigger usage tracking for the workspace.