Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add coder_workspace_owner data source #219

Closed
matifali opened this issue May 6, 2024 · 7 comments
Closed

Add coder_workspace_owner data source #219

matifali opened this issue May 6, 2024 · 7 comments
Assignees

Comments

@matifali
Copy link
Member

matifali commented May 6, 2024

Extracted from coder/envbuilder#174 (comment)

The properties that are per user and not per workspace should be added/refactored to the new data source, coder_user.

Other properties that should be added or moved from coder_workspace can be

  1. coder_workspace.owner -> coder_user.name
  2. coder_workspace.owner_name -> coder_user.full_name
  3. coder_workspace.owner_email -> coder_user.email
  4. Add coder_user.private_ssh_key (sensitive)
  5. Add coder_user.public_ssh_key
  6. Add coder_user.groups (A list of all groups if applicable)
@johnstcn
Copy link
Member

johnstcn commented May 23, 2024

Wrinkle: "groups" can apparently contain any arbitrary data, which is going to be a headache.

coder/coder#13354

@johnstcn
Copy link
Member

Wrinkle: we'll also need to send this information from Coder (separate issue)

@johnstcn
Copy link
Member

For the sake of clarity, this datasource will instead be named coder_workspace_owner as it will refer to information about the workspace owner and not the user creating the workspace.

@johnstcn
Copy link
Member

johnstcn commented May 24, 2024

Part 1 is here: #230
Next step: add a coder/coder change to send this information.

@johnstcn johnstcn changed the title Add coder_user data source Add coder_workspace_owner data source May 24, 2024
@matifali
Copy link
Member Author

There is a related request to expose the user's timezone settings in #213.

Additionally, we can expose account type, i.e., password, github, oidc, or none (could be extracted to a new issue)
image

@johnstcn
Copy link
Member

we can expose account type, i.e., password, github, oidc, or none (could be extracted to a new issue)

#235

@johnstcn
Copy link
Member

coder/coder#13366 updates Coder to allow passing the new fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants