Skip to content

feat: allow external services to be authable - #9996

Merged
kylecarbs merged 21 commits into
mainfrom
extauthprovider
Oct 3, 2023
Merged

kylecarbs merged 21 commits into
mainfrom
extauthprovider

Conversation

@kylecarbs

@kylecarbs kylecarbs commented Oct 2, 2023 •

Copy link
Copy Markdown
Member

Allows external services to be authenticated with Coder via "Create Workspace".

Shortlist of changes:

  1. Renamed environment variables from CODER_GITAUTH_ to CODER_EXTERNAL_AUTH_ (this is backwards compatible).
  2. New DISPLAY_NAME and DISPLAY_ICON properties.
  3. Newew TYPE=oidc to enable any OpenID Connect provider to work with external auth.

image

Future improvements:

  1. Add a sub-command to the Coder CLI to dynamically obtain the access token from a provider. e.g. coder external-auth refresh --type=github, coder external-auth refresh --id=github, coder external-auth refresh --match="https://github.com"
  2. Add coder_external_auth Terraform data source to replace coder_git_auth. Allow for matching based on type and regex so Modules can make use of auth 👀.

@kylecarbs kylecarbs self-assigned this Oct 2, 2023
@kylecarbs
kylecarbs marked this pull request as ready for review October 2, 2023 16:26
@kylecarbs

Copy link
Copy Markdown
Member Author

@bpmct please review the docs on this change.

We also need to add a permanent redirect for coder.com from /docs/v2/admin/git-auth to /docs/v2/admin/external-auth.

@BrunoQuaresma BrunoQuaresma left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FE code looks good but there are a few Storybook stories broken

@kylecarbs

Copy link
Copy Markdown
Member Author

Fixed! Good call on checking the Storybook.

@github-actions

github-actions Bot commented Oct 2, 2023 •

Copy link
Copy Markdown
Contributor

✔️ PR 9996 Updated successfully.
🚀 Access the credentials here.

cc: @kylecarbs

@kylecarbs
kylecarbs enabled auto-merge (squash) October 2, 2023 22:07
@kylecarbs
kylecarbs merged commit 45b53c2 into main Oct 3, 2023
@kylecarbs
kylecarbs deleted the extauthprovider branch October 3, 2023 14:04
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants