-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIPS] Prefer warning over error #19465
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. |
@@ -12,15 +15,15 @@ def enable_fips(path_to_openssl_conf=None, path_to_openssl_modules=None): | |||
path_to_embedded = _get_embedded_path() if path_to_embedded is None else path_to_embedded | |||
path_to_openssl_conf = path_to_embedded / "ssl" / "openssl.cnf" | |||
if not path_to_openssl_conf.exists(): | |||
raise RuntimeError(f'The configuration file "{path_to_openssl_conf}" does not exist') | |||
LOGGER.warning('The configuration file "%s" does not exist', path_to_openssl_conf) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and below: let's decide between info
and debug
here. Some questions to help decide:
- Who's the target audience here? Is it a user who's just interested if their agent works? Or is it a user with a broken agent or (Support) engineer who is helping this user?
- If the config file doesn't exist, can we enable FIPS mode? Looks like we can...
What does this PR do?
Motivation
Review checklist (to be filled by reviewers)
qa/skip-qa
label if the PR doesn't need to be tested during QA.backport/<branch-name>
label to the PR and it will automatically open a backport PR once this one is merged