-
Notifications
You must be signed in to change notification settings - Fork 206
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
Datasource for app schema(s) #2036
Comments
@exitcode0 so this is related to the OIN app? Similar to #1805? Or you just want to expose the schema through datasource? I am a bit confused? |
This issue is stale because it has been open 60 days with no activity. Comment or this will be closed in 35 days |
@duytiennguyen-okta It is related, but I guess this is for a slightly different ask |
OKTA internal reference https://oktainc.atlassian.net/browse/OKTA-795169 |
Community Note
Preamble
There is an existing issue for this that was a victim of the old stalebot - #1195
I decided to create this issue rather than commenting on the now closed issue as a comment on the now closed issue relies on people not missing the Github Notification for the comment
Prior Context
Provisioning applications can mutate their base or custom schema when provisioning is enabled for the first time
This leads to a few problems for the provider (more details in #1805):
Current Behaviour
Currently to work around the state of an application's schema being unknowable I must use
terraform.workspace
orokta_app_saml.features
to infer the state of schrodinger's app schema in bodgy workaroundsCurrent Workarounds
Click to expand
Alternative solutions
Importing the Attributes
Importing the attributes is a non-starter because while this will work for the application at hand.
If a colleague ever duplicates your configuration to create another app instance, their deployment will fail due to the attempted modification of the application base schema
Proposed Solution
To work around this behaviour of OIN applications, the provider should include a DataSource that facilitates checking the application schema during a
Terraform plan
orTerraform apply
New or Affected Resource(s)
okta_app_user_base_schema
okta_app_user_custom_schema
okta_app_user_schema
Potential Terraform Configuration
Click to expand
References
The text was updated successfully, but these errors were encountered: