// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.4
// 	protoc        v5.29.0
// source: app/v1/authn/idkey.proto

package v1

import (
	kernel "github.com/aileron-gateway/aileron-gateway/apis/kernel"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

// IDKeyAuthnMiddleware resource definition.
// apiVersion="app/v1", kind="IDKeyAuthnMiddleware".
type IDKeyAuthnMiddleware struct {
	state         protoimpl.MessageState    `protogen:"open.v1"`
	APIVersion    string                    `protobuf:"bytes,1,opt,name=APIVersion,json=apiVersion,proto3" json:"APIVersion,omitempty"`
	Kind          string                    `protobuf:"bytes,2,opt,name=Kind,json=kind,proto3" json:"Kind,omitempty"`
	Metadata      *kernel.Metadata          `protobuf:"bytes,3,opt,name=Metadata,json=metadata,proto3" json:"Metadata,omitempty"`
	Spec          *IDKeyAuthnMiddlewareSpec `protobuf:"bytes,4,opt,name=Spec,json=spec,proto3" json:"Spec,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *IDKeyAuthnMiddleware) Reset() {
	*x = IDKeyAuthnMiddleware{}
	mi := &file_app_v1_authn_idkey_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *IDKeyAuthnMiddleware) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*IDKeyAuthnMiddleware) ProtoMessage() {}

func (x *IDKeyAuthnMiddleware) ProtoReflect() protoreflect.Message {
	mi := &file_app_v1_authn_idkey_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use IDKeyAuthnMiddleware.ProtoReflect.Descriptor instead.
func (*IDKeyAuthnMiddleware) Descriptor() ([]byte, []int) {
	return file_app_v1_authn_idkey_proto_rawDescGZIP(), []int{0}
}

func (x *IDKeyAuthnMiddleware) GetAPIVersion() string {
	if x != nil {
		return x.APIVersion
	}
	return ""
}

func (x *IDKeyAuthnMiddleware) GetKind() string {
	if x != nil {
		return x.Kind
	}
	return ""
}

func (x *IDKeyAuthnMiddleware) GetMetadata() *kernel.Metadata {
	if x != nil {
		return x.Metadata
	}
	return nil
}

func (x *IDKeyAuthnMiddleware) GetSpec() *IDKeyAuthnMiddlewareSpec {
	if x != nil {
		return x.Spec
	}
	return nil
}

// IDKeyAuthnMiddlewareSpec is the specifications for the IDKeyAuthnMiddleware object.
type IDKeyAuthnMiddlewareSpec struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// [OPTIONAL]
	// Logger is the reference to a Logger object.
	// Referred object must implement Logger interface.
	// Default Logger is used when not set.
	Logger *kernel.Reference `protobuf:"bytes,1,opt,name=Logger,json=logger,proto3" json:"Logger,omitempty"`
	// [OPTIONAL]
	// ErrorHandler is the reference to a ErrorHandler object.
	// Referred object must implement ErrorHandler interface.
	// Default error handler is used when not set.
	ErrorHandler *kernel.Reference `protobuf:"bytes,2,opt,name=ErrorHandler,json=errorHandler,proto3" json:"ErrorHandler,omitempty"`
	// [OPTIONAL]
	// ClaimsKey is the key to set user attibutes in the context.
	// Claims can be used for authorization if necessary.
	// If not set, default value is used.
	// Default is ["AuthnClaims"].
	ClaimsKey string `protobuf:"bytes,3,opt,name=ClaimsKey,json=claimsKey,proto3" json:"ClaimsKey,omitempty"`
	// [OPTIONAL]
	// KeepCredentials is the flag to keep credentials in the header.
	// That means Authorization header is not removed in the middleware.
	// If true, Authorizatoin header will be proxied upstream services.
	// Default is [false].
	KeepCredentials bool `protobuf:"varint,4,opt,name=KeepCredentials,json=keepCredentials,proto3" json:"KeepCredentials,omitempty"`
	// [OPTIONAL]
	// KeyHeaderName is the HTTP header name to get API key from.
	// Default is ["X-Api-Key"].
	KeyHeaderName string `protobuf:"bytes,5,opt,name=KeyHeaderName,json=keyHeaderName,proto3" json:"KeyHeaderName,omitempty"`
	// [OPTIONAL]
	// IDHeaderName is the HTTP header name to get ID from.
	// The ID is used for key lookup from the key store.
	// Default is ["X-Api-Id"].
	IDHeaderName string `protobuf:"bytes,6,opt,name=IDHeaderName,json=idHeaderName,proto3" json:"IDHeaderName,omitempty"`
	// [OPTIONAL]
	// HashAlg is the algorithm to calculate hash value.
	// Set HMACSecret to use HMAC instead of plain hash.
	// If not set, API keys are treated as plain text keys.
	// Default is not set.
	HashAlg kernel.HashAlg `protobuf:"varint,7,opt,name=HashAlg,json=hashAlg,proto3,enum=kernel.HashAlg" json:"HashAlg,omitempty"`
	// [OPTIONAL]
	// HMACSecret is the Base64 encoded secret for HMAC.
	// The secret should be at least 64 bytes with enough entropy.
	// Use for example https://generate.plus/en/base64.
	// Default is not set.
	HMACSecret string `protobuf:"bytes,8,opt,name=HMACSecret,json=hmacSecret,proto3" json:"HMACSecret,omitempty"`
	// [OPTIONAL]
	// CommonKeyCryptType is the common key encryption algorithm
	// that is used for encrypting passwords of hashed passwords.
	// Common key encryption will be enabled when CryptSecret is not empty.
	// If CryptSecret is not empty, CommonKeyCryptType should also be set
	// to specify the encryption algorithm.
	// Hash or HMAC and CommonKeyCryptType can be conbined.
	// If so, API keys should be Hash/HMAC(Crypt(<key>)) with base64 or hex encoding.
	// Note that API keys must be bounded to IDs for lookup keys
	// from key store when applying common key encryption.
	// Default is not set.
	CommonKeyCryptType kernel.CommonKeyCryptType `protobuf:"varint,9,opt,name=CommonKeyCryptType,json=commonKeyCryptType,proto3,enum=kernel.CommonKeyCryptType" json:"CommonKeyCryptType,omitempty"`
	// [OPTIONAL]
	// CryptSecret is the Base64 encoded encryption key.
	// Base64 standard encoded with PKCS#7 padding is expected to be used.
	// Common key encryption will be enabled when CryptSecret is not empty.
	// If CryptSecret is not empty, CommonKeyCryptType should also be set
	// to specify the encryption algorithm.
	// Hash or HMAC and CommonKeyCryptType can be conbined.
	// If so, API keys should be Hash/HMAC(Crypt(<key>)) with base64 or hex encoding.
	// Note that API keys must be bounded to IDs for lookup keys
	// from key store when applying common key encryption.
	// Default is not set.
	CryptSecret string `protobuf:"bytes,10,opt,name=CryptSecret,json=cryptSecret,proto3" json:"CryptSecret,omitempty"`
	// [OPTIONAL]
	// Providers is the api key provider to use.
	// If not set, EnvProvider with default values are used.
	//
	// Types that are valid to be assigned to Providers:
	//
	//	*IDKeyAuthnMiddlewareSpec_EnvProvider
	//	*IDKeyAuthnMiddlewareSpec_FileProvider
	Providers     isIDKeyAuthnMiddlewareSpec_Providers `protobuf_oneof:"Providers"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *IDKeyAuthnMiddlewareSpec) Reset() {
	*x = IDKeyAuthnMiddlewareSpec{}
	mi := &file_app_v1_authn_idkey_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *IDKeyAuthnMiddlewareSpec) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*IDKeyAuthnMiddlewareSpec) ProtoMessage() {}

