Skip to content

Commit

Permalink
Remove openssl.cnf workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
dkirov-dd committed Dec 18, 2024
1 parent e07659e commit 8837acd
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions datadog_checks_base/datadog_checks/base/checks/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,33 +310,7 @@ def __init__(self, *args, **kwargs):
self.__logs_enabled = None

if os.environ.get("GOFIPS", "0") == "1":
with open("/opt/datadog-agent/embedded/ssl/openssl_fips.cnf", "w") as f:
config = """
config_diagnostics = 1
openssl_conf = openssl_init
.include /opt/datadog-agent/embedded/ssl/fipsmodule.cnf
[openssl_init]
providers = provider_sect
alg_section = algorithm_sect
[provider_sect]
fips = fips_sect
base = base_sect
[base_sect]
activate = 1
[algorithm_sect]
default_properties = fips=yes
"""
f.write(config)

enable_fips(
path_to_openssl_conf="/opt/datadog-agent/embedded/ssl/openssl_fips.cnf",
path_to_openssl_modules="/opt/datadog-agent/embedded/lib/ossl-modules",
)
enable_fips()

def _create_metrics_pattern(self, metric_patterns, option_name):
all_patterns = metric_patterns.get(option_name, [])
Expand Down

0 comments on commit 8837acd

Please sign in to comment.