Data Boundaries, Security, and Governance for Clean Core Extensions (Part 5)
Preview · a free account unlocks the full lesson
How to enforce API-only data access, design the security model for extensions, and establish governance controls that keep custom code upgrade-safe over time.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Clean Core is ultimately an access-control and governance discipline as much as a coding style. Once an organization agrees to avoid core modification, the harder ongoing work is enforcing that no team quietly reintroduces tight coupling through undisclosed table access, unreleased API usage, or ad hoc database views. This lesson focuses on the data, security, and governance mechanisms an architect must put in place to make Clean Core durable rather than a one-time migration slogan.
Data access boundary: the core principle is that any extension, whether in-app or side-by-side, must read and write only through released interfaces - released CDS views, released BAdIs, and released APIs (OData V2/V4, SOAP, or REST as published in the API Business Hub or equivalent released catalog).
Unreleased objects can change or disappear across upgrades without notice, and direct table access bypasses business logic such as authorization checks, derivations, and consistency rules embedded in the application layer. In S/4HANA Public Cloud this is enforced at the platform level - unreleased objects are simply not accessible from the extensibility framework.
In private cloud and on-premise, enforcement is largely a governance and code-review responsibility, since the ABAP stack technically still permits direct access; architects must rely on static code checks, custom code migration tooling categorization (released vs not released, or deprecated), and CI/CD quality gates to catch violations before they reach production.
Security model: side-by-side extensions on BTP introduce a distinct security surface. Authentication typically uses OAuth2, with client credentials for system-to-system calls and principal propagation when an extension must act on behalf of an end user (so the core's own authorization checks still apply based on that user's roles, rather than a blanket service account bypassing segregation-of-duties controls).
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.