Skip to content

ROB-1753 Bump black, pyasn1 and oauthlib to fix CVEs - #561

Closed
moshemorad wants to merge 1 commit into
mainfrom
claude/optimistic-edison-xbscyk
Closed

moshemorad wants to merge 1 commit into
mainfrom
claude/optimistic-edison-xbscyk

Conversation

@moshemorad

Copy link
Copy Markdown
Contributor

Summary

Fixes the remaining krr dependabot alerts from ROB-1753.

Package From To CVEs
black (dev) 26.3.1 26.10.1 CVE-2026-114134 (due 2026-11-23)
pyasn1 0.6.4 0.6.5 CVE-2026-119194..119197
oauthlib 3.2.2 4.0.1 CVE-2026-118669

poetry.lock regenerated with Poetry 1.8.5 (--no-update); requirements.txt and enforcer/requirements.txt edited to match. Floors are in pyproject.toml with CVE comments. oauthlib is transitive only (requests-oauthlib, kubernetes), so it is added as a floor dependency.

Evidence

  • trivy fs HIGH/CRITICAL: 5 findings before (oauthlib, pyasn1 ×4), 0 after. Trivy doesn't flag the black CVE on either side, so that proof is the locked version.
  • pytest tests: 55 passed.

Not tested

  • Image build and scan (these are dependency-only changes; the krr image already shows no findings in Vanta).
  • Against a live Prometheus or cluster; oauthlib moves a major version (3 → 4) under the kubernetes client.
  • Python 3.10 resolution beyond poetry check --lock.

Generated by Claude Code

black 26.10.1 (CVE-2026-114134), pyasn1 0.6.5 (CVE-2026-119194..119197),
oauthlib 4.0.1 (CVE-2026-118669). poetry.lock regenerated with Poetry 1.8.5
(--no-update); requirements files edited to match.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016rSf6FV2d9mJeZ1To5He4G
Signed-off-by: Claude <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Dependency declarations update the versions of oauthlib, pyasn1, and black across the project configuration and requirements files.

Changes

Dependency Updates

Layer / File(s) Summary
Dependency constraints
pyproject.toml, requirements.txt, enforcer/requirements.txt
Runtime constraints update oauthlib and pyasn1. The development constraint updates black.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: avi-robusta, roiglinik, naomi-robusta

Merge Risk: Minimal · up to eb750

The dependency updates present no established merge-blocking risk in the supplied review context.

Pre-merge checks: Passed 5
Check name Status Explanation
Description check Passed The description clearly explains the dependency updates, CVE remediation, regenerated lockfile, testing results, and untested areas. It is directly related to the changeset.
Title check Passed The title clearly identifies the main dependency updates and their purpose of fixing CVEs. It is concise and specific.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (3 skipped: 3 unsupported.)

Finishing Touches
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 83f2b40b-f735-46b5-8e05-7273359d5c15
Commits

Reviewing files that changed from the base of the PR and between 5add268 and eb7505f.

Files ignored due to path filters: 1
  • poetry.lock is excluded by !**/*.lock
Files selected for processing: 3
  • enforcer/requirements.txt
  • pyproject.toml
  • requirements.txt

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@naomi-robusta

Copy link
Copy Markdown
Contributor

Resolve conflicts before merge @claude

@moshemorad moshemorad closed this Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

Closing this as a duplicate. #577 (ROB-1831) already merged the same fixes into main: black 26.10.1 (CVE-2026-114134), pyasn1 0.6.5 (CVE-2026-119194..119197) and oauthlib 4.0.1 (CVE-2026-118669), in pyproject.toml, poetry.lock and requirements.txt. enforcer/requirements.txt already pins pyasn1 0.6.5.

Resolving the conflicts here would leave nothing to merge, and the branch would also downgrade requests-oauthlib from 2.0.0 to 1.4.1 in requirements.txt.


Generated by Claude Code

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.

3 participants