Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
189 changes: 103 additions & 86 deletions api/gen/proto/go/teleport/workloadidentity/v1/attrs.pb.go

Large diffs are not rendered by default.

132 changes: 74 additions & 58 deletions api/gen/proto/go/teleport/workloadidentity/v1/resource.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions api/proto/teleport/workloadidentity/v1/attrs.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ syntax = "proto3";

package teleport.workloadidentity.v1;

import "teleport/trait/v1/trait.proto";
import "teleport/workloadidentity/v1/join_attrs.proto";

option go_package = "github.com/gravitational/teleport/api/gen/proto/go/teleport/workloadidentity/v1;workloadidentityv1";
Expand Down Expand Up @@ -71,6 +72,8 @@ message UserAttrs {
string bot_instance_id = 4;
// Labels of the user.
map<string, string> labels = 5;
// Traits of the user.
repeated teleport.trait.v1.Trait traits = 6;
}

// The attributes of a principal requesting a workload identity. These
Expand Down
8 changes: 8 additions & 0 deletions api/proto/teleport/workloadidentity/v1/resource.proto
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,15 @@ message WorkloadIdentityCondition {
// An individual rule that is evaluated during the issuance of a WorkloadIdentity.
message WorkloadIdentityRule {
// The conditions that must be met for this rule to be considered passed.
//
// Mutually exclusive with expression.
repeated WorkloadIdentityCondition conditions = 1;

// An expression written in Teleport's predicate language that must evaluate
// to true for this rule to be considered passed.
//
// Mutually exclusive with conditions.
string expression = 2;
}

// The rules which are evaluated before the WorkloadIdentity can be issued.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ Optional:

Optional:

- `conditions` (Attributes List) The conditions that must be met for this rule to be considered passed. (see [below for nested schema](#nested-schema-for-specrulesallowconditions))
- `conditions` (Attributes List) The conditions that must be met for this rule to be considered passed. Mutually exclusive with expression. (see [below for nested schema](#nested-schema-for-specrulesallowconditions))
- `expression` (String) An expression written in Teleport's predicate language that must evaluate to true for this rule to be considered passed. Mutually exclusive with conditions.

### Nested Schema for `spec.rules.allow.conditions`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ Optional:

Optional:

- `conditions` (Attributes List) The conditions that must be met for this rule to be considered passed. (see [below for nested schema](#nested-schema-for-specrulesallowconditions))
- `conditions` (Attributes List) The conditions that must be met for this rule to be considered passed. Mutually exclusive with expression. (see [below for nested schema](#nested-schema-for-specrulesallowconditions))
- `expression` (String) An expression written in Teleport's predicate language that must evaluate to true for this rule to be considered passed. Mutually exclusive with conditions.

### Nested Schema for `spec.rules.allow.conditions`

Expand Down
Loading