func (x *IDKeyAuthnMiddlewareSpec) ProtoReflect() protoreflect.Message {
	mi := &file_app_v1_authn_idkey_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use IDKeyAuthnMiddlewareSpec.ProtoReflect.Descriptor instead.
func (*IDKeyAuthnMiddlewareSpec) Descriptor() ([]byte, []int) {
	return file_app_v1_authn_idkey_proto_rawDescGZIP(), []int{1}
}

func (x *IDKeyAuthnMiddlewareSpec) GetLogger() *kernel.Reference {
	if x != nil {
		return x.Logger
	}
	return nil
}

func (x *IDKeyAuthnMiddlewareSpec) GetErrorHandler() *kernel.Reference {
	if x != nil {
		return x.ErrorHandler
	}
	return nil
}

func (x *IDKeyAuthnMiddlewareSpec) GetClaimsKey() string {
	if x != nil {
		return x.ClaimsKey
	}
	return ""
}

func (x *IDKeyAuthnMiddlewareSpec) GetKeepCredentials() bool {
	if x != nil {
		return x.KeepCredentials
	}
	return false
}

func (x *IDKeyAuthnMiddlewareSpec) GetKeyHeaderName() string {
	if x != nil {
		return x.KeyHeaderName
	}
	return ""
}

func (x *IDKeyAuthnMiddlewareSpec) GetIDHeaderName() string {
	if x != nil {
		return x.IDHeaderName
	}
	return ""
}

func (x *IDKeyAuthnMiddlewareSpec) GetHashAlg() kernel.HashAlg {
	if x != nil {
		return x.HashAlg
	}
	return kernel.HashAlg(0)
}

func (x *IDKeyAuthnMiddlewareSpec) GetHMACSecret() string {
	if x != nil {
		return x.HMACSecret
	}
	return ""
}

func (x *IDKeyAuthnMiddlewareSpec) GetCommonKeyCryptType() kernel.CommonKeyCryptType {
	if x != nil {
		return x.CommonKeyCryptType
	}
	return kernel.CommonKeyCryptType(0)
}

func (x *IDKeyAuthnMiddlewareSpec) GetCryptSecret() string {
	if x != nil {
		return x.CryptSecret
	}
	return ""
}

func (x *IDKeyAuthnMiddlewareSpec) GetProviders() isIDKeyAuthnMiddlewareSpec_Providers {
	if x != nil {
		return x.Providers
	}
	return nil
}

func (x *IDKeyAuthnMiddlewareSpec) GetEnvProvider() *IDKeyAuthnEnvProvider {
	if x != nil {
		if x, ok := x.Providers.(*IDKeyAuthnMiddlewareSpec_EnvProvider); ok {
			return x.EnvProvider
		}
	}
	return nil
}

func (x *IDKeyAuthnMiddlewareSpec) GetFileProvider() *IDKeyAuthnFileProvider {
	if x != nil {
		if x, ok := x.Providers.(*IDKeyAuthnMiddlewareSpec_FileProvider); ok {
			return x.FileProvider
		}
	}
	return nil
}

type isIDKeyAuthnMiddlewareSpec_Providers interface {
	isIDKeyAuthnMiddlewareSpec_Providers()
}

type IDKeyAuthnMiddlewareSpec_EnvProvider struct {
	EnvProvider *IDKeyAuthnEnvProvider `protobuf:"bytes,15,opt,name=EnvProvider,json=envProvider,proto3,oneof"`
}

type IDKeyAuthnMiddlewareSpec_FileProvider struct {
	FileProvider *IDKeyAuthnFileProvider `protobuf:"bytes,16,opt,name=FileProvider,json=fileProvider,proto3,oneof"`
}

func (*IDKeyAuthnMiddlewareSpec_EnvProvider) isIDKeyAuthnMiddlewareSpec_Providers() {}

func (*IDKeyAuthnMiddlewareSpec_FileProvider) isIDKeyAuthnMiddlewareSpec_Providers() {}

type IDKeyAuthnEnvProvider struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// [OPTIONAL]
	// KeyPrefix is the prefix of environmental variable
	// that provides api keys.
	// If the prefix is "APIKEY_", then keys should be
	// set like "APIKEY_1=foo", "APIKEY_999=bar".
	// Note that the numbers can be zero padded which means
	// "APIKEY_1" and "APIKEY_001" are the same.
	// If empty string was set, default value is used.
	// Defailt is [GATEWAY_APIKEY_KEY_].
	KeyPrefix string `protobuf:"bytes,1,opt,name=KeyPrefix,json=keyPrefix,proto3" json:"KeyPrefix,omitempty"`
	// [OPTIONAL]
	// IDPrefix is the prefix of environmental variable
	// that provides identifiers for api keys.
	// If the prefix is "KEYID_", then ids should be
	// set like "KEYID_1=foo", "KEYID_999=bar".
	// Note that the numbers can be zero padded which means
	// "KEYID_1" and "KEYID_001" are the same.
	// IDs are used for key lookup.
	// If empty string was set, default value is used.
	// Defailt is [GATEWAY_APIKEY_ID_].
	IDPrefix string `protobuf:"bytes,2,opt,name=IDPrefix,json=idPrefix,proto3" json:"IDPrefix,omitempty"`
	// [OPTIONAL]
	// Encoding is the encoding algorithm used to decode passwords.
	// If set, all password strings are decoded with configured encoding.
	// Gateway will fail to start when failed to decoding.
	// Default is [false].
	Encoding      kernel.EncodingType `protobuf:"varint,3,opt,name=Encoding,json=encoding,proto3,enum=kernel.EncodingType" json:"Encoding,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *IDKeyAuthnEnvProvider) Reset() {
	*x = IDKeyAuthnEnvProvider{}
	mi := &file_app_v1_authn_idkey_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *IDKeyAuthnEnvProvider) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*IDKeyAuthnEnvProvider) ProtoMessage() {}

func (x *IDKeyAuthnEnvProvider) ProtoReflect() protoreflect.Message {
	mi := &file_app_v1_authn_idkey_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use IDKeyAuthnEnvProvider.ProtoReflect.Descriptor instead.
func (*IDKeyAuthnEnvProvider) Descriptor() ([]byte, []int) {
	return file_app_v1_authn_idkey_proto_rawDescGZIP(), []int{2}
}

func (x *IDKeyAuthnEnvProvider) GetKeyPrefix() string {
	if x != nil {
		return x.KeyPrefix
	}
	return ""
}

func (x *IDKeyAuthnEnvProvider) GetIDPrefix() string {
	if x != nil {
		return x.IDPrefix
	}
	return ""
}

func (x *IDKeyAuthnEnvProvider) GetEncoding() kernel.EncodingType {
	if x != nil {
		return x.Encoding
	}
	return kernel.EncodingType(0)
}

type IDKeyAuthnFileProvider struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// [OPTIONAL]
	// Paths are file paths that contains api keys.
	// If nothing set, all authentication challenge will fail.
	// Default is not set.
	Paths []string `protobuf:"bytes,1,rep,name=Paths,json=paths,proto3" json:"Paths,omitempty"`
	// [OPTIONAL]
	// Encoding is the encoding algorithm used to decode passwords.
	// If set, all password strings are decoded with configured encoding.
	// Gateway will fail to start when failed to decoding.
	// Default is [false].
	Encoding      kernel.EncodingType `protobuf:"varint,2,opt,name=Encoding,json=encoding,proto3,enum=kernel.EncodingType" json:"Encoding,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *IDKeyAuthnFileProvider) Reset() {
	*x = IDKeyAuthnFileProvider{}
	mi := &file_app_v1_authn_idkey_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *IDKeyAuthnFileProvider) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*IDKeyAuthnFileProvider) ProtoMessage() {}

func (x *IDKeyAuthnFileProvider) ProtoReflect() protoreflect.Message {
	mi := &file_app_v1_authn_idkey_proto_msgTypes[3]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use IDKeyAuthnFileProvider.ProtoReflect.Descriptor instead.
func (*IDKeyAuthnFileProvider) Descriptor() ([]byte, []int) {
	return file_app_v1_authn_idkey_proto_rawDescGZIP(), []int{3}
}

func (x *IDKeyAuthnFileProvider) GetPaths() []string {
	if x != nil {
		return x.Paths
	}
	return nil
}

func (x *IDKeyAuthnFileProvider) GetEncoding() kernel.EncodingType {
	if x != nil {
		return x.Encoding
	}
	return kernel.EncodingType(0)
}

var File_app_v1_authn_idkey_proto protoreflect.FileDescriptor

var file_app_v1_authn_idkey_proto_rawDesc = string([]byte{
	0x0a, 0x18, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6e, 0x2f, 0x69,
	0x64, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x61, 0x70, 0x70, 0x2e,
	0x76, 0x31, 0x1a, 0x16, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
	0x6e, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x6b, 0x65, 0x72, 0x6e,
	0x65, 0x6c, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
	0x6f, 0x1a, 0x11, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x2e, 0x70,
	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x2f, 0x72, 0x65, 0x73,
	0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xae, 0x01, 0x0a, 0x14,
	0x49, 0x44, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x4d, 0x69, 0x64, 0x64, 0x6c, 0x65,
	0x77, 0x61, 0x72, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x41, 0x50, 0x49, 0x56, 0x65, 0x72, 0x73, 0x69,
	0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x69, 0x56, 0x65, 0x72,
	0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x4b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01,
	0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x2c, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61,
	0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6b, 0x65, 0x72,
	0x6e, 0x65, 0x6c, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65,
	0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x34, 0x0a, 0x04, 0x53, 0x70, 0x65, 0x63, 0x18, 0x04,
	0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x44,
	0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x4d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x77, 0x61,
	0x72, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0xdd, 0x04, 0x0a,
	0x18, 0x49, 0x44, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x4d, 0x69, 0x64, 0x64, 0x6c,
	0x65, 0x77, 0x61, 0x72, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x29, 0x0a, 0x06, 0x4c, 0x6f, 0x67,
	0x67, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6b, 0x65, 0x72, 0x6e,
	0x65, 0x6c, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x06, 0x6c, 0x6f,
	0x67, 0x67, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x0c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x61, 0x6e,
	0x64, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6b, 0x65, 0x72,
	0x6e, 0x65, 0x6c, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0c, 0x65,
	0x72, 0x72, 0x6f, 0x72, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x43,
	0x6c, 0x61, 0x69, 0x6d, 0x73, 0x4b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
	0x63, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x28, 0x0a, 0x0f, 0x4b, 0x65, 0x65,
	0x70, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01,
	0x28, 0x08, 0x52, 0x0f, 0x6b, 0x65, 0x65, 0x70, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69,
	0x61, 0x6c, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x4b, 0x65, 0x79, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
	0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x48,
	0x65, 0x61, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x49, 0x44, 0x48,
	0x65, 0x61, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
	0x0c, 0x69, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a,
	0x07, 0x48, 0x61, 0x73, 0x68, 0x41, 0x6c, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f,
	0x2e, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x41, 0x6c, 0x67, 0x52,
	0x07, 0x68, 0x61, 0x73, 0x68, 0x41, 0x6c, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x48, 0x4d, 0x41, 0x43,
	0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x68, 0x6d,
	0x61, 0x63, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x4a, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x6d,
	0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x43, 0x72, 0x79, 0x70, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x09,
	0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x2e, 0x43, 0x6f,
	0x6d, 0x6d, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x43, 0x72, 0x79, 0x70, 0x74, 0x54, 0x79, 0x70, 0x65,
	0x52, 0x12, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x43, 0x72, 0x79, 0x70, 0x74,
	0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x43, 0x72, 0x79, 0x70, 0x74, 0x53, 0x65, 0x63,
	0x72, 0x65, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x72, 0x79, 0x70, 0x74,
	0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x41, 0x0a, 0x0b, 0x45, 0x6e, 0x76, 0x50, 0x72, 0x6f,
	0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x70,
	0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x44, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x45,
	0x6e, 0x76, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0b, 0x65, 0x6e,
	0x76, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x44, 0x0a, 0x0c, 0x46, 0x69, 0x6c,
	0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32,
	0x1e, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x44, 0x4b, 0x65, 0x79, 0x41, 0x75,
	0x74, 0x68, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x48,
	0x00, 0x52, 0x0c, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x42,
	0x0b, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x22, 0x83, 0x01, 0x0a,
	0x15, 0x49, 0x44, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x45, 0x6e, 0x76, 0x50, 0x72,
	0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x4b, 0x65, 0x79, 0x50, 0x72, 0x65,
	0x66, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6b, 0x65, 0x79, 0x50, 0x72,
	0x65, 0x66, 0x69, 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x49, 0x44, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78,
	0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78,
	0x12, 0x30, 0x0a, 0x08, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01,
	0x28, 0x0e, 0x32, 0x14, 0x2e, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x2e, 0x45, 0x6e, 0x63, 0x6f,
	0x64, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69,
	0x6e, 0x67, 0x22, 0x60, 0x0a, 0x16, 0x49, 0x44, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6e,
	0x46, 0x69, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05,
	0x50, 0x61, 0x74, 0x68, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, 0x74,
	0x68, 0x73, 0x12, 0x30, 0x0a, 0x08, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x02,
	0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x2e, 0x45, 0x6e,
	0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x65, 0x6e, 0x63, 0x6f,
	0x64, 0x69, 0x6e, 0x67, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
	0x6f, 0x6d, 0x2f, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x6f, 0x6e, 0x2d, 0x67, 0x61, 0x74, 0x65, 0x77,
	0x61, 0x79, 0x2f, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x6f, 0x6e, 0x2d, 0x67, 0x61, 0x74, 0x65, 0x77,
	0x61, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x06,
	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
})

var (
	file_app_v1_authn_idkey_proto_rawDescOnce sync.Once
	file_app_v1_authn_idkey_proto_rawDescData []byte
)

func file_app_v1_authn_idkey_proto_rawDescGZIP() []byte {
	file_app_v1_authn_idkey_proto_rawDescOnce.Do(func() {
		file_app_v1_authn_idkey_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_app_v1_authn_idkey_proto_rawDesc), len(file_app_v1_authn_idkey_proto_rawDesc)))
	})
	return file_app_v1_authn_idkey_proto_rawDescData
}

var file_app_v1_authn_idkey_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_app_v1_authn_idkey_proto_goTypes = []any{
	(*IDKeyAuthnMiddleware)(nil),     // 0: app.v1.IDKeyAuthnMiddleware
	(*IDKeyAuthnMiddlewareSpec)(nil), // 1: app.v1.IDKeyAuthnMiddlewareSpec
	(*IDKeyAuthnEnvProvider)(nil),    // 2: app.v1.IDKeyAuthnEnvProvider
	(*IDKeyAuthnFileProvider)(nil),   // 3: app.v1.IDKeyAuthnFileProvider
	(*kernel.Metadata)(nil),          // 4: kernel.Metadata
	(*kernel.Reference)(nil),         // 5: kernel.Reference
	(kernel.HashAlg)(0),              // 6: kernel.HashAlg
	(kernel.CommonKeyCryptType)(0),   // 7: kernel.CommonKeyCryptType
	(kernel.EncodingType)(0),         // 8: kernel.EncodingType
}
var file_app_v1_authn_idkey_proto_depIdxs = []int32{
	4,  // 0: app.v1.IDKeyAuthnMiddleware.Metadata:type_name -> kernel.Metadata
	1,  // 1: app.v1.IDKeyAuthnMiddleware.Spec:type_name -> app.v1.IDKeyAuthnMiddlewareSpec
	5,  // 2: app.v1.IDKeyAuthnMiddlewareSpec.Logger:type_name -> kernel.Reference
	5,  // 3: app.v1.IDKeyAuthnMiddlewareSpec.ErrorHandler:type_name -> kernel.Reference
	6,  // 4: app.v1.IDKeyAuthnMiddlewareSpec.HashAlg:type_name -> kernel.HashAlg
	7,  // 5: app.v1.IDKeyAuthnMiddlewareSpec.CommonKeyCryptType:type_name -> kernel.CommonKeyCryptType
	2,  // 6: app.v1.IDKeyAuthnMiddlewareSpec.EnvProvider:type_name -> app.v1.IDKeyAuthnEnvProvider
	3,  // 7: app.v1.IDKeyAuthnMiddlewareSpec.FileProvider:type_name -> app.v1.IDKeyAuthnFileProvider
	8,  // 8: app.v1.IDKeyAuthnEnvProvider.Encoding:type_name -> kernel.EncodingType
	8,  // 9: app.v1.IDKeyAuthnFileProvider.Encoding:type_name -> kernel.EncodingType
	10, // [10:10] is the sub-list for method output_type
	10, // [10:10] is the sub-list for method input_type
	10, // [10:10] is the sub-list for extension type_name
	10, // [10:10] is the sub-list for extension extendee
	0,  // [0:10] is the sub-list for field type_name
}

func init() { file_app_v1_authn_idkey_proto_init() }
func file_app_v1_authn_idkey_proto_init() {
	if File_app_v1_authn_idkey_proto != nil {
		return
	}
	file_app_v1_authn_idkey_proto_msgTypes[1].OneofWrappers = []any{
		(*IDKeyAuthnMiddlewareSpec_EnvProvider)(nil),
		(*IDKeyAuthnMiddlewareSpec_FileProvider)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_v1_authn_idkey_proto_rawDesc), len(file_app_v1_authn_idkey_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_app_v1_authn_idkey_proto_goTypes,
		DependencyIndexes: file_app_v1_authn_idkey_proto_depIdxs,
		MessageInfos:      file_app_v1_authn_idkey_proto_msgTypes,
	}.Build()
	File_app_v1_authn_idkey_proto = out.File
	file_app_v1_authn_idkey_proto_goTypes = nil
	file_app_v1_authn_idkey_proto_depIdxs = nil
}
