232ff21ef9
Registry write gating broke buildkit pushes: containerd's resolver fetches tokens with an OAuth2 POST form (credential in the body, not an Authorization header), so `/v2/token` issued the anonymous token and uploads 401'd with `invalid token`. - read the credential from the `password` or `refresh_token` field of a urlencoded `POST /v2/token` body, capped at 16 KiB; multipart is never parsed - add tests for the grant forms, multipart/oversized bodies, and a push/pull through the real containerd resolver (test-only containerd v2 dependency) Reviewed-on: #180 Co-authored-by: unkin-agent <unkin-agent@unkin.net> Co-committed-by: unkin-agent <unkin-agent@unkin.net>