envoy-types 0.7.3

Collection of protobuf types and other assets to work with the Envoy Proxy through Rust gRPC services.
Documentation
// This file is @generated by prost-build.
/// Generic extension can be used to inject HTTP Basic Auth, Bearer Token, or any arbitrary credential
/// into the proxied requests.
/// The credential will be injected into the specified HTTP request header.
/// Refer to [RFC 6750: The OAuth 2.0 Authorization Framework: Bearer Token Usage](<https://www.rfc-editor.org/rfc/rfc6750>) for details.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Generic {
    /// The SDS configuration for the credential that will be injected to the specified HTTP request header.
    /// It must be a generic secret.
    #[prost(message, optional, tag = "1")]
    pub credential: ::core::option::Option<
        super::super::super::super::transport_sockets::tls::v3::SdsSecretConfig,
    >,
    /// The header that will be injected to the HTTP request with the provided credential.
    /// If not set, filter will default to: `Authorization`
    #[prost(string, tag = "2")]
    pub header: ::prost::alloc::string::String,
    /// The prefix to prepend to the credential value before injecting it into the header.
    /// This is useful for adding a scheme such as `Bearer ` or `Basic ` to the credential.
    /// For example, if the credential is `xyz123` and the prefix is `Bearer `, the
    /// final header value will be `Bearer xyz123`.
    /// If not set, the raw credential value will be injected without any prefix.
    #[prost(string, tag = "3")]
    pub header_value_prefix: ::prost::alloc::string::String,
}
impl ::prost::Name for Generic {
    const NAME: &'static str = "Generic";
    const PACKAGE: &'static str = "envoy.extensions.http.injected_credentials.generic.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.extensions.http.injected_credentials.generic.v3.Generic".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.extensions.http.injected_credentials.generic.v3.Generic"
            .into()
    }
}