JWT Identity Matcher
JwtIdentityMatcher specifies matching workloads with JWT identities.
For example, the following configuration will match only those workloads that
were authenticated by means of an
OIDC ID Token
issued by https://mycompany.corp
for one of the subjects us-east-datacenter1-vm007
or
us-west-datacenter2-vm008
:
issuer: "https://mycompany.corp"
subjects:
- "us-east-datacenter1-vm007"
- "us-west-datacenter2-vm008"
In those cases where an OIDC ID Token from a given issuer includes a map of fine-grained attributes associated with a workload, it is possible to define rules that match those attributes.
E.g., the following configuration will match a set workloads that
were authenticated by means of an
OIDC ID Token
issued by https://mycompany.corp
and include 1) attribute region
with one of the values
us-east
or us-west
and 2) attribute instance_role
with the value app-ratings
:
issuer: "https://mycompany.corp"
attributes:
- name: "region"
values:
- "us-east"
- "us-west"
- name: "instance_role"
values:
- "app-ratings"
AttributeMatcher
AttributeMatcher specifies a matching attribute.
Field | Description | Validation Rule |
name | string | string = { |
values | List of string | repeated = { |
JwtIdentityMatcher
JwtIdentityMatcher specifies matching workloads with JWT identities.
Field | Description | Validation Rule |
issuer | string | string = { |
subjects | List of string | repeated = { |
attributes | List of tetrateio.api.onboarding.authorization.jwt.v1alpha1.AttributeMatcher | repeated = { |