Skip to content

fix(audit): display routable host instead of bind-all 0.0.0.0 in audit dashboard (#10502 #11) - #10854

Merged
mrveiss merged 1 commit into
Dev_new_guifrom
issue-10502-audit-host
Jul 2, 2026
Merged

mrveiss merged 1 commit into
Dev_new_guifrom
issue-10502-audit-host

Conversation

@mrveiss

@mrveiss mrveiss commented Jul 2, 2026 •

Copy link
Copy Markdown
Owner

Thinking Path

Live re-triage of #10502's 11 defects found 8 already fixed since the 2026-06-26 triage and 3 runtime/data (not code). Only item #11 was a real code bug: the audit dashboard shows the backend's bind address (config.vm.main = AUTOBOT_BACKEND_HOST, set to 0.0.0.0 in prod) as if it were the host.

What Changed

  • services/audit_logger.py: new display_host property — returns the machine FQDN/hostname when vm_source is a bind-all/loopback placeholder (0.0.0.0, ::, 127.0.0.1, ::1, localhost, empty), else the configured value unchanged. Module-level _NON_ROUTABLE_HOSTS set. socket already imported.
  • api/audit.py: audit-statistics vm_info.vm_source now returns display_host (backend-only; no frontend/type change — the label already renders this field).

Verification

  • python -m py_compile clean on both files.
  • Behavior check: 0.0.0.0/empty → resolved FQDN; a real IP (10.0.0.5) passes through untouched.

Model Used

Claude Opus 4.8 (1M context)

Closes #10502 — item #11 is the final code-actionable defect; #1-#5,#7,#8 were already fixed since the 2026-06-26 triage and #6/#9/#10 are runtime/data (not code), per the detailed re-triage comment on the issue.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

✅ SSOT Configuration Compliance: Passing

🎉 No hardcoded values detected that have SSOT config equivalents!

@mrveiss
mrveiss enabled auto-merge (squash) July 2, 2026 07:10
@mrveiss
mrveiss merged commit 180ed85 into Dev_new_gui Jul 2, 2026
31 of 33 checks passed
@mrveiss
mrveiss deleted the issue-10502-audit-host branch July 2, 2026 08:01
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.

1 participant