Skip to content

feat: Added Endpoint Integration for CMA Python SDK#159

Merged
OMpawar-21 merged 2 commits into
developmentfrom
enhc/DX-7277
Jun 8, 2026
Merged

feat: Added Endpoint Integration for CMA Python SDK#159
OMpawar-21 merged 2 commits into
developmentfrom
enhc/DX-7277

Conversation

@OMpawar-21

Copy link
Copy Markdown

Replaces hardcoded region→host mappings with an Endpoint class backed by the Contentstack Regions Registry. New regions require zero SDK code changes.

Changes

  • endpoint.py — new Endpoint class, 3-tier resolution (memory → disk → CDN)
  • contentstack.pyClient resolves via Endpoint instead of if/elif chain
  • __init__.py — exports Endpoint + module-level get_contentstack_endpoint() proxy
  • data/regions.json — bundled registry (gitignored, included in wheel)
  • scripts/download_regions.py — refresh registry manually
  • 56 new unit tests, ENDPOINT_INTEGRATION.md, changelog

Notes

  • Custom host= still overrides resolution — no breaking changes
  • Unknown regions fall back to legacy {region}-api.contentstack.com pattern

@OMpawar-21 OMpawar-21 requested a review from a team as a code owner June 8, 2026 08:00
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 1 25 ✅ Passed
🟡 Medium Severity 0 3 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 1
  • Medium without fixes: 3
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@OMpawar-21 OMpawar-21 requested a review from sunil-lakshman June 8, 2026 08:07
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 1 25 ✅ Passed
🟡 Medium Severity 0 3 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 1
  • Medium without fixes: 3
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@OMpawar-21 OMpawar-21 requested a review from reeshika-h June 8, 2026 08:07
@OMpawar-21 OMpawar-21 merged commit 057e873 into development Jun 8, 2026
8 checks passed
@OMpawar-21 OMpawar-21 deleted the enhc/DX-7277 branch June 8, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants