0

We are using CloudFoundry for hosting our micro services. Also, there is an external service related to SQLMX with credentials like username, password, connectionProperties, etc. Can we write a script to read these credentials ?

I am just referring to the script post-login (as I have already reached till that point via script)

copenndthagen
  • 49,230
  • 102
  • 290
  • 442
  • There's very little detail here, and I'd suggest you provide more specifics about what you're trying to do. That said, service credentials on CF are provided through the `VCAP_SERVICES` env variable, so you can read that and find creds dynamically for bound services. https://docs.cloudfoundry.org/devguide/deploy-apps/environment-variable.html#VCAP-SERVICES – Daniel Mikusa Feb 08 '23 at 13:46

0 Answers0