Skip to content

Commit d1e8b14

Browse files
authored
Merge pull request #1532 from Altinity/fixes/25.3-fips/starup_checks
2 parents 2710708 + 25f9dda commit d1e8b14

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

programs/keeper/Keeper.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,14 @@ void Keeper::initialize(Poco::Util::Application & self)
177177
Poco::Environment::osName(),
178178
Poco::Environment::osVersion(),
179179
Poco::Environment::osArchitecture());
180+
181+
#if USE_SSL && defined(FIPS_CLICKHOUSE)
182+
if (FIPS_mode())
183+
{
184+
LOG_INFO(&logger(), "Starting in FIPS mode, KAT test result: {}, Integrity check: {}",
185+
BORINGSSL_self_test(), BORINGSSL_integrity_test());
186+
}
187+
#endif
180188
}
181189

182190
std::string Keeper::getDefaultConfigFileName() const

programs/server/Server.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@
141141
# include <Server/SSH/SSHPtyHandlerFactory.h>
142142
# include <Common/LibSSHInitializer.h>
143143
# include <Common/LibSSHLogger.h>
144+
# include <openssl/crypto.h>
144145
#endif
145146

146147
#if USE_GRPC
@@ -593,6 +594,14 @@ void Server::initialize(Poco::Util::Application & self)
593594
Poco::Environment::osName(),
594595
Poco::Environment::osVersion(),
595596
Poco::Environment::osArchitecture());
597+
598+
#if USE_SSL && defined(FIPS_CLICKHOUSE)
599+
if (FIPS_mode())
600+
{
601+
LOG_INFO(&logger(), "Starting in FIPS mode, KAT test result: {}, Integrity check: {}",
602+
BORINGSSL_self_test(), BORINGSSL_integrity_test());
603+
}
604+
#endif
596605
}
597606

598607
std::string Server::getDefaultCorePath() const

0 commit comments

Comments
 (0)