René's URL Explorer Experiment


Title: docs: explain git identity and credentials in shared workspaces · Issue #30278 · coder/coder · GitHub

Open Graph Title: docs: explain git identity and credentials in shared workspaces · Issue #30278 · coder/coder

X Title: docs: explain git identity and credentials in shared workspaces · Issue #30278 · coder/coder

Description: Problem Shared workspaces covers roles, app routing, and sharing policies, but doesn't explain whose git identity and credentials are used when multiple users connect to the same workspace. In practice, everything resolves to the workspa...

Open Graph Description: Problem Shared workspaces covers roles, app routing, and sharing policies, but doesn't explain whose git identity and credentials are used when multiple users connect to the same workspace. In prac...

X Description: Problem Shared workspaces covers roles, app routing, and sharing policies, but doesn't explain whose git identity and credentials are used when multiple users connect to the same workspace. In ...

Opengraph URL: https://github.com/coder/coder/issues/30278

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"docs: explain git identity and credentials in shared workspaces","articleBody":"## Problem\n\n[Shared workspaces](https://coder.com/docs/user-guides/shared-workspaces) covers roles, app routing, and sharing policies, but doesn't explain whose git identity and credentials are used when multiple users connect to the same workspace. In practice, everything resolves to the **workspace owner**:\n\n- **Commit author/committer**: templates typically set `GIT_AUTHOR_*` / `GIT_COMMITTER_*` on the agent from `data.coder_workspace_owner.me` (e.g. [`examples/templates/docker/main.tf`](https://github.com/coder/coder/blob/main/examples/templates/docker/main.tf#L50-L53)). These are set at build time, so commits from any shared user are attributed to the owner.\n- **Git over SSH**: `agentGitSSHKey` returns the owner's key via `GetGitSSHKey(ctx, workspace.OwnerID)` ([`coderd/gitsshkey.go`](https://github.com/coder/coder/blob/main/coderd/gitsshkey.go#L148)).\n- **External auth**: `workspaceAgentsExternalAuth` resolves tokens with `UserID: workspace.OwnerID` ([`coderd/workspaceagents.go`](https://github.com/coder/coder/blob/main/coderd/workspaceagents.go#L2285-L2287)), so HTTPS git / `gh` operations act as the owner.\n\nA user with the `use` role gets SSH/terminal access, which is enough to push with the owner's SCM permissions. Owners sharing a personal workspace may not realize this.\n\n## Proposed docs changes\n\nAdd a section to `docs/user-guides/shared-workspaces.md` (and link it from `docs/tutorials/persistent-shared-workspaces.md`) that covers:\n\n1. Git identity, the git SSH key, and external auth tokens all belong to the workspace owner, for every connected user.\n2. Security implications of sharing a personally owned workspace (shared users can act with the owner's SCM credentials).\n3. Recommendation: use a service-account-owned workspace for shared or long-lived use cases, and note that activity will be attributed to the service account.\n4. How shared users can commit/push as themselves, e.g. overriding `GIT_AUTHOR_*` / `GIT_COMMITTER_*` in their session (template env vars take precedence over `git config`), or `git -c user.name=... -c user.email=...`, plus authenticating with their own credentials (e.g. `gh auth login`). Mention the trade-offs: credentials written to disk can be seen by other users of the workspace.\n\nCreated on behalf of @ericpaulsen\n","author":{"url":"https://github.com/apps/coder","@type":"Person","name":"coder"},"datePublished":"2026-10-02T07:39:06Z","url":"https://github.com/coder/coder/issues/30278"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6ad3b7e1-c6d9-2e07-6e0b-241f6051b5f1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEBCE:76F02:1958BA3:20714AA:6B013CA8
html-safe-nonce88de1ae2fc4359603eee3dd2961586d95e392742f76416e0fc37d990bacf88d6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkNFOjc2RjAyOjE5NThCQTM6MjA3MTRBQTo2QjAxM0NBOCIsInZpc2l0b3JfaWQiOiI3Njk3MTkzODk3MjE4MzU4NDQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac44f5dd43a3f744e6b1d0aa4f9c677bacf4c7f5f46612820c328670385152c1f5
hovercard-subject-tagissue:5674400127
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/30278/issue_layout
twitter:imagehttps://opengraph.githubassets.com/434991c37a7b7dc538ef08ce09c56a4dfdd5ad5d7db46b626b9814dd94055b3a/coder/coder/issues/30278
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/434991c37a7b7dc538ef08ce09c56a4dfdd5ad5d7db46b626b9814dd94055b3a/coder/coder/issues/30278
og:image:altProblem Shared workspaces covers roles, app routing, and sharing policies, but doesn't explain whose git identity and credentials are used when multiple users connect to the same workspace. In prac...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecoder[bot]
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
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
disable-turbofalse
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
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/30278#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F30278
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%2Fissues%2F30278
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/issues/30278
Reloadhttps://github.com/coder/coder/issues/30278
Reloadhttps://github.com/coder/coder/issues/30278
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests468 (468)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
https://github.com/coder/coder
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/30278
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/30278
#31152https://github.com/coder/coder/pull/31152
docs: explain git identity and credentials in shared workspaceshttps://github.com/coder/coder/issues/30278#top
#31152https://github.com/coder/coder/pull/31152
https://github.com/nickvigilante
https://github.com/apps/coder
coderhttps://github.com/apps/coder
on Oct 2, 2026https://github.com/coder/coder/issues/30278#issue-5674400127
Shared workspaceshttps://coder.com/docs/user-guides/shared-workspaces
examples/templates/docker/main.tfhttps://github.com/coder/coder/blob/main/examples/templates/docker/main.tf#L50-L53
coderd/gitsshkey.gohttps://github.com/coder/coder/blob/main/coderd/gitsshkey.go#L148
coderd/workspaceagents.gohttps://github.com/coder/coder/blob/main/coderd/workspaceagents.go#L2285-L2287
@ericpaulsenhttps://github.com/ericpaulsen
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Oct 2, 2026https://github.com/coder/coder/issues/30278#issuecomment-5947537645
Linear Codehttps://linear.app
ENG-3444https://linear.app/codercom/issue/ENG-3444
nickvigilantehttps://github.com/nickvigilante
on Oct 21, 2026https://github.com/coder/coder/issues/30278#event-33819690545
nickvigilantehttps://github.com/nickvigilante
completedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#31152https://github.com/coder/coder/pull/31152
on Nov 3, 2026https://github.com/coder/coder/issues/30278#event-35051898185
yermakoffivanhttps://github.com/yermakoffivan
on Nov 3, 2026https://github.com/coder/coder/issues/30278#event-35056061002
docs: explain git identity and credentials in shared workspaces (code…https://github.com/yermakoffivan/coder/commit/731f0c6ac171db390e9865c7786bc6c3e8192410
code…https://github.com/coder/coder/pull/31152
https://docs.github.com/articles/closing-issues-via-commit-messages
731f0c6https://github.com/yermakoffivan/coder/commit/731f0c6ac171db390e9865c7786bc6c3e8192410
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/30278
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/30278
nickvigilantehttps://github.com/nickvigilante
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.