Skip to content

Commit 965492f

Browse files
authored
Simplify multitenancy guide (#2173)
- `with-mtx` profile config is added on `cds add multitenancy` by default. - Removed `oauth-configuration` snippet: was hardcoded to a specific region (bad practice!) and we add a more generic one in `cds add xsuaa/ias`. - `cds add kyma` is a convenient shortcut for `cds add helm,containerize`. - Removed the "Behind the Scenes" section as it's overly hard-wired to XSUAA + Service Manager. It wasn't adding a lot of value imo.
1 parent 90abd4a commit 965492f

File tree

2 files changed

+4
-35
lines changed

2 files changed

+4
-35
lines changed

guides/deployment/to-cf.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,6 @@ To enable multitenancy for production, run the following command:
216216
cds add multitenancy
217217
```
218218

219-
[Learn more about MTX services.](../multitenancy/#behind-the-scenes){.learn-more}
220-
221219
<br>
222220

223221
::: tip You're set!

guides/multitenancy/index.md

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ cds add multitenancy
7979
"requires": {
8080
"[production]": {
8181
"multitenancy": true
82+
},
83+
"[with-mtx]": {
84+
"multitenancy": true
8285
}
8386
}
8487
}
@@ -721,25 +724,11 @@ cds add mta
721724
```
722725

723726
```sh [Kyma]
724-
cds add helm,containerize
727+
cds add kyma
725728
```
726729

727730
:::
728731

729-
::: details Add xsuaa redirect for trial / extension landscapes
730-
Add the following snippet to your _xs-security.json_ and adapt it to the landscape you're deploying to:
731-
732-
```json
733-
"oauth2-configuration": {
734-
"redirect-uris": ["https://*.cfapps.us10-001.hana.ondemand.com/**"]
735-
}
736-
```
737-
738-
:::
739-
740-
[Learn more about configured BTP services for SaaS applications.](#behind-the-scenes){.learn-more}
741-
742-
743732
::: code-group
744733

745734
```sh [Cloud Foundry]
@@ -1275,24 +1264,6 @@ The main task for the MTX sidecar is to serve `subscribe` and `upgrade` requests
12751264

12761265
The CAP services runtime requests models from the sidecar only when you apply tenant-specific extensions. For Node.js projects, you have the option to run the MTX services embedded in the main app, instead of in a sidecar.
12771266

1278-
<!-- Who cares? Also outdated with IAS -> busywork keeping that in sync -->
1279-
### Behind the Scenes { #behind-the-scenes}
1280-
1281-
With adding the MTX services, your project configuration is adapted at all relevant places.
1282-
1283-
Configuration and dependencies are added to your _package.json_ and an _xs-security.json_ containing MTX-specific scopes and roles is created. {.node}
1284-
1285-
Configuration and dependencies are added to your _.cdsrc.json_ and an _xs-security.json_ containing MTX-specific scopes and roles is created. {.java}
1286-
1287-
For the MTA deployment service dependencies are added to the _mta.yaml_ file. Each SaaS application will have bindings to at least three SAP BTP service instances.
1288-
1289-
| Service | Description |
1290-
| ------------------------------------------------------------ | ------------------------------------------------------------ |
1291-
| [Service Manager](https://help.sap.com/docs/SERVICEMANAGEMENT/09cc82baadc542a688176dce601398de/4e19b11211fe4ca2a266d3fdd4a72188.html) (`service-manager`) | CAP uses this service for creating a new SAP HANA Deployment Infrastructure (HDI) container for each tenant and for retrieving tenant-specific database connections. |
1292-
| [SaaS Provisioning Service](https://help.sap.com/products/BTP/65de2977205c403bbc107264b8eccf4b/3971151ba22e4faa9b245943feecea54.html) (`saas-registry`) | To make a SaaS application available for subscription to SaaS consumer tenants, the application provider must register the application in the SAP BTP Cloud Foundry environment through the SaaS Provisioning Service. |
1293-
| [User Account and Authentication Service](https://help.sap.com/docs/CP_AUTHORIZ_TRUST_MNG) (`xsuaa`) | Binding information contains the OAuth client ID and client credentials. The XSUAA service can be used to validate the JSON Web Token (JWT) from requests and to retrieve the tenant context from the JWT.|
1294-
1295-
12961267
<!--
12971268

12981269
## Multiple Microservices

0 commit comments

Comments
 (0)