Skip to content

Commit

Permalink
fix(usermanagedideneity): lack of compatibility between variable umi_…
Browse files Browse the repository at this point in the history
…federated_credentials_advanced and federated_credentials_advanced for audience sub-variable (#300)

* added conditions to role assignment

* bugfix, make fmt and make docs

* change conditions behavior

* bugfix

* bugfixes with tests and update README.md files

* style: remove locale from URLs

* style: remove locale from urls

* docs: make docs

* change sub-variable audience to audiences and change type from string to set of string

* update README.md file

---------

Co-authored-by: Tomasz Charewicz <[email protected]>
Co-authored-by: Matt White <[email protected]>
  • Loading branch information
3 people authored Dec 13, 2023
1 parent 128d8f7 commit b88b905
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ map(object({
name = string
subject_identifier = string
issuer_url = string
audience = optional(string, "api://AzureADTokenExchange")
audiences = optional(set(string), ["api://AzureADTokenExchange"])
}))
```

Expand Down
2 changes: 1 addition & 1 deletion variables.usermanagedidentity.tf
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ variable "umi_federated_credentials_advanced" {
name = string
subject_identifier = string
issuer_url = string
audience = optional(string, "api://AzureADTokenExchange")
audiences = optional(set(string), ["api://AzureADTokenExchange"])
}))
nullable = false
default = {}
Expand Down

0 comments on commit b88b905

Please sign in to comment.