-
Notifications
You must be signed in to change notification settings - Fork 214
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
metadata validation failed in okta_app_saml #1465
Comments
Thank @ppanan33 . I am not familiar with that specific error and will need time to debug it. There might be an issue in the app lifecycle where a change to the app needs to be made in a deactivated status first. I don't have any recommendations for a workaround with this yet. Marking this as a bug. Okta internal reference https://oktainc.atlassian.net/browse/OKTA-581716 |
Thanks @monde, there is a hint might help, you can get the metadata via below API for ACTIVE saml app, but for INACTIVE saml app, it throw error which is almost same as in Terraform. |
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 |
Is there any update on this issue. When changing the status from ACTIVE to INACTIVE this error is thrown. We have dedicated api to deactivate app but for terraform there isnt anything other than status change. |
@ppanan33 @askmeidentity do you think the correct behavior, when the application is deactivated, is to set the |
@duytiennguyen-okta and I looked at this some more. We think there is a flaw in the way all the apps do update. If you are using TF to disable an app then any other updates in the same apply are invalid for that update. Okta treats deactivated apps as a soft delete, once deactivated, the operator can no longer make associations to that app or update it's attributes. The only action or change that can be taken on an deactivated app is activate it or delete it. I'm going to update all the apps behavior to be more precise about this. And also update our docs. |
- `okta_app_auto_login` - `okta_app_basic_auth` - `okta_app_bookmark` - `okta_app_oauth` - `okta_app_saml` - `okta_app_secure_password_store` - `okta_app_shared_credentials` - `okta_app_swa` - `okta_app_three_field` Includes ACC tests. Closes #1465
- `okta_app_auto_login` - `okta_app_basic_auth` - `okta_app_bookmark` - `okta_app_oauth` - `okta_app_saml` - `okta_app_secure_password_store` - `okta_app_shared_credentials` - `okta_app_swa` - `okta_app_three_field` Includes ACC tests. Closes #1465
I was incorrect in my previous comment. We did make an update to all the Okta apps including
That will be PR #1806 |
- `okta_app_auto_login` - `okta_app_basic_auth` - `okta_app_bookmark` - `okta_app_oauth` - `okta_app_saml` - `okta_app_secure_password_store` - `okta_app_shared_credentials` - `okta_app_swa` - `okta_app_three_field` Includes ACC tests. Closes #1465
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
when using okta_app_saml to deactive a saml app, it will return the error
This operation on app metadata is not yet supported: No active instances.
but the app DOES de-active successfully. For the API{{url}}/api/v1/apps/{{appId}}/sso/saml/metadata?kid={{keyId}}
, if a saml app is inactive, the metadata can't be found, so I thinkokta_app_saml
should be updated for this case.Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: