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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Identity Platform project config resource #8510

Open
wvanderdeijl opened this issue Feb 19, 2021 · 6 comments
Open

Request: Identity Platform project config resource #8510

wvanderdeijl opened this issue Feb 19, 2021 · 6 comments
Milestone

Comments

@wvanderdeijl
Copy link

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment. If the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.

Description

It seems like all of the resource_identity_platform_* resources are implemented except for the project configuration itself which is needed for configuring things like to authorizedDomains and other project-level configuration.

New or Affected Resource(s)

  • google_identity_platform_config

Potential Terraform Configuration

# Propose what you think the configuration to take advantage of this feature should look like.
# We may not use it verbatim, but it's helpful in understanding your intent.
resource "google_identity_platform_config" "config" {
  sign_in {
    email {
      enabled = false
    }
    phone_number {
      enabled = true
      test_phone_numbers {
        foo = "+12065550100"
      }
    }
  }
  authorized_domains = [
    "iap.googleapis.com",
    "example.org"
  ]
  subtype = "IDENTITY_PLATFORM"
  client {
    permissions {
      disabled_user_signup = true
      disabled_user_deletion = true
    }
  }

References

The required updateConfig API is described at https://cloud.google.com/identity-platform/docs/reference/rest/v2/projects/updateConfig
This resource is a bit different than the other identity-platform resources as it does not use a create/delete/get/list/patch APIm, but simple a getConfig and updateConfig

  • #0000
@ghost ghost added the enhancement label Feb 19, 2021
@rileykarson rileykarson added this to the Goals milestone Feb 22, 2021
@trodge
Copy link
Collaborator

trodge commented Mar 14, 2022

I would like to implement this resource using the DCL.

@StephenWithPH
Copy link

As noted in #8288 (comment), this is supported for multi-tenant.

@TheNotary
Copy link

I think the OP wants it possible to set authorized_domains. I'd like to have the functionality too and I can't see any documentation for setting that value.

@tilgovi
Copy link

tilgovi commented Jan 24, 2023

It seems there's actually a number of things missing. For example, I don't see a way to configure "inheritance", "smsRegionConfig", "monitoring", or "client" blocks, as shown in the reference.

It would be great to be able to disable anonymous users, or disable self-service via the client permissions.

@george-oakling
Copy link

Yes, pls, I would like to have custom authorized domains and other parts of the settings...

modular-magician added a commit to modular-magician/terraform-provider-google that referenced this issue Aug 2, 2023
Signed-off-by: Modular Magician <magic-modules@google.com>
modular-magician added a commit that referenced this issue Aug 2, 2023
Signed-off-by: Modular Magician <magic-modules@google.com>
@github-actions github-actions bot added service/identitytoolkit forward/review In review; remove label to forward labels Aug 17, 2023
@nioncode
Copy link

Isn't this already implemented by https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/identity_platform_config ?

However, there are many things missing that cannot be configured, e.g.:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants