Skip to content
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

data.azuread_group: name should be case insensitive #246

Closed
Tbohunek opened this issue May 5, 2020 · 11 comments · Fixed by #298
Closed

data.azuread_group: name should be case insensitive #246

Tbohunek opened this issue May 5, 2020 · 11 comments · Fixed by #298

Comments

@Tbohunek
Copy link

Tbohunek commented May 5, 2020

Hi,

Why did you opt to make Azure AD group lookup case sensitive in b82e58f ?

Azure AD is in essence case-insensitive so there's no reason for such restriction.
Instead this makes it difficult to use common variables such as environment=dev if someone named the AD group group_Dev. Same for Service Principals.

Thanks for explanation,
Tomas

@katbyte
Copy link
Collaborator

katbyte commented May 15, 2020

Hey @Tbohunek, we default to case sensitivity for many reasons and have no plans to change this. One reason is if someone wanted to change the casing we wouldn't be able to. You can see the comment that prompted that to be case sensitive here: #14 (comment)

@Tbohunek
Copy link
Author

@katbyte Thanks, but... can you at least add an optional parameter that would allow case-insensitive data lookup? I understand one would want case-sensitive with resource {} but why to need it with data {} is beyond me.

@Tbohunek
Copy link
Author

Btw thanks for closing the issue instantly without any chance for a discussion. Maybe I misunderstood the linked comment but it tells me the only reason you do case sensitive is because you always have, not because it made sense technically nor because customers asked for it.

@tombuildsstuff
Copy link
Contributor

hey @Tbohunek

Thanks for opening this issue.

Whilst certain Azure API's are case insensitive - a much larger proportion are not, meaning that since everything isn't case insensitive - by definition everything has to be treated as case sensitive.

In this instance, I'd agree this makes sense to make the Data Source case-insensitive here (but as you've mentioned leave the Resource case-sensitive) - as such I'm going to re-open this issue to track this feature request.

Thanks!

@Tbohunek
Copy link
Author

Tbohunek commented May 15, 2020

Thanks @tombuildsstuff
Would that be possible and logical also for data {} on Service principals? Or should I open a separate Issue for that? It may generally make sense for more resource types but I can't think of any right now.
Thank you

@manicminer manicminer changed the title Azure AD groups case sensitive data.azuread_group: name should be case insensitive Jun 3, 2020
@manicminer
Copy link
Contributor

@Tbohunek I've updated the issue title to reflect the change requested. Please go ahead and open another issue if the service principal data source needs looking at too. Thanks!

@manicminer
Copy link
Contributor

@Tbohunek I've implemented this in #291, however since this is a potentially breaking change this will only make it into the next major release of the provider.

@DanielFrei64
Copy link

Glad to see there is current work happening here. This is a blocker for me. Obviously it looks like we are working this for 1.0, do we have any general timeline for this? 1 month, year end, H2 2021? Just curious.

Thank you

@manicminer
Copy link
Contributor

@DanielFrei64 AzureAD v1.0 should be out in a few days

@ghost
Copy link

ghost commented Sep 3, 2020

This has been released in version 1.0.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azuread" {
    version = "~> 1.0.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Oct 4, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Oct 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.