Skip to Content
0
Dec 01, 2021 at 03:40 PM

Service binding details changing on every deployment of mtar.

400 Views Last edit Dec 01, 2021 at 03:42 PM 2 rev

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

Attachments

pic2.png (30.2 kB)
pic1.png (37.3 kB)