on 01-02-2024 8:50 AM
Hello,
I'm currently working on a Spring project that's deployed in a SAP BTP subaccount space. In the BTP cockpit, I've set up environment variables to store credentials, and this configuration works well when the project is deployed.
However, I encounter an issue during the development phase. When I run the application locally in the Business Application Studio for testing, I'm unable to access these environment variables defined in the BTP subaccount.
I'm seeking advice on the best practice for managing these variables. Specifically, I need a solution that allows me to:
Any guidance on how to effectively manage these environment variables in both local and deployed environments would be greatly appreciated.
Thanks in advance.
101ger
I would suggest BTP Destination is the right choice to store your credentials and to test your application locally in VS Code and BAS as well.
Also there is Service in BTP which is Credential store which can also store the credentials but for testing it locally… I don't think it's possible to test in Hybrid mode but you can bind the app after deploying to BTP..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yan,
if you develop your spring project with CAP Java you could use Hybrid Testing. But that should be also possible with a pure spring project when you provide the environment variable VCAP_SERVICES with the connection data to the Destination Service. To gather a better understanding of the destination service I would suggest you try my REST Client Script destination.http. You could use the destination service as an easy to use option beside Credential Store that Yogananda suggested. Just get the values from it and use it then in your own implementation for the SFTP connection.
Best Regards
Gregor
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.