dcloud ecr signing add-key

Trust a cosign public key or a notation certificate

IAM ecr:CreateSigningKeyChanges state

kind "cosign": the PEM public key (cosign.pub; ECDSA, RSA ≥ 2048 or Ed25519). kind "notation": PEM certificate(s) — a root, an intermediate or the signing certificate — that a signature's chain must reach. repositoryPattern (* globs, default "*") limits which repositories the key may vouch for.

Synopsis

dcloud ecr signing add-key --name name --kind kind --pem pem [flags]

Flags

  • --nameRequired

    string

    A name for the key, unique in the organization: 1–64 letters, digits, space, . _ - (starting with a letter or digit)

    Constraints: 1-64 chars, /^[A-Za-z0-9][A-Za-z0-9 ._-]*$/

  • --kindRequired

    enum

    cosign: a cosign public key; notation: a Notary Project (notation) certificate

    One of: cosign, notation

  • --pemRequired

    string

    PEM text, up to 64 KiB. cosign: the public key (cosign.pub; ECDSA, RSA of at least 2048 bits or Ed25519). notation: one or more certificates (a root, an intermediate or the signing certificate) a signature’s chain must reach. Material that does not parse as that kind is refused with 400

    Constraints: 1-65536 chars

  • --repository-patternOptional

    string

    Which repositories the key may vouch for: a repository name with * globs (team/*), 1–255 characters; * (every repository) when omitted

    Constraints: 1-255 chars, /^[a-z0-9._/*-]+$/

Example

dcloud ecr signing add-key --name example --kind cosign --pem example

Generated from the API description, the same one the API checks requests against and the CLI is built from.