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

bug:CODER_OAUTH2_GITHUB_ALLOWED_ORGS breaks first login via GitHub #17752

Open
Assignees
hugodutka
Labels
need-backendIssues that need backend workonboarding-improvements2Broken use cases or features (with a workaround). Only humans may set this.
@phorcys420

Description

@phorcys420

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

2025-05-09.22-23-40.mp4

When settingCODER_OAUTH2_GITHUB_ALLOWED_ORGS on a fresh Coder deployment, the Coder deployment will try to check against the orgs list, but since the built-in Coder GitHub app does not set that permission, Coder will just think that you're not a member of the org.

(Discord Thread)

Relevant Log Output

Expected Behavior

Coder should ignoreCODER_OAUTH2_GITHUB_ALLOWED_ORGS, or should be using the OAuth app with IDgithub (or the first withgithub type) if defined by the admin, or both.

Steps to Reproduce

  1. SetCODER_OAUTH2_GITHUB_ALLOWED_ORGS to anything
  2. Start a fresh Coder deployment
  3. Try to log in

Environment

Coder v2.21.3+bd1ef88 (not in the video but I did check and it's the same.

Additional Context

This sometimes leaves the Coder deployment in a broken state when restarted (the deployment thinks it has a user but you can't use it).

The user that reported this got a different issue, but I believe the cause to be the same.
Image

Metadata

Metadata

Assignees

Labels

need-backendIssues that need backend workonboarding-improvements2Broken use cases or features (with a workaround). Only humans may set this.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp