Skip to content

Commit

Permalink
Sync Gloo APIs. Destination Branch: gloo-main
Browse files Browse the repository at this point in the history
  • Loading branch information
soloio-bot committed Aug 17, 2023
1 parent 8d53336 commit 26e7edd
Show file tree
Hide file tree
Showing 11 changed files with 2,087 additions and 1,836 deletions.
18 changes: 16 additions & 2 deletions api/gloo/enterprise.gloo/v1/auth_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,18 @@ message EndSessionProperties {
MethodType methodType = 1;
}

// Allows copying verified claims to headers sent upstream
message ClaimToHeader {
// Claim name. for example, “sub”
string claim = 1;

// The header the claim will be copied to. for example, “x-sub”.
string header = 2;

// If the header exists, append to it (true), or overwrite it (false).
bool append = 3;
}


message OidcAuthorizationCode {
// your client id as registered with the issuer
Expand Down Expand Up @@ -662,6 +674,9 @@ message OidcAuthorizationCode {
// Generally the client secret is required and AuthConfigs will be rejected if it isn't set.
// However certain implementations of the PKCE flow do not use a client secret (including Okta) so this setting allows configuring Oidc without a client secret.
google.protobuf.BoolValue disable_client_secret = 21;

// Optional: What claims should be copied to upstream headers.
repeated ClaimToHeader claims_to_headers = 22;
}

message PlainOAuth2 {
Expand Down Expand Up @@ -1071,7 +1086,7 @@ message OpaAuthOptions {
bool fast_input_conversion = 1;

// Return the reason given from the OPA engine after a decision made on this policy. Reason must be the second
// parameter of the query. The entry will be in the returned DynamicMetadata in the CheckResponse and the structure
// parameter of the query. The entry will be in the returned DynamicMetadata in the CheckResponse and the structure
// will be
// envoy.filters.http.ext_authz:
// -> name of the auth step, i.e. spec.configs[i].name
Expand Down Expand Up @@ -1433,7 +1448,6 @@ message ExtAuthConfig {

// Configuration related to the user session.
UserSessionConfig user_session = 20;

}

message AccessTokenValidationConfig {
Expand Down
2 changes: 1 addition & 1 deletion api/gloo/gloo/v1/enterprise/options/caching/caching.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ message Settings {
// Max payload size to cache. If unset defaults to a reasonable value.
// If explicitly set to 0 will prevent anything with a body from
// being cached.
google.protobuf.UInt64Value max_payload_size = 4;
google.protobuf.UInt32Value max_payload_size = 4;


}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ message ConnectionLimit {
// The maximum number of active connections for this gateway. When this limit is reached, any incoming connection
// will be closed after delay duration.
// Must be greater than one.
google.protobuf.UInt64Value max_active_connections = 1;
google.protobuf.UInt32Value max_active_connections = 1;

// The time to wait before a connection is dropped. Useful for DoS prevention.
// Defaults to zero and the connection will be closed immediately.
Expand Down
30 changes: 30 additions & 0 deletions pkg/api/enterprise.gloo.solo.io/v1/auth_config.pb.clone.go

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

53 changes: 53 additions & 0 deletions pkg/api/enterprise.gloo.solo.io/v1/auth_config.pb.equal.go

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

Loading

0 comments on commit 26e7edd

Please sign in to comment.