This repository has been archived on 2026-11-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
artifactapi/internal/auth
unkin-agent 232ff21ef9 Accept OAuth2 POST form credentials on registry /v2/token (#180)
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>
2026-11-08 11:06:55 +11:00
..
2026-06-07 19:30:35 +10:00