public static final class ExtAuthzOuterClass.HttpService.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExtAuthzOuterClass.HttpService.Builder> implements ExtAuthzOuterClass.HttpServiceOrBuilder
External Authorization filter calls out to an upstream authorization server by passing the raw HTTP request headers to the server. This allows the authorization service to take a decision whether the request is authorized or not. A successful check allows the authorization service adding or overriding headers from the original request before dispatching it to the upstream. This is done by including the headers in the response sent back from the authorization service to the filter. Note that `Status`, `Method`, `Path` and `Content Length` response headers are automatically removed from this response by the filter. If other headers need be deleted, they should be specified in `response_headers_to_remove` field. A failed check will cause this filter to close the HTTP request normally with 403 (Forbidden), unless a different status code has been indicated by the authorization service via response headers. The HTTP service also allows the authorization filter to also pass data from the response body to the downstream client in case of a denied request.Protobuf type
envoy.config.filter.http.ext_authz.v2alpha.HttpService| Modifier and Type | Method and Description |
|---|---|
ExtAuthzOuterClass.HttpService.Builder |
addAllResponseHeadersToRemove(Iterable<String> values)
Sets a list of headers that should be not be sent *from the authorization server* to the
upstream.
|
ExtAuthzOuterClass.HttpService.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ExtAuthzOuterClass.HttpService.Builder |
addResponseHeadersToRemove(String value)
Sets a list of headers that should be not be sent *from the authorization server* to the
upstream.
|
ExtAuthzOuterClass.HttpService.Builder |
addResponseHeadersToRemoveBytes(com.google.protobuf.ByteString value)
Sets a list of headers that should be not be sent *from the authorization server* to the
upstream.
|
ExtAuthzOuterClass.HttpService |
build() |
ExtAuthzOuterClass.HttpService |
buildPartial() |
ExtAuthzOuterClass.HttpService.Builder |
clear() |
ExtAuthzOuterClass.HttpService.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ExtAuthzOuterClass.HttpService.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ExtAuthzOuterClass.HttpService.Builder |
clearPathPrefix()
Sets an optional prefix to the value of authorization request header `path`.
|
ExtAuthzOuterClass.HttpService.Builder |
clearResponseHeadersToRemove()
Sets a list of headers that should be not be sent *from the authorization server* to the
upstream.
|
ExtAuthzOuterClass.HttpService.Builder |
clearServerUri()
Sets the HTTP server URI which the authorization requests must be sent to.
|
ExtAuthzOuterClass.HttpService.Builder |
clone() |
ExtAuthzOuterClass.HttpService |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getPathPrefix()
Sets an optional prefix to the value of authorization request header `path`.
|
com.google.protobuf.ByteString |
getPathPrefixBytes()
Sets an optional prefix to the value of authorization request header `path`.
|
String |
getResponseHeadersToRemove(int index)
Sets a list of headers that should be not be sent *from the authorization server* to the
upstream.
|
com.google.protobuf.ByteString |
getResponseHeadersToRemoveBytes(int index)
Sets a list of headers that should be not be sent *from the authorization server* to the
upstream.
|
int |
getResponseHeadersToRemoveCount()
Sets a list of headers that should be not be sent *from the authorization server* to the
upstream.
|
com.google.protobuf.ProtocolStringList |
getResponseHeadersToRemoveList()
Sets a list of headers that should be not be sent *from the authorization server* to the
upstream.
|
HttpUriOuterClass.HttpUri |
getServerUri()
Sets the HTTP server URI which the authorization requests must be sent to.
|
HttpUriOuterClass.HttpUri.Builder |
getServerUriBuilder()
Sets the HTTP server URI which the authorization requests must be sent to.
|
HttpUriOuterClass.HttpUriOrBuilder |
getServerUriOrBuilder()
Sets the HTTP server URI which the authorization requests must be sent to.
|
boolean |
hasServerUri()
Sets the HTTP server URI which the authorization requests must be sent to.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ExtAuthzOuterClass.HttpService.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ExtAuthzOuterClass.HttpService.Builder |
mergeFrom(ExtAuthzOuterClass.HttpService other) |
ExtAuthzOuterClass.HttpService.Builder |
mergeFrom(com.google.protobuf.Message other) |
ExtAuthzOuterClass.HttpService.Builder |
mergeServerUri(HttpUriOuterClass.HttpUri value)
Sets the HTTP server URI which the authorization requests must be sent to.
|
ExtAuthzOuterClass.HttpService.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ExtAuthzOuterClass.HttpService.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ExtAuthzOuterClass.HttpService.Builder |
setPathPrefix(String value)
Sets an optional prefix to the value of authorization request header `path`.
|
ExtAuthzOuterClass.HttpService.Builder |
setPathPrefixBytes(com.google.protobuf.ByteString value)
Sets an optional prefix to the value of authorization request header `path`.
|
ExtAuthzOuterClass.HttpService.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ExtAuthzOuterClass.HttpService.Builder |
setResponseHeadersToRemove(int index,
String value)
Sets a list of headers that should be not be sent *from the authorization server* to the
upstream.
|
ExtAuthzOuterClass.HttpService.Builder |
setServerUri(HttpUriOuterClass.HttpUri.Builder builderForValue)
Sets the HTTP server URI which the authorization requests must be sent to.
|
ExtAuthzOuterClass.HttpService.Builder |
setServerUri(HttpUriOuterClass.HttpUri value)
Sets the HTTP server URI which the authorization requests must be sent to.
|
ExtAuthzOuterClass.HttpService.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExtAuthzOuterClass.HttpService.Builder>public ExtAuthzOuterClass.HttpService.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ExtAuthzOuterClass.HttpService.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ExtAuthzOuterClass.HttpService.Builder>public ExtAuthzOuterClass.HttpService getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ExtAuthzOuterClass.HttpService build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ExtAuthzOuterClass.HttpService buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ExtAuthzOuterClass.HttpService.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ExtAuthzOuterClass.HttpService.Builder>public ExtAuthzOuterClass.HttpService.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ExtAuthzOuterClass.HttpService.Builder>public ExtAuthzOuterClass.HttpService.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExtAuthzOuterClass.HttpService.Builder>public ExtAuthzOuterClass.HttpService.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExtAuthzOuterClass.HttpService.Builder>public ExtAuthzOuterClass.HttpService.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExtAuthzOuterClass.HttpService.Builder>public ExtAuthzOuterClass.HttpService.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExtAuthzOuterClass.HttpService.Builder>public ExtAuthzOuterClass.HttpService.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExtAuthzOuterClass.HttpService.Builder>public ExtAuthzOuterClass.HttpService.Builder mergeFrom(ExtAuthzOuterClass.HttpService other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExtAuthzOuterClass.HttpService.Builder>public ExtAuthzOuterClass.HttpService.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExtAuthzOuterClass.HttpService.Builder>IOExceptionpublic boolean hasServerUri()
Sets the HTTP server URI which the authorization requests must be sent to.
.envoy.api.v2.core.HttpUri server_uri = 1;hasServerUri in interface ExtAuthzOuterClass.HttpServiceOrBuilderpublic HttpUriOuterClass.HttpUri getServerUri()
Sets the HTTP server URI which the authorization requests must be sent to.
.envoy.api.v2.core.HttpUri server_uri = 1;getServerUri in interface ExtAuthzOuterClass.HttpServiceOrBuilderpublic ExtAuthzOuterClass.HttpService.Builder setServerUri(HttpUriOuterClass.HttpUri value)
Sets the HTTP server URI which the authorization requests must be sent to.
.envoy.api.v2.core.HttpUri server_uri = 1;public ExtAuthzOuterClass.HttpService.Builder setServerUri(HttpUriOuterClass.HttpUri.Builder builderForValue)
Sets the HTTP server URI which the authorization requests must be sent to.
.envoy.api.v2.core.HttpUri server_uri = 1;public ExtAuthzOuterClass.HttpService.Builder mergeServerUri(HttpUriOuterClass.HttpUri value)
Sets the HTTP server URI which the authorization requests must be sent to.
.envoy.api.v2.core.HttpUri server_uri = 1;public ExtAuthzOuterClass.HttpService.Builder clearServerUri()
Sets the HTTP server URI which the authorization requests must be sent to.
.envoy.api.v2.core.HttpUri server_uri = 1;public HttpUriOuterClass.HttpUri.Builder getServerUriBuilder()
Sets the HTTP server URI which the authorization requests must be sent to.
.envoy.api.v2.core.HttpUri server_uri = 1;public HttpUriOuterClass.HttpUriOrBuilder getServerUriOrBuilder()
Sets the HTTP server URI which the authorization requests must be sent to.
.envoy.api.v2.core.HttpUri server_uri = 1;getServerUriOrBuilder in interface ExtAuthzOuterClass.HttpServiceOrBuilderpublic String getPathPrefix()
Sets an optional prefix to the value of authorization request header `path`.
string path_prefix = 2;getPathPrefix in interface ExtAuthzOuterClass.HttpServiceOrBuilderpublic com.google.protobuf.ByteString getPathPrefixBytes()
Sets an optional prefix to the value of authorization request header `path`.
string path_prefix = 2;getPathPrefixBytes in interface ExtAuthzOuterClass.HttpServiceOrBuilderpublic ExtAuthzOuterClass.HttpService.Builder setPathPrefix(String value)
Sets an optional prefix to the value of authorization request header `path`.
string path_prefix = 2;public ExtAuthzOuterClass.HttpService.Builder clearPathPrefix()
Sets an optional prefix to the value of authorization request header `path`.
string path_prefix = 2;public ExtAuthzOuterClass.HttpService.Builder setPathPrefixBytes(com.google.protobuf.ByteString value)
Sets an optional prefix to the value of authorization request header `path`.
string path_prefix = 2;public com.google.protobuf.ProtocolStringList getResponseHeadersToRemoveList()
Sets a list of headers that should be not be sent *from the authorization server* to the upstream.
repeated string response_headers_to_remove = 3;getResponseHeadersToRemoveList in interface ExtAuthzOuterClass.HttpServiceOrBuilderpublic int getResponseHeadersToRemoveCount()
Sets a list of headers that should be not be sent *from the authorization server* to the upstream.
repeated string response_headers_to_remove = 3;getResponseHeadersToRemoveCount in interface ExtAuthzOuterClass.HttpServiceOrBuilderpublic String getResponseHeadersToRemove(int index)
Sets a list of headers that should be not be sent *from the authorization server* to the upstream.
repeated string response_headers_to_remove = 3;getResponseHeadersToRemove in interface ExtAuthzOuterClass.HttpServiceOrBuilderpublic com.google.protobuf.ByteString getResponseHeadersToRemoveBytes(int index)
Sets a list of headers that should be not be sent *from the authorization server* to the upstream.
repeated string response_headers_to_remove = 3;getResponseHeadersToRemoveBytes in interface ExtAuthzOuterClass.HttpServiceOrBuilderpublic ExtAuthzOuterClass.HttpService.Builder setResponseHeadersToRemove(int index, String value)
Sets a list of headers that should be not be sent *from the authorization server* to the upstream.
repeated string response_headers_to_remove = 3;public ExtAuthzOuterClass.HttpService.Builder addResponseHeadersToRemove(String value)
Sets a list of headers that should be not be sent *from the authorization server* to the upstream.
repeated string response_headers_to_remove = 3;public ExtAuthzOuterClass.HttpService.Builder addAllResponseHeadersToRemove(Iterable<String> values)
Sets a list of headers that should be not be sent *from the authorization server* to the upstream.
repeated string response_headers_to_remove = 3;public ExtAuthzOuterClass.HttpService.Builder clearResponseHeadersToRemove()
Sets a list of headers that should be not be sent *from the authorization server* to the upstream.
repeated string response_headers_to_remove = 3;public ExtAuthzOuterClass.HttpService.Builder addResponseHeadersToRemoveBytes(com.google.protobuf.ByteString value)
Sets a list of headers that should be not be sent *from the authorization server* to the upstream.
repeated string response_headers_to_remove = 3;public final ExtAuthzOuterClass.HttpService.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExtAuthzOuterClass.HttpService.Builder>public final ExtAuthzOuterClass.HttpService.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExtAuthzOuterClass.HttpService.Builder>Copyright © 2018 The Envoy Project. All rights reserved.