MySQL 26.10.0
Source Code Documentation
mrs::EmbeddedRuntimeServices Class Referenceabstract

Component-mode overrides for selected MRS runtime services. More...

#include <embedded_runtime_services.h>

Inheritance diagram for mrs::EmbeddedRuntimeServices:
[legend]

Public Member Functions

virtual ~EmbeddedRuntimeServices ()=default
 
virtual std::unique_ptr< collector::MysqlCacheManager > create_mysql_cache_manager (const Configuration &configuration)=0
 
virtual std::optional< std::string > authenticate_mysql_user (const std::string &user, const mysql_harness::SecureString &password)=0
 Validate HTTP-supplied MySQL credentials through the server authentication path and return the authenticated CURRENT_USER() identity. More...
 
virtual std::shared_ptr< collector::MysqlFixedPoolManager > create_mysql_user_session_pool (uint32_t passthrough_pool_size, const std::string &auth_id)=0
 
virtual const std::string & jwt_secret () const =0
 

Detailed Description

Component-mode overrides for selected MRS runtime services.

Standalone Router does not install these services and continues to use the normal network/password/keyring-backed implementation. The component backend installs a non-owning services instance before starting the embedded Router loader and clears it during shutdown.

The services object must outlive all MRS objects created while it is installed.

Constructor & Destructor Documentation

◆ ~EmbeddedRuntimeServices()

virtual mrs::EmbeddedRuntimeServices::~EmbeddedRuntimeServices ( )
virtualdefault

Member Function Documentation

◆ authenticate_mysql_user()

virtual std::optional< std::string > mrs::EmbeddedRuntimeServices::authenticate_mysql_user ( const std::string &  user,
const mysql_harness::SecureString &  password 
)
pure virtual

Validate HTTP-supplied MySQL credentials through the server authentication path and return the authenticated CURRENT_USER() identity.

The returned auth id is used for embedded sessions created after authentication; this call itself must not attach an embedded security context for a user that has not been authenticated yet.

Implemented in mrs_component::ComponentEmbeddedRuntimeServices.

◆ create_mysql_cache_manager()

virtual std::unique_ptr< collector::MysqlCacheManager > mrs::EmbeddedRuntimeServices::create_mysql_cache_manager ( const Configuration &  configuration)
pure virtual

◆ create_mysql_user_session_pool()

virtual std::shared_ptr< collector::MysqlFixedPoolManager > mrs::EmbeddedRuntimeServices::create_mysql_user_session_pool ( uint32_t  passthrough_pool_size,
const std::string &  auth_id 
)
pure virtual

◆ jwt_secret()

virtual const std::string & mrs::EmbeddedRuntimeServices::jwt_secret ( ) const
pure virtual

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