Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 829 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 829 Bytes

Terraform provider for workload identity federation

This is a WIP Terraform provider for generating Workload Identity Federation principals.

This will attempt some minimal validation of source_expression being a valid CEL expression using go-cel

It can be used like this:

provider "wif" {
  project_id = 1976
  pool_id = "mypool"
}
data "wif_principal_set" "actions" {
  target = "repo"
  source_expression = "assertion.arn.contains(\":instance-profile/Production\")"
}
data "wif_principal_set" "mygroup" {
  target = "attribute.group"
  source_expression = "mygroup"
}

data "wif_principal" "actions" {
  subject = "repo:reMarkable/actions"
}

Note that this provider has not yet been uploaded to a registry.