Skip to content

refactor(swift): log message rejections as warnings - #646

Open
tiagocandido wants to merge 1 commit into
mainfrom
08-14-refactor_swift_message_rejection_warn_logging
Open

refactor(swift): log message rejections as warnings#646
tiagocandido wants to merge 1 commit into
mainfrom
08-14-refactor_swift_message_rejection_warn_logging

Conversation

@tiagocandido

@tiagocandido tiagocandido commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

What changes are you making?

Remove Configuration.onMessageRejected and the public MessageRejection type while they have only shipped in an alpha. Origin validation keeps a single configuration surface: allowedMessageOrigins.

Rejected messages are never silently dropped — each rejection is logged as a warning with the trusted origin and reason. The untrusted message body is not logged. Child-frame messages are ignored at debug level as ambient noise. A structured observability API for rejections can be added later without a breaking change.

How to test

From platforms/swift:

./Scripts/xcode_run test ShopifyCheckoutKit-Package
./Scripts/api check

Remove Configuration.onMessageRejected and the public MessageRejection
type before they ship in a release. Origin-validation rejections are now
always logged at warn level with the trusted origin and reason; the
untrusted message body is never logged. Child-frame messages are ignored
at debug level as ambient noise.
@github-actions github-actions Bot added the #gsd:50662 Rebase Checkout Kit on UCP label Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

@bitrise

bitrise Bot commented Aug 14, 2026

Copy link
Copy Markdown

Install this build

Open Tophat, select your target device, then click Install. Links open on the Mac running Tophat.

SDK Install
Swift Install with Tophat

Checkout Kit E2E results

Status Suite Target Platform OS version tag Device
swift-ios swift ios latest iPhone 15
iOS 27 Beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#gsd:50662 Rebase Checkout Kit on UCP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants