Command: get credentials

Usage

ocm get credentials {<consumer property>=<value>}

Options

  -h, --help             help for credentials
  -m, --matcher string   matcher type override

Description

Try to resolve a given consumer specification against the configured credential settings and show the found credential attributes.

For the following usage contexts with matchers and standard identity matchers exist:

  • Buildcredentials.ocm.software: Gardener config credential matcher

    It matches the Buildcredentials.ocm.software consumer type and additionally acts like the hostpath type.

  • OCIRegistry: OCI registry credential matcher

    It matches the OCIRegistry consumer type and additionally acts like the hostpath type.

  • exact: exact match of given pattern set

  • hostpath: Host and path based credential matcher

    This matcher works on the following properties:

    • hostname (required): the hostname of a server
    • port (optional): the port of a server
    • pathprefix (optional): a path prefix to match. The element with the most matching path components is selected (separator is /).
  • partial: complete match of given pattern ignoring additional attributes

The used matcher is derived from the consumer attribute type. For all other consumer types a matcher matching all attributes will be used. The usage of a dedicated matcher can be enforced by the option –matcher.

See Also

  • ocm get — Get information about artifacts and components