Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
grpc_core::CelAuthorizationEngine Class Reference

#include <cel_authorization_engine.h>

Public Member Functions

 CelAuthorizationEngine (const std::vector< envoy_config_rbac_v3_RBAC * > &rbac_policies)
 

Static Public Member Functions

static std::unique_ptr< CelAuthorizationEngineCreateCelAuthorizationEngine (const std::vector< envoy_config_rbac_v3_RBAC * > &rbac_policies)
 

Private Types

enum  Action { kAllow, kDeny }
 

Private Member Functions

std::unique_ptr< mock_cel::ActivationCreateActivation (const EvaluateArgs &args)
 

Private Attributes

std::map< const std::string, const google_api_expr_v1alpha1_Expr * > allow_if_matched_
 
upb::Arena arena_
 
std::map< const std::string, const google_api_expr_v1alpha1_Expr * > deny_if_matched_
 
absl::flat_hash_set< std::string > envoy_attributes_
 
absl::flat_hash_set< std::string > header_keys_
 
std::unique_ptr< mock_cel::CelMapheaders_
 

Detailed Description

Definition at line 50 of file cel_authorization_engine.h.

Member Enumeration Documentation

◆ Action

Enumerator
kAllow 
kDeny 

Definition at line 64 of file cel_authorization_engine.h.

Constructor & Destructor Documentation

◆ CelAuthorizationEngine()

grpc_core::CelAuthorizationEngine::CelAuthorizationEngine ( const std::vector< envoy_config_rbac_v3_RBAC * > &  rbac_policies)
explicit

Definition at line 70 of file cel_authorization_engine.cc.

Member Function Documentation

◆ CreateActivation()

std::unique_ptr< mock_cel::Activation > grpc_core::CelAuthorizationEngine::CreateActivation ( const EvaluateArgs args)
private

Definition at line 104 of file cel_authorization_engine.cc.

◆ CreateCelAuthorizationEngine()

std::unique_ptr< CelAuthorizationEngine > grpc_core::CelAuthorizationEngine::CreateCelAuthorizationEngine ( const std::vector< envoy_config_rbac_v3_RBAC * > &  rbac_policies)
static

Definition at line 51 of file cel_authorization_engine.cc.

Member Data Documentation

◆ allow_if_matched_

std::map<const std::string, const google_api_expr_v1alpha1_Expr*> grpc_core::CelAuthorizationEngine::allow_if_matched_
private

Definition at line 75 of file cel_authorization_engine.h.

◆ arena_

upb::Arena grpc_core::CelAuthorizationEngine::arena_
private

Definition at line 76 of file cel_authorization_engine.h.

◆ deny_if_matched_

std::map<const std::string, const google_api_expr_v1alpha1_Expr*> grpc_core::CelAuthorizationEngine::deny_if_matched_
private

Definition at line 73 of file cel_authorization_engine.h.

◆ envoy_attributes_

absl::flat_hash_set<std::string> grpc_core::CelAuthorizationEngine::envoy_attributes_
private

Definition at line 77 of file cel_authorization_engine.h.

◆ header_keys_

absl::flat_hash_set<std::string> grpc_core::CelAuthorizationEngine::header_keys_
private

Definition at line 78 of file cel_authorization_engine.h.

◆ headers_

std::unique_ptr<mock_cel::CelMap> grpc_core::CelAuthorizationEngine::headers_
private

Definition at line 79 of file cel_authorization_engine.h.


The documentation for this class was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:35