Cloud Foundry: Update xs-security.json for an Existing XSUAA Instance

If an application changes its authorization scopes or role templates, the existing XSUAA service instance may need its application security descriptor updated.

Prepare the change

Confirm the target organization and space, the correct service instance and all bound application dependencies. Keep the previously deployed descriptor in version control. Review changes to roles, attributes and scopes before updating a shared instance.

cf target
cf services

Update the instance

Use the approved xs-security.json file and substitute the actual service instance name.

cf update-service my-xsuaa -c xs-security.json
cf service my-xsuaa

Wait for the service operation to complete and check its status. Some changes are restricted, such as modifying an existing attribute’s value type. Review application deployment and role collection assignments as required. Test both authorized and unauthorized access with fresh sessions. Do not delete and recreate a production security service simply to update its descriptor.

Documentation: SAP Help – Update a Service Instance

SAP Note: 3699358 (related topic).

You May Also Like

Leave a Reply?