René's URL Explorer Experiment


Title: refactor(agent): Move SSH server into agentssh package by mafredri · Pull Request #7004 · coder/coder · GitHub

Open Graph Title: refactor(agent): Move SSH server into agentssh package by mafredri · Pull Request #7004 · coder/coder

X Title: refactor(agent): Move SSH server into agentssh package by mafredri · Pull Request #7004 · coder/coder

Description: This PR refactors the coder agent SSH server into a separate package, agentssh. The motivation is to break out functionality of the agent into a more bite-sized package as well as contain complexity as more parts of #6177 are amended. Note: In an effort to keep changes minimal, the non-ideal decision was made to keep all env-var processing in the new package. This meant transplanting agentsdk.Manifest and agent token into the agentssh package. Parts of this will be migrated back into the agent package at a later time. Refs: #6177

Open Graph Description: This PR refactors the coder agent SSH server into a separate package, agentssh. The motivation is to break out functionality of the agent into a more bite-sized package as well as contain complexit...

X Description: This PR refactors the coder agent SSH server into a separate package, agentssh. The motivation is to break out functionality of the agent into a more bite-sized package as well as contain complexit...

Opengraph URL: https://github.com/coder/coder/pull/7004

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:52e2a999-9d67-114a-ed9e-95a30434ba02
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE57E:ADA9D:2E9A1AA:3BCA73D:6B01B521
html-safe-noncea8ebeb1b362a2df68d7f915ab7cd07b981062e0bb77a9ae67c67f78bf350511d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTdFOkFEQTlEOjJFOUExQUE6M0JDQTczRDo2QjAxQjUyMSIsInZpc2l0b3JfaWQiOiI3NTEzOTY5NjQ3NDc4MjI0MTYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac28bfbed5faf945fc8dfb61c440a3f66d699e2cad691468ba9ba172a1cce28c81
hovercard-subject-tagpull_request:1301791473
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/coder/coder/pull/7004/files
twitter:imagehttps://avatars.githubusercontent.com/u/147409?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/147409?s=400&v=4
og:image:altThis PR refactors the coder agent SSH server into a separate package, agentssh. The motivation is to break out functionality of the agent into a more bite-sized package as well as contain complexit...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/coder/coder/pull/7004/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F7004%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F7004%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/7004/files
Reloadhttps://github.com/coder/coder/pull/7004/files
Reloadhttps://github.com/coder/coder/pull/7004/files
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
mafredrihttps://github.com/mafredri
mainhttps://github.com/coder/coder/tree/main
mafredri/refactor-agent-sshdhttps://github.com/coder/coder/tree/mafredri/refactor-agent-sshd
Conversation 20 https://github.com/coder/coder/pull/7004
Commits 8 https://github.com/coder/coder/pull/7004/commits
Checks 0 https://github.com/coder/coder/pull/7004/checks
Files changed https://github.com/coder/coder/pull/7004/files
Please reload this pagehttps://github.com/coder/coder/pull/7004/files
refactor(agent): Move SSH server into agentssh package https://github.com/coder/coder/pull/7004/files#top
Show all changes 8 commits https://github.com/coder/coder/pull/7004/files
37adb62 refactor(agent): Move SSH server into agentssh package mafredri Apr 4, 2023 https://github.com/coder/coder/pull/7004/commits/37adb622eb7519b4cd275c0f2658bf2df96423d6
d5f7a4e Rename receivers mafredri Apr 4, 2023 https://github.com/coder/coder/pull/7004/commits/d5f7a4e4f8705bfc67d02f9b137b1f0622ec6e34
3ea3e70 Remove unused context mafredri Apr 4, 2023 https://github.com/coder/coder/pull/7004/commits/3ea3e707ce40f3d9a4c4be0481e748484607f55d
126813f Use s logger mafredri Apr 4, 2023 https://github.com/coder/coder/pull/7004/commits/126813f029765d9bf6606d7cbcaee40a40ad845f
667d038 Rename unused arg _ mafredri Apr 4, 2023 https://github.com/coder/coder/pull/7004/commits/667d038fe262d3bd21e827569f3534f242cfe9b0
94d7593 Address PR feedback mafredri Apr 6, 2023 https://github.com/coder/coder/pull/7004/commits/94d759396ad87cb386f54917ea51cc56e4a6fe0f
e71ba85 Merge branch 'main' into mafredri/refactor-agent-sshd mafredri Apr 6, 2023 https://github.com/coder/coder/pull/7004/commits/e71ba853b2b40beb16550dc3a7b2c88fa87b43d2
ed63a2b Improve handling of serve/close mafredri Apr 6, 2023 https://github.com/coder/coder/pull/7004/commits/ed63a2bcf048d0fc178908ff06743c4abd823fd0
Clear filters https://github.com/coder/coder/pull/7004/files
Please reload this pagehttps://github.com/coder/coder/pull/7004/files
Please reload this pagehttps://github.com/coder/coder/pull/7004/files
agent.go https://github.com/coder/coder/pull/7004/files#diff-62b6ad581fe3a3059ae8c85ef0f31dde4092bfdecfa7d6857c470bcacaa8cc8b
agent_test.go https://github.com/coder/coder/pull/7004/files#diff-e12d66df9a328a0b4b4e61abbde9a65eb60a4c8a6a8ca9249a455f173007ac89
agentssh.go https://github.com/coder/coder/pull/7004/files#diff-e2fb60d4b313fc2ad42c37ce065c0c880e04615b339a843e14892338d0bb4396
agentssh_test.go https://github.com/coder/coder/pull/7004/files#diff-5dc1411a84ebf7fcbc20350f2d9b44dd0391978f285eacc929ff1e377ff589ec
bicopy.go https://github.com/coder/coder/pull/7004/files#diff-c3126aac78e4af6c52818b698e44a25b5c3bc038a81aff6779ee3ed9ba8d271c
forward.go https://github.com/coder/coder/pull/7004/files#diff-7ac7e219a582bce4b340900ae8681925a65e509602ee869a2863ea2268b64d60
portforward.go https://github.com/coder/coder/pull/7004/files#diff-5223ec682e3fc67af610a121dd3fb169e287a512f70f79269840143fb21863a0
ssh.go https://github.com/coder/coder/pull/7004/files#diff-e288cc849ca774d47294f4f6c71c4ec171f6e0b15491e7220a0144dbfc1a43bc
proxy.go https://github.com/coder/coder/pull/7004/files#diff-8db7601b3eb4753c0d7cbea21538f61fdfe56c6d3d278b2b34da9a9ede9d064f
agent/agent.gohttps://github.com/coder/coder/pull/7004/files#diff-62b6ad581fe3a3059ae8c85ef0f31dde4092bfdecfa7d6857c470bcacaa8cc8b
View file https://github.com/coder/coder/blob/ed63a2bcf048d0fc178908ff06743c4abd823fd0/agent/agent.go
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/coder/coder/pull/7004/files
agent/agent_test.gohttps://github.com/coder/coder/pull/7004/files#diff-e12d66df9a328a0b4b4e61abbde9a65eb60a4c8a6a8ca9249a455f173007ac89
View file https://github.com/coder/coder/blob/ed63a2bcf048d0fc178908ff06743c4abd823fd0/agent/agent_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/7004/{{ revealButtonHref }}
https://github.com/coder/coder/pull/7004/files#diff-e12d66df9a328a0b4b4e61abbde9a65eb60a4c8a6a8ca9249a455f173007ac89
https://github.com/coder/coder/pull/7004/files#diff-e12d66df9a328a0b4b4e61abbde9a65eb60a4c8a6a8ca9249a455f173007ac89
https://github.com/coder/coder/pull/7004/files#diff-e12d66df9a328a0b4b4e61abbde9a65eb60a4c8a6a8ca9249a455f173007ac89
https://github.com/coder/coder/pull/7004/files#diff-e12d66df9a328a0b4b4e61abbde9a65eb60a4c8a6a8ca9249a455f173007ac89
https://github.com/coder/coder/pull/7004/files#diff-e12d66df9a328a0b4b4e61abbde9a65eb60a4c8a6a8ca9249a455f173007ac89
https://github.com/coder/coder/pull/7004/files#diff-e12d66df9a328a0b4b4e61abbde9a65eb60a4c8a6a8ca9249a455f173007ac89
https://github.com/coder/coder/pull/7004/files#diff-e12d66df9a328a0b4b4e61abbde9a65eb60a4c8a6a8ca9249a455f173007ac89
Please reload this pagehttps://github.com/coder/coder/pull/7004/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.