cancel
Showing results for 
Search instead for 
Did you mean: 

Service binding details changing on every deployment of mtar.

krishnan-jr
Explorer
0 Kudos

Hi Experts,

I have a XSJS application bound to a UAA service and HANA Cloud instance. On every deployment of mtar file for update the service binding details are also getting updated. for example this is the before and after image of service binding details of SAP HANA Schemas & HDI Containers

pic1.png

pic2.png

As you can see both the RT and DT users are getting updated on every app update. This is the same case with uaa service

Please help me on solving this issue.

this is my mta file

ID: app
_schema-version: '3.1'
version: 0.0.1
modules:
  - name: app-db1
    type: hdb
    path: db
    parameters:
      memory: 256M
      disk-quota: 512M
    requires:
      - name: HANA_BI
      - name: grant-service
  - name: app-srv1
    type: nodejs
    path: srv
    properties:
      CORS: '[{"uriPattern": "^/(.*)$", "allowedOrigin": [{"host":"*", "protocol":"https"}], "allowedMethods": ["GET", "POST", "OPTIONS"], "allowedHeaders": ["Origin", "Accept", "X-Requested-With", "Content-Type", "Access-Control-Request-Method", "Access-Control-Request-Headers", "Authorization", "X-Sap-Cid", "X-Csrf-Token"], "exposeHeaders": ["Accept", "Authorization", "X-Requested-With", "X-Sap-Cid", "Access-Control-Allow-Origin", "Access-Control-Allow-Credentials", "X-Csrf-Token", "Content-Type"]}]'
      SAP_JWT_TRUST_ACL: '[{"clientid":"*","identityzone":"*"}]'
    parameters:
      disk-quota: 512M
      memory: 256M
    provides:
      - name: srv_api
        properties:
          url: '${default-url}'
          forwardAuthToken: true
    requires:
      - name: HANA_BI
      - name: app_UAA
      - name: app-db1
  - name: app-app
    type: html5
    path: app
    parameters:
      disk-quota: 256M
      memory: 256M
    properties:
      SAP_JWT_TRUST_ACL: '[{"clientid":"*","identityzone":"*"}]'
    requires:
      - name: app_UAA
      - name: srv_api
        group: destinations
        properties:
          name: srv
          url: '~{url}'
          forwardAuthToken: true
resources:
  - name: app_UAA
    type: org.cloudfoundry.managed-service
    parameters:
      service-plan: application
      service: xsuaa
      path: ./xs-security.json
  - name: HANA_BI
    type: com.sap.xs.hdi-container
  - name: grant-service
    type: org.cloudfoundry.existing-service
    parameters:
      service-name: grant-service<br>

Thanks and regards

Anoop

Accepted Solutions (0)

Answers (2)

Answers (2)

gregorw
Active Contributor

That is standard behaviour in the CF environment which I think can*t be changed. If you need access data for local testing you should create service keys.

WouterLemaire
Active Contributor
0 Kudos

Not sure but maybe it could be possible to keep the same keys when using existing-service-keys like described here: Create a Service Key - SAP Help Portal

You'll have to create them manually but can use the same ones always.