Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

docs: no documentation on how Coder usesGIT_ASKPASS for OAuth connections #17375

Labels
docsArea: coder.com/docs
@ericpaulsen

Description

@ericpaulsen

a prospect recently inquired about how our OAuth integration with GitLab works, and I realized we do not have any information onGIT_ASKPASS is used to retreive the OAuth token for users when they rungit operations.

here is my response, which is a good starting point for building out the docs:

When a user steps through the "Login with GitLab" flow, Coder will receive an OAuth token that it stores in the PostgreSQL database (encryption available) on behalf of the user. This OAuth token is then injected by Coder into the user's git operations over HTTPS (and not SSH). This token stores the git config you reference above (email, name, etc.)
We use theGIT_ASKPASS environment variable to query the database & inject the token into the git push commands. This is automatically set across all of the user's workspaces by Coder when the user performs the "Login with GitLab" flow. The steps are:

  1. Execute the Login with GitLab flow
  2. GIT_ASKPASS is set to/tmp/coder.<random-string>/coder in all of user's workspaces
  3. Run git clone / pull / push over HTTPS

To reiterate, this GIT_ASKPASS feature does not execute when git operations are performed over SSH. The SSH key Coder provides for each user is simply a secondary method to authenticate, and is outside the scope of the OAuth integration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsArea: coder.com/docs

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp