Skip to content

ssh into stopped workspace fails to start when there is an optional git external auth #13360

Closed
@michaelbrewer

Description

@michaelbrewer

Steps to reproduce

Given a workspace template with some optional external git authentication

data "coder_external_auth" "gitlab-na" {
  id       = "gitlab-na"
  optional = true
}

data "coder_external_auth" "gitlab-emea" {
  id       = "gitlab-emea"
  optional = true
}

And one of the git external auth is not logged
And the workspace stopped

When logging into SSH the workspace should start up.

Outcome

SSH fails to start the workspace and can't CTL+C to exit

ssh coder.platform-onbarding.main
Workspace was stopped, starting workspace to allow connecting to "platform-onboarding"...
You must authenticate with Gitlab - EMEA to create a workspace with this template. Visit:

	https://coder.example.com/external-auth/gitlab-emea

⠎⠁ Waiting for Git authentication...

Expected outcome

The workspace should start up even if one of the optional git is not logged in

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliArea: CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions