public static final class ExtAuthzOuterClass.HttpService extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
ExtAuthzOuterClass.HttpService.Builder
External Authorization filter calls out to an upstream authorization server by passing the raw
HTTP request headers to the server.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
PATH_PREFIX_FIELD_NUMBER |
static int |
RESPONSE_HEADERS_TO_REMOVE_FIELD_NUMBER |
static int |
SERVER_URI_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static ExtAuthzOuterClass.HttpService |
getDefaultInstance() |
ExtAuthzOuterClass.HttpService |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<ExtAuthzOuterClass.HttpService> |
getParserForType() |
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.
|
int |
getSerializedSize() |
HttpUriOuterClass.HttpUri |
getServerUri()
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasServerUri()
Sets the HTTP server URI which the authorization requests must be sent to.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ExtAuthzOuterClass.HttpService.Builder |
newBuilder() |
static ExtAuthzOuterClass.HttpService.Builder |
newBuilder(ExtAuthzOuterClass.HttpService prototype) |
ExtAuthzOuterClass.HttpService.Builder |
newBuilderForType() |
protected ExtAuthzOuterClass.HttpService.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static ExtAuthzOuterClass.HttpService |
parseDelimitedFrom(InputStream input) |
static ExtAuthzOuterClass.HttpService |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExtAuthzOuterClass.HttpService |
parseFrom(byte[] data) |
static ExtAuthzOuterClass.HttpService |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExtAuthzOuterClass.HttpService |
parseFrom(ByteBuffer data) |
static ExtAuthzOuterClass.HttpService |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExtAuthzOuterClass.HttpService |
parseFrom(com.google.protobuf.ByteString data) |
static ExtAuthzOuterClass.HttpService |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExtAuthzOuterClass.HttpService |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ExtAuthzOuterClass.HttpService |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExtAuthzOuterClass.HttpService |
parseFrom(InputStream input) |
static ExtAuthzOuterClass.HttpService |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ExtAuthzOuterClass.HttpService> |
parser() |
ExtAuthzOuterClass.HttpService.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SERVER_URI_FIELD_NUMBER
public static final int PATH_PREFIX_FIELD_NUMBER
public static final int RESPONSE_HEADERS_TO_REMOVE_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ExtAuthzOuterClass.HttpService parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExtAuthzOuterClass.HttpService parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExtAuthzOuterClass.HttpService parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExtAuthzOuterClass.HttpService parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExtAuthzOuterClass.HttpService parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExtAuthzOuterClass.HttpService parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExtAuthzOuterClass.HttpService parseFrom(InputStream input) throws IOException
IOExceptionpublic static ExtAuthzOuterClass.HttpService parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ExtAuthzOuterClass.HttpService parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ExtAuthzOuterClass.HttpService parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ExtAuthzOuterClass.HttpService parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ExtAuthzOuterClass.HttpService parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ExtAuthzOuterClass.HttpService.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ExtAuthzOuterClass.HttpService.Builder newBuilder()
public static ExtAuthzOuterClass.HttpService.Builder newBuilder(ExtAuthzOuterClass.HttpService prototype)
public ExtAuthzOuterClass.HttpService.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ExtAuthzOuterClass.HttpService.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ExtAuthzOuterClass.HttpService getDefaultInstance()
public static com.google.protobuf.Parser<ExtAuthzOuterClass.HttpService> parser()
public com.google.protobuf.Parser<ExtAuthzOuterClass.HttpService> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ExtAuthzOuterClass.HttpService getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018 The Envoy Project. All rights reserved.