Skip to content

Privacy redaction, waiver file, cache correctness, and slim core install#156

Merged
advaitpatel merged 3 commits into
mainfrom
feat/industry-readiness-p0
Jul 18, 2026
Merged

Privacy redaction, waiver file, cache correctness, and slim core install#156
advaitpatel merged 3 commits into
mainfrom
feat/industry-readiness-p0

Conversation

@advaitpatel

Copy link
Copy Markdown
Collaborator

This release hardens DockSec for team and CI adoption across seven areas:

Secret-looking values in Dockerfiles and compose files are now masked before any content is sent to an LLM provider (on by default, --no-redact to opt out), and the README documents exactly what leaves the machine.
AI analysis input limits raised from 50 lines / 2,000 chars to 400 / 16,000 (compose 600 / 24,000), with an explicit warning whenever input is truncated.
The base install is now a slim, scan-only core with no LLM dependencies; AI analysis is installed via pip install "docksec[ai]". Unused dependencies (pandas, tqdm, tenacity) removed and pins relaxed to compatible ranges.
Scan cache is keyed by image content digest and Dockerfile content hash, so rebuilt tags and changed Dockerfiles never serve stale results; entries expire after 24 hours; new --no-cache flag.
New ignore file (--ignore-file, auto-detected .docksec-ignore.yml) for auditable, per-finding waivers with reasons and expiry dates, honored by scoring, reports, --json, and --fail-on.
Compose rules tuned to cut alert fatigue: the port rule flags only sensitive ports and now catches bare container-port entries that bind 0.0.0.0; three boilerplate rules demoted in severity.
Version bumped to 2026.7.4; Action examples pinned to a release tag.

@github-actions github-actions Bot added documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file cli Changes to the CLI entry point core Changes to core scanning logic config Changes to configuration handling tests Changes to the test suite labels Jul 17, 2026
@github-actions

Copy link
Copy Markdown

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 16 package(s) with unknown licenses.
See the Details below.

License Issues

requirements.txt

PackageVersionLicenseIssue Type
colorama>= 0.4.6,< 1NullUnknown License
fpdf2>= 2.8,< 3NullUnknown License
langchain>= 1.2,< 2NullUnknown License
langchain-anthropic>= 1.4,< 2NullUnknown License
langchain-core>= 1.3,< 2NullUnknown License
langchain-google-genai>= 4.2,< 5NullUnknown License
langchain-ollama>= 1.1,< 2NullUnknown License
langchain-openai>= 1.2,< 2NullUnknown License
pydantic>= 2.13,< 3NullUnknown License
python-dotenv>= 1.0,< 2NullUnknown License
rich>= 13.0,< 16NullUnknown License

setup.py

PackageVersionLicenseIssue Type
colorama>= 0.4.6,< 1NullUnknown License
fpdf2>= 2.8,< 3NullUnknown License
pydantic>= 2.13,< 3NullUnknown License
python-dotenv>= 1.0,< 2NullUnknown License
rich>= 13.0,< 16NullUnknown License

OpenSSF Scorecard

Scorecard details
PackageVersionScoreDetails
pip/colorama >= 0.4.6,< 1 UnknownUnknown
pip/fpdf2 >= 2.8,< 3 UnknownUnknown
pip/langchain >= 1.2,< 2 UnknownUnknown
pip/langchain-anthropic >= 1.4,< 2 UnknownUnknown
pip/langchain-core >= 1.3,< 2 UnknownUnknown
pip/langchain-google-genai >= 4.2,< 5 UnknownUnknown
pip/langchain-ollama >= 1.1,< 2 UnknownUnknown
pip/langchain-openai >= 1.2,< 2 UnknownUnknown
pip/pydantic >= 2.13,< 3 UnknownUnknown
pip/python-dotenv >= 1.0,< 2 UnknownUnknown
pip/rich >= 13.0,< 16 UnknownUnknown
pip/colorama >= 0.4.6,< 1 UnknownUnknown
pip/fpdf2 >= 2.8,< 3 UnknownUnknown
pip/pydantic >= 2.13,< 3 UnknownUnknown
pip/python-dotenv >= 1.0,< 2 UnknownUnknown
pip/rich >= 13.0,< 16 UnknownUnknown

Scanned Files

  • requirements.txt
  • setup.py

Comment thread docksec/docker_scanner.py Fixed
Comment thread docksec/docker_scanner.py Fixed
Output polish: image-only runs get the correct AI hint, waived findings are surfaced in the terminal summary, --json, and HTML report, the HTML report gains a score rating badge and a "Fixed In" column, and the Trivy spinner no longer garbles CI logs.
@github-actions github-actions Bot added the reports Changes to report generation label Jul 18, 2026
@advaitpatel
advaitpatel merged commit 5ff6550 into main Jul 18, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Changes to the CLI entry point config Changes to configuration handling core Changes to core scanning logic dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation reports Changes to report generation tests Changes to the test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants