Skip to content

Syncing development branch with main branch - #7

Merged
vikrantpuppala merged 1 commit into
developmentfrom
development-sync
Aug 2, 2023
Merged

vikrantpuppala merged 1 commit into
developmentfrom
development-sync

Conversation

@vikrantpuppala

Copy link
Copy Markdown
Collaborator

[development]: Changes for polling result status and skeletons for chunk downloader

[development]: Changes for polling result status and skeletons for chunk downloader
@vikrantpuppala
vikrantpuppala requested a review from gopalldb August 2, 2023 06:40
@vikrantpuppala
vikrantpuppala merged commit 6b17ed5 into development Aug 2, 2023
@vikrantpuppala
vikrantpuppala deleted the development-sync branch August 2, 2023 06:48
gopalldb added a commit that referenced this pull request May 11, 2026
Major fixes:
- #1: Use 2-thread pool instead of single-thread to prevent one blocked
  heartbeat RPC from starving others on the same connection
- #3: Fix getStoppedFlag() leak — use get() + ALREADY_STOPPED sentinel
  instead of computeIfAbsent() which re-created a false flag after
  stopHeartbeat() removed it, causing RPCs after stop

Minor fixes:
- #2: Increase awaitTermination from 5s to 10s with explanatory comment
- #4: Add comment about client capture retaining session reference
- #5: Document reactive vs proactive heartbeat stop limitation
- #6, #7, #9, #10, #11: Acknowledged as correct/acceptable per reviewer

Co-authored-by: Isaac
Signed-off-by: Gopal Lal <[email protected]>
vikrantpuppala added a commit that referenced this pull request May 20, 2026
Removes the OWASP step, NVD database cache, and OWASP findings parsing
from securityScan.yml. OSV-Scanner now drives the gate alone.

Motivation:

  - OSV's database is a strict superset of NVD's (federates GHSA, NVD,
    PyPA, RustSec, Go vuln DB). We've already seen two real CVEs OSV
    catches that OWASP misses entirely -- CVE-2025-66566 in lz4 and
    CVE-2026-5598 in bouncycastle, both GHSA-only with no NVD CPE.

  - The release pipeline at databricks/secure-public-registry-releases-eng
    already skips OWASP (every Maven step has -Ddependency-check.skip=true)
    and runs its own artifact-level scan via databricks/gh-action-scan.
    So removing OWASP from this repo's CI does not disturb release gating.

  - OWASP's NVD database (~150-700 MB), the NVD_API_KEY secret, and the
    cache machinery added minutes per run for coverage we don't actually
    use any more.

The OWASP plugin block stays in jdbc-core/pom.xml and owasp-suppressions.xml
stays in the repo, because the disabled-anyway in-repo release.yml /
release-thin.yml workflows still reference them. Cleaning those up is a
separate change.

Also addresses these from the PR review:

  #1 (SBOM existence guard): the OSV step now explicitly checks
      target/bom.json exists before scanning, and that osv-scanner
      produced a non-empty output. Build failures now surface with a
      clear ::error:: instead of a downstream jq error.

  #3 (set -uo pipefail without -e): added a comment explaining that -e
      is dropped intentionally because osv-scanner exits 1 on any
      finding regardless of severity; the severity >= 7 filter below is
      the real gate.

  #4 (severity filter silently treats malformed scores as 0): the
      Collect findings step now logs total_findings alongside
      high_count, so a mismatch (e.g. "10 total / 0 high") would be
      visible in the step summary and warn ops about OSV format drift.

  #5 (suppressions are CVE-id global, not package-scoped): OSV-Scanner
      v2.3.8 does not actually support per-package CVE-id ignores
      (verified against internal/config/config.go -- PackageOverrides
      has no per-CVE field). Documented the trade-off explicitly in
      osv-scanner.toml's header so future readers understand the
      scoping model and the acceptable-risk reasoning.

  #7 (fork PR maven config): added a comment in the workflow explaining
      that fork PRs work even with JFrog OIDC skipped, because all of
      the driver's direct dependencies are published to public Maven
      Central. JFrog is just a mirror, not a source.

Verified locally: OSV reports the same 2 unsuppressed CVSS>=7 findings
(bouncycastle CVE-2026-5598 + libthrift cluster) as before, with no
schema errors against the corrected osv-scanner.toml.

Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <[email protected]>
vikrantpuppala added a commit that referenced this pull request May 21, 2026
Removes the OWASP step, NVD database cache, and OWASP findings parsing
from securityScan.yml. OSV-Scanner now drives the gate alone.

Motivation:

  - OSV's database is a strict superset of NVD's (federates GHSA, NVD,
    PyPA, RustSec, Go vuln DB). We've already seen two real CVEs OSV
    catches that OWASP misses entirely -- CVE-2025-66566 in lz4 and
    CVE-2026-5598 in bouncycastle, both GHSA-only with no NVD CPE.

  - The release pipeline at databricks/secure-public-registry-releases-eng
    already skips OWASP (every Maven step has -Ddependency-check.skip=true)
    and runs its own artifact-level scan via databricks/gh-action-scan.
    So removing OWASP from this repo's CI does not disturb release gating.

  - OWASP's NVD database (~150-700 MB), the NVD_API_KEY secret, and the
    cache machinery added minutes per run for coverage we don't actually
    use any more.

The OWASP plugin block stays in jdbc-core/pom.xml and owasp-suppressions.xml
stays in the repo, because the disabled-anyway in-repo release.yml /
release-thin.yml workflows still reference them. Cleaning those up is a
separate change.

Also addresses these from the PR review:

  #1 (SBOM existence guard): the OSV step now explicitly checks
      target/bom.json exists before scanning, and that osv-scanner
      produced a non-empty output. Build failures now surface with a
      clear ::error:: instead of a downstream jq error.

  #3 (set -uo pipefail without -e): added a comment explaining that -e
      is dropped intentionally because osv-scanner exits 1 on any
      finding regardless of severity; the severity >= 7 filter below is
      the real gate.

  #4 (severity filter silently treats malformed scores as 0): the
      Collect findings step now logs total_findings alongside
      high_count, so a mismatch (e.g. "10 total / 0 high") would be
      visible in the step summary and warn ops about OSV format drift.

  #5 (suppressions are CVE-id global, not package-scoped): OSV-Scanner
      v2.3.8 does not actually support per-package CVE-id ignores
      (verified against internal/config/config.go -- PackageOverrides
      has no per-CVE field). Documented the trade-off explicitly in
      osv-scanner.toml's header so future readers understand the
      scoping model and the acceptable-risk reasoning.

  #7 (fork PR maven config): added a comment in the workflow explaining
      that fork PRs work even with JFrog OIDC skipped, because all of
      the driver's direct dependencies are published to public Maven
      Central. JFrog is just a mirror, not a source.

Verified locally: OSV reports the same 2 unsuppressed CVSS>=7 findings
(bouncycastle CVE-2026-5598 + libthrift cluster) as before, with no
schema errors against the corrected osv-scanner.toml.

Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <[email protected]>
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