Set registry auth
Stores or replaces the credentials used when this server talks to the registry. The method must match the registry’s well-known auth advertisement: a mismatch or an unsupported method fails with 400 and nothing is stored. Credentials are encrypted at rest with AES-256-GCM. For oauth2, a client-credentials token is exchanged immediately; transport policy refusals (non-https token endpoint outside the loopback/insecure-CIDR allowlist) fail with 400, while exchange failures store the credentials and report error status.
Path Parameters
Registry slug identifying the registry.
1Body
- Option 1
- Option 2
Credentials used when the server talks to the registry. The token endpoint (oauth2) and header name (apiKey) always come from the registry's well-known advertisement, never from this request.
Response
The credentials were stored.
Response body of a registry auth setup request.
Outcome of storing credentials for a registry.