Commit 3b3471a
fix: verify dedicated endpoint predict_async TLS against the certifi CA bundle
Endpoint.predict_async on dedicated endpoints used a bare aiohttp.ClientSession,
which verifies TLS against the system CA store and fails with
CERTIFICATE_VERIFY_FAILED in environments where that store is missing or
incomplete (e.g. containers). This builds an SSLContext from certifi (matching
the synchronous predict() path, which uses requests/certifi) so the async path
trusts the same CAs.
PiperOrigin-RevId: 9276495781 parent 05234d1 commit 3b3471a
3 files changed
Lines changed: 41 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2811 | 2811 | | |
2812 | 2812 | | |
2813 | 2813 | | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
2814 | 2824 | | |
2815 | 2825 | | |
2816 | 2826 | | |
2817 | | - | |
| 2827 | + | |
2818 | 2828 | | |
2819 | 2829 | | |
2820 | 2830 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| 327 | + | |
327 | 328 | | |
328 | 329 | | |
329 | 330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
3809 | 3810 | | |
3810 | 3811 | | |
3811 | 3812 | | |
| 3813 | + | |
| 3814 | + | |
| 3815 | + | |
| 3816 | + | |
| 3817 | + | |
| 3818 | + | |
| 3819 | + | |
| 3820 | + | |
| 3821 | + | |
| 3822 | + | |
| 3823 | + | |
| 3824 | + | |
| 3825 | + | |
| 3826 | + | |
| 3827 | + | |
| 3828 | + | |
| 3829 | + | |
| 3830 | + | |
| 3831 | + | |
| 3832 | + | |
| 3833 | + | |
| 3834 | + | |
| 3835 | + | |
| 3836 | + | |
| 3837 | + | |
| 3838 | + | |
| 3839 | + | |
| 3840 | + | |
3812 | 3841 | | |
3813 | 3842 | | |
3814 | 3843 | | |
| |||
0 commit comments