I submitted a feedback asking what would be safe prevent MITM attacks against CloudKit web APIs, pinning against the CA was an okay'd implementation.
This is the response I got in my feedback: FB9445034
You can pin to the various Apple CA or sub-CA certificates that can be found here:
https://www.apple.com/certificateauthority/public/ https://www.apple.com/certificateauthority/
All the certificates for CloudKit and iCloud web APIs have cert chains that point to the certificates listed.
I have followed this article Identity Pinning and modified my App Clip info.plist accordingly to pin against CloudKit Web Services (https://api.apple-cloudkit.com). I intentionally mucked up the identity pin to verify my URLSession requests failed. I didn't receive any URLSession errors in my App Clip or Application targets when I had the plist updates in both.
In reading these other forum posts I'm curious if the Identity Pinning is supported in App Clips or not.
https://developer.apple.com/forums/thread/678081 https://developer.apple.com/forums/thread/681734