-
Notifications
You must be signed in to change notification settings - Fork 1
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
[WIP/PoC] NH-75342 refactor config and logging #355
base: main
Are you sure you want to change the base?
Conversation
|
||
logger.debug( | ||
"Set up transaction filters: %s", | ||
self.__config["transaction_filters"], |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
sensitive data (secret)
else: | ||
logger.warning( | ||
"Ignore invalid configuration key: %s", | ||
".".join(keys), |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
sensitive data (secret)
except (ValueError, TypeError): | ||
logger.warning( | ||
"Ignore config option with invalid (non-convertible or out-of-range) type: %s", | ||
".".join(keys if keys[0] != "transaction" else keys[1:]), |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
sensitive data (secret)
with open(env_filepath, "x", encoding="utf-8") as env_file: | ||
for config_key, config_value in self.__config.items(): | ||
# TODO transactionSettings dumps | ||
env_file.write(f"{config_key}={config_value}\n") |
Check failure
Code scanning / CodeQL
Clear-text storage of sensitive information High
sensitive data (secret)
@@ -88,6 +89,10 @@ | |||
"""Configure SolarWinds APM and OTel components""" | |||
apm_txname_manager = SolarWindsTxnNameManager() | |||
apm_fwkv_manager = SolarWindsFrameworkKvManager() | |||
|
|||
# TODO Use to init/merge/?? with ApmConfig | |||
user_config = extract_user_config() |
Check notice
Code scanning / CodeQL
Unused local variable Note
WIP/PoC to split current ApmConfig into two parts init'd by distro then configurator.