SAP / SAP/cloud-sdk-python

Feature Request: Add CBC (Central Business Configuration) consumption support

Offen
#280 3 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

enhancement
Vorherrschende Sprache
Python
Sterne
28
Forks
42
Ø Merge
2 T. 13 Std.
Gemergte PRs (30 T.)
35

Beschreibung

Describe the Problem

CBC (Central Business Configuration) is an SAP service for managing tenant-specific business configuration content.

There is currently no support in the SAP Cloud SDK for Python for consuming CBC configuration. SAP applications and AI agents built on SAP BTP need to fetch tenant-specific business configuration from CBC at runtime and keep it fresh as content changes.

Without SDK support, every application team must implement the same HTTP client, mTLS authentication, caching, and cache-invalidation logic themselves.

Propose a Solution

Add a cbc subpackage to the SAP Cloud SDK for Python covering the consumption side of CBC integration. The key components:

  • CBCClient Protocol - interface for accessing CBC configuration; allows different implementations to be substituted (production, local dev, test doubles)
  • DefaultClient - production client using mTLS (X.509) authentication and subdomain-per-tenant routing; auto-detects local/mock mode from the URL
  • CachingClient - implements CBCClient with an in-memory cache in front of a delegate client; in-memory backend included, protocol open for custom backends
  • client_from_env() - factory that resolves the right client from environment variables or well-known credential paths

The target consumers are SAP application developers and AI agent developers writing Python on BTP - not end SAP customers.

Describe Alternatives
  • Each team implements their own client: results in duplicated boilerplate and inconsistent caching and error-handling strategies across teams.
  • Generic HTTP client only: leaves mTLS setup, version resolution, and caching entirely to the caller.
Affected Development Phase

Development

Impact

Impaired

Timeline

Active development is underway. I am willing to work on this and open a pull request once the issue is approved.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.