SAP-samples / btp-developer-guide-cap

SAP BTP Developer’s Guide offers developer guidance to software developers on how to implement business applications using SAP Cloud Application Programming Model on SAP BTP Cloud Foundry and SAP BTP Kyma Runtime following the best practices.
Apache License 2.0
37 stars 22 forks source link

Set Up Data Collection for SAP Cloud ALM in a CAP Application: Replace base64 encoded version of username:password with environment variable #121

Open gregorwolf opened 6 days ago

gregorwolf commented 6 days ago

Hello SAP BTP CAP Developer Guide Team,

from the page OpenTelemetry@SAP I was pointed to Enable Data Collection for Real User Monitoring and Health Monitoring. There you mention to create a .npmrc file at the root of the Incident Management application and paste the following:

https://73555000100200018064.npmsrv.cdn.repositories.cloud.sap/:_auth=<base64 encoded version of username:password>

I would suggest to replace that with:

https://73555000100200018064.npmsrv.cdn.repositories.cloud.sap/:_auth=${SAP_NPM_AUTH}

so that the credentials are never stored, the .npmrc file can be checked in and the value is set via an environment variable in the build pipeline or localy.

Best Regards Gregor