-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_web_pubsub_hub
- remove uai validation to support token audience as a valid input
#28495
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @xiaxyi thanks for submitting this. I left one suggestion inline for you to consider, but once that is addressed I can take another look. Thanks!
), | ||
Type: pluginsdk.TypeString, | ||
Required: true, | ||
ValidateFunc: validation.StringIsNotEmpty, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rather than removing the existing validation, would it be possible to include additional validation for the token audience instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@catriona-m Thanks for the review! I checked the api definition and also confirmed with the service team. There isn't any validation to the user's input of the string, any string set to this managed_identity_id
will be accepted by the api, however, there will be error when the token is actually used. So I don't think we need to add any validation to it neither, WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @xiaxyi - if this can be any string then I think we can leave this as it is
@catriona-m Please see my response inline. let me know if you have any questions. Thanks! |
Community Note
Description
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
--- PASS: TestAccWebPubsubHub_usingAuthTokenAudience (235.14s)
--- PASS: TestAccWebPubsubHub_usingAuthGuid (251.78s)
--- PASS: TestAccWebPubsubHub_usingAuthUpdate (416.97s)
PASS
ok github.com/hashicorp/terraform-provider-azurerm/internal/services/signalr 441.325s
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_resource
- support for thething1
property [GH-00000]This is a (please select all that apply):
Related Issue(s)
Fixes #28086
Note
If this PR changes meaningfully during the course of review please update the title and description as required.