Skip to content

fix: add nosec annotations for bandit HIGH findings#58

Merged
bschimke95 merged 1 commit intomainfrom
KU-5612/fix-bandit-findings
Apr 9, 2026
Merged

fix: add nosec annotations for bandit HIGH findings#58
bschimke95 merged 1 commit intomainfrom
KU-5612/fix-bandit-findings

Conversation

@louiseschmidtgen
Copy link
Copy Markdown
Contributor

Summary

Add inline # nosec annotations for intentional security patterns flagged by the new bandit SAST workflow (-lll, HIGH severity only).

These are all documented exceptions — not actual security vulnerabilities:

Finding Annotation Rationale
B501 # nosec B501 verify=False used for internal cluster communication
B602 # nosec B602 subprocess(shell=True) with trusted/controlled input
B324 # nosec B324 MD5 used for content hashing, not security
B701 # nosec B701 Jinja2 autoescape disabled for non-HTML template generation
B202 # nosec B202 tarfile.extractall from trusted upstream release artifacts

Context

Companion to the SAST workflows PR. Once both are merged, the bandit workflow will pass cleanly.

Add inline nosec annotations for intentional security patterns
flagged by bandit -lll (HIGH severity only). These are documented
exceptions, not security vulnerabilities:

- B324: MD5 not used for security purposes
@louiseschmidtgen louiseschmidtgen requested a review from a team as a code owner April 9, 2026 08:34
Copy link
Copy Markdown

@bschimke95 bschimke95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bandit fix reviewed and approved.

@bschimke95 bschimke95 merged commit f45e1ea into main Apr 9, 2026
1 of 2 checks passed
@bschimke95 bschimke95 deleted the KU-5612/fix-bandit-findings branch April 9, 2026 09:55
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