Skip to content

fix(extensibility): use ConsumptionLevel for UMS destination lookup#128

Closed
steffensa wants to merge 3 commits into
SAP:mainfrom
steffensa:fix/ums-transport-consumption-level
Closed

fix(extensibility): use ConsumptionLevel for UMS destination lookup#128
steffensa wants to merge 3 commits into
SAP:mainfrom
steffensa:fix/ums-transport-consumption-level

Conversation

@steffensa
Copy link
Copy Markdown
Contributor

The UMS transport passes Level.SUB_ACCOUNT to get_destination(), which appends @SUB_ACCOUNT to the URL path. The Destination Service V2 API rejects this with HTTP 400 because it expects lowercase level hints.

get_destination() accepts ConsumptionLevel, not Level:

Enum Value URL suffix Result
Level.SUB_ACCOUNT "SUB_ACCOUNT" @SUB_ACCOUNT HTTP 400
ConsumptionLevel.PROVIDER_SUBACCOUNT "provider_subaccount" @provider_subaccount OK
ConsumptionLevel.SUBACCOUNT "subaccount" @subaccount OK

This uses PROVIDER_SUBACCOUNT since UMS destinations are provisioned in the provider subaccount.

@steffensa steffensa requested a review from a team as a code owner May 20, 2026 11:54
The UMS transport passed Level.SUB_ACCOUNT to get_destination(), which
appends '@SUB_ACCOUNT' to the URL path. The Destination Service V2 API
rejects this with HTTP 400 because it expects lowercase level hints.

Use ConsumptionLevel.PROVIDER_SUBACCOUNT instead, which resolves to
'@provider_subaccount' — the correct value for provider-scoped
destinations like the UMS mTLS destination.
@steffensa steffensa force-pushed the fix/ums-transport-consumption-level branch from bfd43d3 to 6889db5 Compare May 20, 2026 11:57
tiagoek added 2 commits May 20, 2026 16:20
Merge main and align release version for UMS transport fix.
@tiagoek
Copy link
Copy Markdown
Contributor

tiagoek commented May 20, 2026

Superseded by #132, which combines this change with #115 in a single v0.19.3 release PR.

No further updates are expected on this branch. Please review and merge #132 instead.

@tiagoek
Copy link
Copy Markdown
Contributor

tiagoek commented May 21, 2026

merged via #132

@tiagoek tiagoek closed this May 21, 2026
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