BTP Security Architecture
End-to-end security architecture for SAP BTP — covering identity federation, OAuth 2.0 authorization, network security, audit logging, and data protection across runtimes and services.
Executive Summary
SAP BTP security is built on a layered model: identity federation (IAS), OAuth 2.0 authorization (XSUAA), role-based access control (scopes + role collections), network security (Cloud Connector, Private Link, TLS), and audit logging. Every BTP application must implement all layers — there is no default security posture. Security is a shared responsibility between SAP (platform) and the customer (application configuration).
Identity Layer
Authorization Layer
Network Security
xs-security.json — XSUAA Application Security Descriptor
1{
2 "xsappname": "dewa-s4-extension",
3 "tenant-mode": "dedicated",
4 "scopes": [
5 {
6 "name": "$XSAPPNAME.viewer",
7 "description": "View extension data"
8 },
9 {
10 "name": "$XSAPPNAME.editor",
11 "description": "Edit extension data"
12 },
13 {
14 "name": "$XSAPPNAME.admin",
15 "description": "Administer extension settings"
16 }
17 ],
18 "role-templates": [
19 {
20 "name": "Viewer",
21 "scope-references": ["$XSAPPNAME.viewer"]
22 },
23 {
24 "name": "Editor",
25 "scope-references": ["$XSAPPNAME.viewer", "$XSAPPNAME.editor"]
26 },
27 {
28 "name": "Administrator",
29 "scope-references": ["$XSAPPNAME.viewer", "$XSAPPNAME.editor", "$XSAPPNAME.admin"]
30 }
31 ],
32 "oauth2-configuration": {
33 "token-validity": 3600,
34 "refresh-token-validity": 86400
35 }
36}Audit & Compliance
Enterprise Example: DEWA Full Security Stack
Best Practices
Never use SAP ID Service in production — it lacks MFA, SCIM provisioning, and custom password policies required for enterprise compliance.
Avoid broad admin-only patterns. Fine-grained scopes enable least-privilege RBAC and make access reviews auditable.
Client credentials for service-to-service communication should be rotated on a defined schedule. Use BTP Credential Store to manage rotation safely.
The Audit Log service records all authentication events, configuration changes, and data access. Required for SOC 2, ISO 27001, and UAE PDPL compliance.
Assign Role Collections to AD groups (not individual users) via IPS. Individual assignments do not scale and are impossible to audit at enterprise scale.
CAP does this automatically with XSUAA binding (@sap/xssec). For custom services, never skip token validation — even for internal service calls.
Common Pitfalls
Zero Trust Security Checklist
Implement Zero Trust principles — verify every request even within BTP. Use principle of least privilege for all role assignments.