checkId: check.crypto.gost plugin: stellaops.doctor.crypto severity: fail tags: [crypto, gost, russia, compliance]
GOST Algorithm Availability
Doctor check
check.crypto.gost— for operators running Stella Ops under Russian regulatory requirements, confirming that the OpenSSL GOST engine is loaded and the GOST signature, hash, and cipher algorithms are available before a deployment relies on them.
What It Checks
Verifies that GOST cryptographic algorithms are available for Russian deployments. The check validates two layers:
Layer 1 - GOST engine detection: Checks whether the OpenSSL GOST engine is loaded by looking for the engine shared object at:
- A custom path configured via
Crypto:Gost:EnginePath - Common system paths:
/usr/lib/x86_64-linux-gnu/engines-{3,1.1}/gost.so,/usr/lib64/engines-{3,1.1}/gost.so
Layer 2 - Algorithm availability (only if engine is loaded): Verifies the following GOST algorithms are accessible:
- GOST R 34.10-2012-256 (digital signature, 256-bit)
- GOST R 34.10-2012-512 (digital signature, 512-bit)
- GOST R 34.11-2012-256 (Stribog hash, 256-bit)
- GOST R 34.11-2012-512 (Stribog hash, 512-bit)
- GOST R 34.12-2015 (Kuznyechik block cipher)
- GOST 28147-89 (Magma legacy block cipher)
| Condition | Result |
|---|---|
| GOST engine not loaded | Fail |
| Engine loaded but some algorithms missing | Warn |
| Engine loaded and all algorithms available | Pass |
Evidence collected: CryptoProfile, GostEngineLoaded, AvailableAlgorithms, MissingAlgorithms, RequiredAlgorithms.
The check only runs when Crypto:Profile or Cryptography:Profile contains “gost”, “russia”, or equals “ru”.
Why It Matters
Russian regulatory requirements mandate the use of GOST cryptographic algorithms for government and many commercial deployments. Without GOST algorithm support, the platform cannot create compliant digital signatures or encrypt data according to Russian standards. This blocks deployment in regulated Russian environments and may violate data protection requirements.
Common Causes
- OpenSSL GOST engine not installed on the system
- GOST engine not configured in
openssl.cnf - Missing
gost-enginepackage - GOST engine version too old (missing newer algorithms)
- GOST engine installed but algorithm disabled in configuration
- Incomplete GOST engine installation
How to Fix
Docker Compose
# Check if GOST engine is available
docker compose exec gateway openssl engine gost -c 2>/dev/null || echo "GOST engine not found"
# Install GOST engine in the container (add to Dockerfile for persistence)
# For Debian/Ubuntu based images:
# RUN apt-get install -y libengine-gost-openssl1.1
# Set crypto profile
# Crypto__Profile=ru
# Crypto__Gost__EnginePath=/usr/lib/x86_64-linux-gnu/engines-3/gost.so
docker compose restart gateway
Bare Metal / systemd
# Install GOST engine (Debian/Ubuntu)
sudo apt install libengine-gost-openssl1.1
# Or install from source
git clone https://github.com/gost-engine/engine
cd engine && mkdir build && cd build
cmake .. && make && sudo make install
# Configure OpenSSL to load GOST engine
# Add to /etc/ssl/openssl.cnf:
# [gost_section]
# engine_id = gost
# default_algorithms = ALL
# Verify engine is loaded
openssl engine gost -c
# Activate the Stella Ops GOST compliance profile (writes the user's profile pref)
stella crypto profiles select gost
# Persist the runtime crypto profile in YAML so services pick it up on restart.
# Edit etc/appsettings.crypto.russia.yaml (or the layered appsettings.crypto.yaml
# referenced by your deployment) and ensure it contains:
# crypto:
# profile: gost
# gost:
# enginePath: /usr/lib/x86_64-linux-gnu/engines-3/gost.so
# Save, then restart the service. The new profile takes effect on the next start.
sudo systemctl restart stellaops-platform
Kubernetes / Helm
# values.yaml
crypto:
profile: ru
gost:
enginePath: /usr/lib/x86_64-linux-gnu/engines-3/gost.so
# Verify in pod
kubectl exec deploy/stellaops-gateway -- openssl engine gost -c
# Use a base image that includes GOST engine support
# Or mount the engine as a volume
helm upgrade stellaops ./charts/stellaops -f values.yaml
Verification
stella doctor run --check check.crypto.gost
Related Checks
check.crypto.certchain— certificates in GOST deployments should use GOST signature algorithmscheck.crypto.fips— FIPS and GOST are mutually exclusive regional crypto profilescheck.crypto.sm— SM (Chinese) is another regional crypto profile with similar structurecheck.crypto.hsm— GOST keys may be stored in an HSM with GOST support
Related Documentation
See the Doctor reference for the full check catalog, CLI usage, and export bundles.
