Skip to content

fix: enforce config blocklist in render_and_apply_j2_template - #32

Merged
nileshsimaria merged 1 commit into
Juniper:mainfrom
Venkata-Sai-Vishwanath-robo:fix
Aug 10, 2026
Merged

nileshsimaria merged 1 commit into
Juniper:mainfrom
Venkata-Sai-Vishwanath-robo:fix

Conversation

@Venkata-Sai-Vishwanath-robo

Copy link
Copy Markdown
Contributor

check_config_blocklist (block.cfg) was only wired into load_and_commit_config. render_and_apply_j2_template rendered a Jinja2 template and committed it straight to devices without ever checking the blocklist, letting the same blocked patterns bypass the guardrail via the template path.

check_config_blocklist (block.cfg) was only wired into
load_and_commit_config. render_and_apply_j2_template rendered a
Jinja2 template and committed it straight to devices without ever
checking the blocklist, letting the same blocked patterns (e.g.
root-authentication, login user credentials) bypass the guardrail
via the template path.
@nileshsimaria

Copy link
Copy Markdown
Collaborator

Looks good.

@nileshsimaria
nileshsimaria merged commit 6c11f71 into Juniper:main Aug 10, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants