mirror of
https://github.com/hanzoai/iam.git
synced 2026-11-19 18:37:16 +00:00
zipdoc keys each entry by package and address now, so the generated files are rewritten in that shape; the JWKS and token endpoints name their handler at each address so the lift finds it. Co-authored-by: Hanzo Dev <[email protected]>
20 lines
1.5 KiB
Go
20 lines
1.5 KiB
Go
// Code generated by zipdoc; DO NOT EDIT.
|
|
|
|
package registry
|
|
|
|
import (
|
|
"github.com/zap-proto/zip"
|
|
)
|
|
|
|
func init() {
|
|
zip.Describe("github.com/hanzoai/iam/internal/registry GET /v1/iam/registry/jwks", zip.Doc{
|
|
Description: "Publishes the public key your registry uses to verify the tokens issued\nabove — the one URL to configure so the registry trusts logins without holding\nany secret of its own.\n\nIf no signing key is available it refuses rather than publishing an empty set,\nbecause a registry that trusts nothing looks identical to one that trusts\neverything until somebody tries to push.",
|
|
})
|
|
zip.Describe("github.com/hanzoai/iam/internal/registry GET /v1/iam/registry/token", zip.Doc{
|
|
Description: "Signs a container client in to your registry. `docker login`, and every\nbuild tool that pushes or pulls images, lands here: it exchanges the\ncredential for a short-lived token scoped to exactly the repositories that\ncredential may touch.\n\nBoth of the shapes container tooling uses are accepted, so the same login works\nwhichever client your pipeline runs.",
|
|
})
|
|
zip.Describe("github.com/hanzoai/iam/internal/registry POST /v1/iam/registry/token", zip.Doc{
|
|
Description: "Signs a container client in to your registry. `docker login`, and every\nbuild tool that pushes or pulls images, lands here: it exchanges the\ncredential for a short-lived token scoped to exactly the repositories that\ncredential may touch.\n\nBoth of the shapes container tooling uses are accepted, so the same login works\nwhichever client your pipeline runs.",
|
|
})
|
|
}
|