terraform-provider-concourse icon indicating copy to clipboard operation
terraform-provider-concourse copied to clipboard

How can I set OIDC User or Group?

Open kyunse opened this issue 5 years ago • 4 comments
trafficstars

I set github outh but our team need to change it to keycloak using oidc.

below team resource. guide me to set owners arg. please...

resource "concourse_team" "my_team" {

  team_name = "myteam"
  owners = [

  ]
}

kyunse avatar Oct 14 '20 01:10 kyunse

+1 is this possible?

yashbhutwala avatar Feb 22 '21 18:02 yashbhutwala

I would like to do this for generic oauth: https://concourse-ci.org/generic-oauth.html. Here is how I manage it currently without terraform...

roles:
- name: owner
  oauth:
    users:
    - USER1

yashbhutwala avatar Feb 22 '21 18:02 yashbhutwala

Afraid we currently don't support that because we don't ourselves use that feature. Patches welcome with the caveat that they would have to come with clear tests, because, as I say, we don't use that feature and wouldn't know if it actually works or got broken.

risicle avatar Feb 23 '21 12:02 risicle

It is possible to configure OIDC like so:

resource "concourse_team" "platform" {
  team_name = "platform"
  owners = [ 
    "user:local:root",
  ]
  members = [ 
    "group:oidc:[email protected]",
  ]
}

bartlett-ops avatar Feb 02 '22 15:02 bartlett-ops