feat!: dict-primitive messaging payloads and unified Azure credential… - #17
Merged
Conversation
… chain; release v0.2.7 BREAKING CHANGE: MessagingBackend.send/send_batch take a dict, not bytes. send_json() and Message.json() are removed. - messaging: send/send_batch are now concrete on the ABC and serialize through to_json(); backends implement _send_json/_send_json_batch and can never see an unserialized payload, while callers can never send a non-dict. Replaces the send_json() free function and Message.json() with Message.data. Message.body stays raw bytes so a malformed payload is still inspectable for DLQ triage. - messaging/sqs: MessageBody takes the JSON string directly, dropping an encode/decode round-trip and its UnicodeDecodeError failure mode. - messaging/azure_bus: cache one send link for the lifetime of the backend instead of opening and tearing down an AMQP link on every message; rebuild and retry once on a dead link. Fix error translation — ServiceBusError subclasses AzureError, not HttpResponseError, so AMQP-path failures were leaking raw Azure exceptions to callers. - azure auth: new cloudrift/core/azure_credentials.py defines the credential chain once (workload identity -> managed identity -> az CLI); all eight Azure backends now use it instead of ManagedIdentityCredential. Excludes ambient AZURE_CLIENT_ID/AZURE_CLIENT_SECRET, the Azure counterpart of the SQS exclude_env_credentials option. Each from_managed_identity gains a credential_options dict, forwarded to DefaultAzureCredential. - Bump version to 0.2.7, re-lock.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



… chain; release v0.2.7
BREAKING CHANGE: MessagingBackend.send/send_batch take a dict, not bytes. send_json() and Message.json() are removed.