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

[confcom] Add confcom extension #5833

Merged
merged 11 commits into from
Feb 17, 2023
Prev Previous commit
Next Next commit
adding execProcesses as input for input.json variant
  • Loading branch information
SethHollandsworth committed Feb 10, 2023
commit e926633287ae2b521a795679d5dfdf6873e01627
3 changes: 2 additions & 1 deletion src/confcom/azext_confcom/security_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,8 @@ def load_policy_from_str(data: str, debug_mode: bool = False) -> AciPolicy:

# set the fields that are present in the container but not in the
# config
container[config.ACI_FIELD_CONTAINERS_EXEC_PROCESSES] = (
container[config.ACI_FIELD_CONTAINERS_EXEC_PROCESSES] = container.get(
config.ACI_FIELD_CONTAINERS_EXEC_PROCESSES, []) + (
config.DEBUG_MODE_SETTINGS.get("execProcesses") if debug_mode else []
)
container[config.ACI_FIELD_CONTAINERS_SIGNAL_CONTAINER_PROCESSES] = []
Expand Down