← Back to Pull requests

Add nginx-ssh image: nginx + sshd for external SSH ingress testing #21

Closed
unknown closed this pull request without merging on Sep 01, 2026 08:54 UTC
View on GitHub
unknown unknown commented on Aug 10, 2026 06:22 UTC
Author

Summary

Adds a new nginx-ssh image — a variant of the existing nginx image with OpenSSH server added. Used by kube-burner-ocp's cudn-density workload to validate external SSH ingress to BGP-advertised CUDN pod IPs.

Closes cloud-bulldozer/kube-burner-ocp#491

Changes

  • nginx-ssh/Dockerfile: Based on ubi9/ubi-minimal, installs nginx, openssh-server, openssh-clients, shadow-utils; creates a non-root sshtest user and /etc/ssh-authorized-keys directory for runtime key injection

  • nginx-ssh/root/etc/ssh/sshd_config: Configures sshtest for pubkey-only auth via a mounted AuthorizedKeysFile; sets StrictModes no globally (required because Kubernetes Secret volumes mount directories as 1777)

  • nginx-ssh/root/entrypoint.sh: Starts sshd then nginx (foreground)

  • nginx-ssh/root/etc/nginx/: Standard nginx config with TLS on 8443 and HTTP on 8080

  • nginx-ssh/root/usr/share/nginx/html/128.html: Minimal response payload for nginx health checks

  • Makefile: Added nginx-ssh to the build targets
  • Design decisions

  • Kept the full nginx stack (TLS/8443, mime.types, etc.) rather than a minimal nginxecho-style image, since the cudn-density workload's existing client/app pods make HTTP/HTTPS requests to the server — SSH is additive, not a replacement

  • No SSH credentials baked into the image; the authorized key is mounted at runtime via a Kubernetes Secret

  • Only 128.html is included (all other size-variant HTML files removed as unused by the workload)
  • Test plan

  • Verified image builds and runs locally with podman

  • Verified SSH login works as sshtest with a mounted public key (on baremetal OpenShift cluster)

  • Verified end-to-end with cudn-density --bgp (20/20 SSH checks passed)
  • /cc @venkataanil

    Diff: 229 lines (+171 / -58) across 2 files Reviewer: rsevilla87 Review duration: 31831m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 229 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.325
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #21"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 37.0% (MEDIUM) · Higher = larger blast radius
    37.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.6% · Safe to merge
    14.6%