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

IAP IAM resources mis-named #919

Open
aureq opened this issue Aug 24, 2023 · 5 comments
Open

IAP IAM resources mis-named #919

aureq opened this issue Aug 24, 2023 · 5 comments
Labels
1.0 impact/breaking Fixing this issue will require a breaking change kind/bug Some behavior is incorrect or out of spec

Comments

@aureq
Copy link
Member

aureq commented Aug 24, 2023

What happened?

It appears the iap service has incorrect resource name, where these resources also contain the API version in their name.

For example IamBinding is actually V1IamBinding for v1 API and V1beta1IamBinding for the v1beta1 API.

A few other resources are affected in the iap service

  • IamMember
  • IamBinding
  • IamPolicy

I didn't find other resources in other services.

Expected Behavior

The resource names shouldn't contain the API version.

Steps to reproduce

n/a

Output of pulumi about

n/a

Google Native 0.31.1 is affected.

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@aureq aureq added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Aug 24, 2023
@danielrbradley
Copy link
Member

It appears this was added approximately a year ago:

Only the IAP namespace appears to have this issue.

Unfortunately, fixing this naming would be a breaking change for anyone already using these resources.

We could probably include both the old and fixed named files alongside each other and deprecate the broken ones.

In terms of impact I assume this is mainly a question of consistency rather than it impacting the functionality of the provider?

@danielrbradley danielrbradley added impact/breaking Fixing this issue will require a breaking change and removed needs-triage Needs attention from the triage team labels Aug 25, 2023
@danielrbradley danielrbradley changed the title Incorrect resource name IAP IAM resources mis-named Aug 25, 2023
@mikhailshilkov
Copy link
Member

@danielrbradley Google Native is still in preview, so a (positive) breaking change isn't a huge issue. We should rename and add an alias to the old names.

@danielrbradley
Copy link
Member

Yup, ok that makes sense. Will leave on the backlog to consider. Have created a 1.0 label to also keep a track of items we should complete before GA.

@aureq
Copy link
Member Author

aureq commented Aug 25, 2023

It may be helpful to use metabase to understand the impact of this change and determine if we could impact customers. A similar check was done for Azure Native 2.0 as I understand it. And if there's little to no customer affected, then could we consider making a release sooner than 1.0?

@danielrbradley
Copy link
Member

Yes, it could be made sooner than the 1.0 release, but this feels relatively low impact compared to other bugs which might impact accessing features.

Would be welcome to accept a PR here if you can determine what's causing the odd name.

@danielrbradley danielrbradley added the help-wanted We'd love your contributions on this issue label Aug 29, 2023
@mikhailshilkov mikhailshilkov removed the help-wanted We'd love your contributions on this issue label Nov 6, 2023
aureq added a commit to pulumi/compliance-policies that referenced this issue Sep 21, 2024
and the way it interacts with `policy-bundler` (due to incorrect resource names)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.0 impact/breaking Fixing this issue will require a breaking change kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

3 participants