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

azuread_access_package_assignment_policy: change requestors type from List to Set #1117

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bigwheel
Copy link

@bigwheel bigwheel commented Jun 11, 2023

Resolve #1116

What I tested

  • make test
  • Fixed actual behavior and become expected hehavior (no diffs)

Test steps

  1. Clone provider code
  2. Change the code
  3. make build
  4. terraform init and terraform plan several times. Check plans show requestor diffs.
  5. Override azuread provider
provider_installation {
  dev_overrides {
    "hashicorp/azuread" = "/home/kbigwheel/.asdf/installs/golang/1.19.4/packages/bin"
  }
  direct {}
}
  1. terraform init and terraform plan several times. Check plans don't show requestor diffs.

@manicminer
Copy link
Contributor

Thanks for suggesting this change @bigwheel. In my testing I have not been able to reproduce this as yet, can you confirm if this happens repeatably or intermittently? If you update your configuration to match the order of requestors, does the diff go away (and not return after a few plans)?

In principle I'd be happy to make this change, however changing a property from a TypeList to a TypeSet is usually considered a breaking change, since a property might be referenced elsewhere in users' configurations. This means we normally only make such a change with a new major version of a provider, e.g. v2.x -> v3.0.

@manicminer manicminer added this to the v3.0.0 milestone Jul 12, 2023
@manicminer manicminer changed the title Change requestors type from List to Set azuread_access_package_assignment_policy: change requestors type from List to Set Jul 12, 2023
@bigwheel
Copy link
Author

@manicminer Thank you for reply!

In my testing I have not been able to reproduce this as yet, can you confirm if this happens repeatably or intermittently? If you update your configuration to match the order of requestors, does the diff go away (and not return after a few plans)?

No, it doesn't. I applied several times but diff still remained yet.

This means we normally only make such a change with a new major version of a provider, e.g. v2.x -> v3.0.

Agree. we were added requestor to ignore_changes list. Therefore, it is not ciritical problem at least now.

@manicminer
Copy link
Contributor

Thanks for the feedback. Agreed this should be a TypeSet, as mentioned we'll fix this in v3.0.

@tjrobinson
Copy link

Thanks @manicminer. I don't suppose you have a rough ETA on v3.0 yet? Are we talking days/weeks/months?

@manicminer
Copy link
Contributor

Unfortunately we don't have a timeframe as yet. There is a lot of ground work going on right now in preparation for it, but I'm afraid can't offer an estimate at this point in time.

@sklakegg
Copy link
Contributor

Hey, any update on this? We are currently scaling up the use of terraformed access packages, and this is really messing up the plans :)

@seanhoughton
Copy link

This would be nice to get merged. I'd prefer not to have to use the ignore_changes workaround, especially with security related infra. Additionally, hashicorp/terraform#5666 means I have to ignore the entire requestor_settings block and not just the requestor field.

@manicminer manicminer removed this from the v3.0.0 milestone Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Order of azuread_access_package_assignment_policy's requestors change in each plan / apply
5 participants