Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RequestIdentityMode to PDP requests #50482

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
138 changes: 115 additions & 23 deletions api/gen/proto/go/teleport/decision/v1alpha1/request_metadata.pb.go

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

23 changes: 23 additions & 0 deletions api/proto/teleport/decision/v1alpha1/request_metadata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ message RequestMetadata {
// via feature assertions so that PEPs can correctly reject decisions that
// they cannot enforce.
string pep_version_hint = 2;

// IdentityMode dictates how the request identity (tls_identity or
// ssh_identity) is interpreted by the server.
RequestIdentityMode identity_mode = 3;
}

// DecisionFeature represents supported PDP (Policy Decision Point) features.
Expand All @@ -42,3 +46,22 @@ enum DecisionFeature {
// DecisionFeature. Asserting this feature has no effect.
DECISION_FEATURE_UNSPECIFIED = 0;
}

// RequestIdentityMode dictates how the request identity (either
// tls_identity or ssh_identity) is interpreted by the server.
enum RequestIdentityMode {
// Unspecified identity mode.
// Defaults to _EXPLICIT unless stated otherwise by the RPC.
REQUEST_IDENTITY_MODE_UNSPECIFIED = 0;
// The request identity is interpreted as-is, without any changes.
REQUEST_IDENTITY_MODE_EXPLICIT = 1;
// The request identity is interpreted as a partial definition, meaning the
// identity will be augmented with storage queries. For example: the username
// is supplied by the caller, but roles are queried from storage.
// Useful for querying the access capabilities of a third-party whose identity
// isn't fully known.
REQUEST_IDENTITY_MODE_PARTIAL = 2;
// The caller identity is used. The request identity is completely ignored.
// Useful for querying the access capabilities of the current user.
REQUEST_IDENTITY_MODE_CALLER_IDENTITY = 3;
}
Loading