"workspace_owner_oidc_access_token"

I found a couple issues mentioning "workspace_owner_oidc_access_token" but not much in the docs. Is that still working? I am trying to setup some templates with azure resources in aks etc. and there is no external auth for azure except the azure devops one. Is is possible to do similiar things with an OIDC token. also from the example below are there anymore examples of using the extra property? I am wondering if I can use something like to get specific OIDC fields from the user or something. https://coder.com/docs/reference/cli/external-auth_access-token - Obtain an extra property of an access token for additional metadata.: $ coder external-auth access-token slack --extra "authed_user.id"
external-auth access-token - Coder Docs
Print auth for an external provider
From An unknown user
From An unknown user
18 Replies
Codercord
Codercord2mo ago
<#1284907410133221396>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Atif
Atif2mo ago
coder_workspace.owner_oidc_access_token is now deprecated in favor of coder_workspace_owner.oidc_access_token
Spiked_Grape
Spiked_Grape2mo ago
@Atif https://github.com/coder/modules/tree/main/jfrog-oauth how to get this to run after dotfiles so that it finds the ~/.bashrc? depends_on dopesn't seem to work
GitHub
modules/jfrog-oauth at main · coder/modules
A collection of Terraform Modules to work with Coder. - coder/modules
Atif
Atif2mo ago
Information we don't have a clean way to do that for now. And all coder_script resources execute in parallel.
Atif
Atif2mo ago
This is a known issue and currently a workaround is possible for general use.
GitHub
feat: allow execution ordering for coder_script · Issue #10352 · ...
Overview Currently, when building a workspace with multiple instances of coder_script, all are run concurrently, preventing any sequencing logic. To remedy this, some serialization should be implem...
Atif
Atif2mo ago
We have to modify the module to support this dependence.
Spiked_Grape
Spiked_Grape2mo ago
@Atif would it be possible to give an example of the workaround? i am not sure I follow where to add the while loop
Atif
Atif2mo ago
GitHub
coder/dogfood/contents/main.tf at main · coder/coder
Provision remote development environments via Terraform - coder/coder
Atif
Atif2mo ago
GitHub
coder/dogfood/contents/main.tf at main · coder/coder
Provision remote development environments via Terraform - coder/coder
Spiked_Grape
Spiked_Grape2mo ago
ok thanks I will try some of these workarounds. Is there a way to get the users name in the coder parameters? I tried coder_workspace_owner.me.name but it just said default. I assuming because the template hasn't actually run yet. I am trying to fill out a default option or description of parameter that is a url of gitlab repo that includes the users name. Like a dotfiles repo in their own namespace.
Atif
Atif2mo ago
coder_workspace_owner.me.name will give the username in terraform apply i.e. when the workspace is built. But for rendering it prior to build its not possible
Spiked_Grape
Spiked_Grape2mo ago
how does the owner parameter get populated? By default it has the user creating the template selected. Could I get that somehow?
Phorcys
Phorcys2mo ago
it gets populated by the Coder provider, it is equal to the user that owns the workspace I'm not sure I understand your question though
Spiked_Grape
Spiked_Grape5w ago
I was just wondering in the description, for example of a dotfiles parameter, could you somehow say as example gitlab.mycorp.com/<current_user>/dotfiles.git https://coder.com/_next/image?url=https%3A%2F%2Fraw.githubusercontent.com%2Fcoder%2Fcoder%2Fmain%2Fdocs%2Fimages%2Fparameters.png&w=3840&q=100 as in where is enter a URL for a dotfile repo (optional) is shown here in this picture but you can see the owners username above. I tired to do it with coder_workspace_owner.me.name but it just displayed "default"
Phorcys
Phorcys5w ago
oh yeah i see what you mean so it won't work in a placeholder value i think i can't look into this rn but i'll set a reminder
R. Danny
R. Danny4w ago
Alright @Phorcys, in 2 days: … @Phorcys, <t:1727110603:R>: …
Phorcys
Phorcys4w ago
hey @Spiked_Grape, so it isn't currently possible but I reopened this issue
Phorcys
Phorcys4w ago
GitHub
Using coder_workspace data source in coder_parameter defaults · Iss...
In something like a the dotfiles repo parameter, I would find it useful to specify a default that includes the username which we could recommend as convention for users to place their repository. P...
Want results from more Discord servers?
Add your server