You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've discovered what I assume is a bug concerning role property application_object_id. Once it has been set, it will never be removed from role during updates unless it is explicitly set to null or "".
In my opinion, application_object_id should be removed directly if not present in the payload.
I discovered this when using Vault provider for Terraform. When switching one role from using existing service principal to using Azure roles in addition to using the property permanently_delete, I got the following error :
permanently_delete must be false if application_object_id is provided
The following code should handle if application_object_id is missing from payload :
Hi,
I've discovered what I assume is a bug concerning role property
application_object_id
. Once it has been set, it will never be removed from role during updates unless it is explicitly set to null or "".In my opinion,
application_object_id
should be removed directly if not present in the payload.I discovered this when using Vault provider for Terraform. When switching one role from using existing service principal to using Azure roles in addition to using the property
permanently_delete
, I got the following error :permanently_delete must be false if application_object_id is provided
The following code should handle if application_object_id is missing from payload :
vault-plugin-secrets-azure/path_roles.go
Lines 266 to 281 in 789187e
Adding an else block like this should be effective :
The text was updated successfully, but these errors were encountered: