Skip to content

[FEAT] Operator: App Identification enhanced#331

Draft
Pavan-SAP wants to merge 1 commit intomainfrom
appId
Draft

[FEAT] Operator: App Identification enhanced#331
Pavan-SAP wants to merge 1 commit intomainfrom
appId

Conversation

@Pavan-SAP
Copy link
Member

@Pavan-SAP Pavan-SAP commented Feb 5, 2026

Previously, we used the provider's globalAccountId and btpAppName to identify an app.
This approach was not reliable because the globalAccountId in the subscription payload might not belong to the provider, making it impossible to uniquely identify the app.

To solve this, we now introduce providerSubaccountId in the CAPApplication spec. This value is included in the subscription payload and along with btpAppName allows us to uniquely and correctly identify the app.

Eventually, we plan to deprecate globalAccountId and replace it with providerSubaccountId in CAPApplication spec.

So far, we used the `globalAccountId` of the provider along with the
`btpAppName` to uniquely identify the app.
This was however not right as the `globalAccountId` in the subscription
payload may not be from the provider, hence there was no way to
uniquely identify the app!
To support such scenarios, we now introduce the `providerSubaccountId`
within CAPApplication spec, as this is also part of the subscription
payload, it now enables us to uniquely identify the app properly.

_Going foward, we will most likely deprecate the `globalAccountId` and
use `providerSubaccountId` exclusively to uniquely identify apps._
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 5, 2026

@Pavan-SAP Pavan-SAP added the build-pr-images Set this label on PRs to build docker images for changes label Feb 5, 2026
@Pavan-SAP
Copy link
Member Author

To test this we need to apply CRDS from:
https://github.com/SAP/cap-operator/tree/appId/crds

we need images from:
ghcr.io/cap-operator-sap/pr-image/controller:pr-331
ghcr.io/cap-operator-sap/pr-image/server:pr-331
ghcr.io/cap-operator-sap/pr-image/web-hooks:pr-331

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-pr-images Set this label on PRs to build docker images for changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant