Skip to content
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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tammy-baylis-swi
Copy link
Contributor

WIP/PoC to split current ApmConfig into two parts init'd by distro then configurator.


logger.debug(
"Set up transaction filters: %s",
self.__config["transaction_filters"],

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information High

This expression logs
sensitive data (secret)
as clear text.
else:
logger.warning(
"Ignore invalid configuration key: %s",
".".join(keys),

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information High

This expression logs
sensitive data (secret)
as clear text.
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

This expression logs
sensitive data (secret)
as clear text.
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

This expression stores
sensitive data (secret)
as clear text.
@@ -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

Variable user_config is not used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant