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

Initial v2.0 changes #461

Merged
merged 15 commits into from
Jul 2, 2021
Merged

Initial v2.0 changes #461

merged 15 commits into from
Jul 2, 2021

Conversation

manicminer
Copy link
Contributor

@manicminer manicminer commented Jun 15, 2021

This comprises the initial set of changes to move towards v2.0, primarily:

  • Remove Azure SDK and bump Hamilton to v0.17.0
  • Remove deprecated fields from all resources and data sources
  • Removing aadgraph helpers package
  • Refactoring msgraph helpers package to only include functions that are used by more than one package
  • Supporting nullable string values in the form of the msgraph.StringNullWhenEmpty type

Applications

  • Remove deprecated fields
  • Remove deprecated resource azuread_application_oauth2_permissions
  • Remove Computed on all fields where it makes sense
    • Enables zeroing/removing property and block values
    • More reliably detect changes

azuread_application

  • Breaking: change group_membership_claims to a set
  • Support saml2_token for optional_claims
  • Support all values for sign_in_audience
  • Support id_token_issuance_enabled for implicit_grant

azuread_application_password

  • key_id and value are now Computed due to API restrictions

Domains

data.azuread_domains

  • Support additional properties: admin_managed, only_root and supports_services
  • Remove is_ prefix on exported fields
  • Additional exported fields: admin_managed, root and supported_services

Groups

azuread_group

  • Breaking: now require at least one of security_enabled or mail_enabled to be specified
  • Add support for creating mail enabled groups (365 only due to API limitation)
  • Add support for creating Microsoft 365 groups
  • Support updating groups

Service Principals

  • Remove deprecated fields

azuread_service_principal_password

  • key_id and value are now Computed due to API restrictions
  • start_date and end_date are now Computed due to an API or documentation bug

Users

  • Remove deprecated fields
  • Remove Computed on all fields where it makes sense
    • Enables zeroing/removing property and block values
    • More reliably detect changes
  • Support importing users without breaking their password by making password optional+computed

Checklist

  • Remove Azure SDK and stop calling AAD Graph
  • Refactor all resources and data sources to only use MS Graph
  • Deprecation removals
  • Removal of Computed where unnecessary to avoid all related bugs
  • Support some additional values for existing fields
  • Add schema descriptions
  • Update resource and data source documentation
  • Update guides
  • Update docs homepage
  • Update readme

Closes: #163
Closes: #176
Closes: #208
Closes: #236
Closes: #282
Closes: #305
Closes: #308
Closes: #311
Closes: #328
Closes: #334
Closes: #337
Closes: #340
Closes: #362
Closes: #371
Closes: #375
Closes: #377
Closes: #408
Closes: #420
Closes: #424
Closes: #449
Closes: #467
Closes: #470

@manicminer manicminer added this to the v2.0.0 milestone Jun 15, 2021
@manicminer manicminer changed the title [WIP] Initial v2.0 changes Initial v2.0 changes Jun 16, 2021
@manicminer manicminer marked this pull request as ready for review June 16, 2021 16:32
@manicminer manicminer requested a review from a team June 16, 2021 16:32
- Remove deprecated fields
- Remove deprecated resources
  - `azuread_application_app_role`
  - `azuread_application_oauth2_permission_scope`
  - `azuread_application_oauth2_permissions`
- Remove Computed on all fields where it makes sense
  - Enables zeroing/removing property and block values
  - More reliably detect changes

azuread_application
- Change `group_membership_claims` to a set
- Support `saml2_token` for `optional_claims`
- Support all values for `sign_in_audience`
- Support `id_token_issuance_enabled` for `implicit_grant`

azuread_application_password
- key_id and value are now Computed due to API restrictions
data.azuread_domains
- Support additional properties: admin_managed, only_root and supports_services
- Remove `is_` prefix on exported fields
- Additional exported fields: admin_managed, root and supported_services
azuread_group
- Support updating groups
- Add support for creating mail enabled groups (365 only due to API limitation)
- Add support for creating Microsoft 365 groups
- Breaking: now require at least one of security_enabled or mail_enabled to be specified
- Remove deprecated fields

azuread_service_principal_password
  - key_id and value are now Computed due to API restrictions
  - start_date and end_date are now Computed due to an API or documentation bug
- Remove deprecated fields
- Remove Computed on all fields where it makes sense
  - Enables zeroing/removing property and block values
  - More reliably detect changes
- Support importing users without breaking their password by making `password` optional+computed
- Use less secrety fake secrets
- Comment the app/role/scope IDs used in examples
- Helpful shell quoting in guide command examples
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from a couple comments looks great @manicminer ! 👍

docs/guides/microsoft-graph.md Show resolved Hide resolved
internal/provider/provider.go Show resolved Hide resolved
@manicminer manicminer merged commit fb2e2e6 into main Jul 2, 2021
@manicminer manicminer deleted the v2 branch July 2, 2021 08:40
@manicminer manicminer restored the v2 branch July 2, 2021 08:41
@manicminer manicminer deleted the v2 branch July 2, 2021 16:16
manicminer added a commit that referenced this pull request Jul 2, 2021
manicminer added a commit that referenced this pull request Jul 6, 2021
@github-actions
Copy link

github-actions bot commented Aug 2, 2021

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.