Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Latest commit

 

History

History

ex3_sapjavabuildpack

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Exercise 3 - Check and upgrade SAP Java Buildpack and XSA Java Buildpack

This only applies to J2EE web applications securing their application with SAP Java Buildpack or XSA Java Buildpack.

As of SAP Java Buildpack version 1.26.1 and as of XSA Java Buildpack version 1.8.18 (XSA PL 129), the Java runtime provides the open source java-security library from maven central. This is a fully compatible change if you use Java Servlet Security only and the APIs provided by the Buildpack. Optionally you can leverage the latest API as announced with release note 2006A.

The SAP and XSA Java Buildpack no longer provide deprecated SAP-internal Security libraries and no longer depends on Spring Security / Jackson and Common Crypto Library.

Exercise 3.1 Clean-up dependencies

In general, the APIs are kept compatible. For this reason we do not expect any incompatibilities. We recommend that you update your pom.xml dependencies towards the open-source API in order to benefit from future API enhancements. For a step-by-step guide on how to replace your dependencies to the deprecated SAP-internal security libraries with the open-sourced ones, see Migration Guide for J2EE Web Applications that use SAP Buildpack for securing their Applications which is located in SAP/cloud-security-xsuaa-integration repository.

Exercise 3.2 Leverage BOM

The versions of the SAP Java buildpack dependencies and the provided APIs from supported runtime containers, could be consumed through a Bill of Materials (BOM). Use the BOM to control the versions of a project’s dependencies as described here on help.sap.com.

Exercise 3.3 Deploy and test your application

To check whether your upgrade had no undesired side effects, deploy your application to Cloud Foundry and test.

Summary

You've successfully removed the dependency to the SAP internal container-security api for Java, which is deprecated and you have successfully replaced it with the open-source security client library, which is available on maven central.

Optionally continue with - Migration Guide for J2EE Web Applications that use SAP Buildpack for securing their applications - API Version 2 which is located in SAP/cloud-security-xsuaa-integration repository.

Or

Continue with - Exercise 5 - Follow-up tasks due to deprecation of SAP_JWT_TRUST_ACL

Further references