okta / terraform-provider-okta

A Terraform provider to manage Okta resources, enabling infrastructure-as-code provisioning and management of users, groups, applications, and other Okta objects.
https://registry.terraform.io/providers/okta/okta
Mozilla Public License 2.0
248 stars 201 forks source link

New Resource: `okta_app_scim_push_group_rule` #1519

Open exitcode0 opened 1 year ago

exitcode0 commented 1 year ago

Community Note

Description

This one needs the no-api label 🙂 Similar to https://github.com/okta/terraform-provider-okta/issues/1409 the Okta API should provide a public endpoint to configure push group rules

New or Affected Resource(s)

Potential Terraform Configuration

resource "okta_app_saml" "aws_sso" {
  status                = "ACTIVE"
  label                 = "AWS SSO"
  preconfigured_app     = "amazon_aws_sso"
}

resource "okta_group" "app_aws_123456789012_financeReadOnly" {
    name = "app_aws_123456789012_financeReadOnly"
    description = "provides finance readOnly in the \"123456789012\" AWS account"
    skip_users = true
}

resource "okta_app_scim_push_group_rule" "example_1" {
  app_id = okta_app_saml.aws_sso.id
  name = "example group push rule"
  status = "ACTIVE"

  searchExpressionType = "STARTS_WITH"
  searchExpression = "app_aws_"

  descriptionSearchExpressionType = "STARTS_WITH"
  descriptionSearchExpression = "[AWS]"
}

resource "okta_app_scim_push_group_rule" "example_2" {
  app_id = okta_app_saml.aws_sso.id
  name = "example group push rule"
  status = "ACTIVE"

  search {
    name       = "profile.name"
    comparison = "sw"
    value      = "app_aws_"
  }
  search {
    name       = "profile.description"
    comparison = "sw"
    value      = "[AWS]"
  }
}

References

monde commented 1 year ago

@exitcode0 , I spoke with @jefftaylor-okta and he says the endpoint for this is on the roadmap for this year and will be surfaced in our "OAS3" openapi spec for the Okta management API that is public but is not fully GA yet. fwiw okta-sdk-golang does have a version that is generated with this new spec and we are going include that in our upcoming release of the Okta Terraform Provider v4.0.0

monde commented 1 year ago

Okta internal reference: https://oktainc.atlassian.net/browse/OKTA-602000

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

exitcode0 commented 1 year ago

No StaleBot 🙂

alejandrosan-tw commented 11 months ago

Any update on this? 😮

EvertonSA commented 8 months ago

any updates on this? 😮

posquit0 commented 2 months ago

Any updates on this? 😮

GraemeMeyerGT commented 1 month ago

@jefftaylor-okta / @monde did this make it into the 4.0 provider? I had a look at the https://github.com/okta/okta-management-openapi-spec but couldn't see anything in the spec that could plausibly be the endpoint in question.