Skip to content

fix(infra): replace hardcoded IPs in utility scripts with env var overrides (#3051)#3065

Closed
mrveiss wants to merge 1 commit intoDev_new_guifrom
fix/3051
Closed

fix(infra): replace hardcoded IPs in utility scripts with env var overrides (#3051)#3065
mrveiss wants to merge 1 commit intoDev_new_guifrom
fix/3051

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Mar 31, 2026

Summary

  • Add process.env.* with fallback pattern to infrastructure utility/test scripts
  • Replace all hardcoded 172.16.168.* IPs with configurable env var constants
  • Matches existing test-validation-comprehensive-fixed.js pattern

Files changed:

  • autobot-infrastructure/shared/scripts/utilities/test_console_using_browser_vm.js
  • autobot-infrastructure/shared/scripts/utilities/capture_console_logs.js
  • autobot-infrastructure/shared/scripts/infrastructure/playwright-server.js

Closes #3051

Test plan

  • Scripts still work with default IPs (no env vars set)
  • FRONTEND_URL=http://10.0.0.1:5173 override works for each script
  • BROWSER_VM_HOST override works for browser VM scripts

🤖 Generated with Claude Code

…rrides (#3051)

3 files updated to use AUTOBOT_FRONTEND_URL, AUTOBOT_BROWSER_HOST,
AUTOBOT_BROWSER_PORT env vars with 127.0.0.1 safe defaults:

- test_console_using_browser_vm.js: 3 IPs replaced
- capture_console_logs.js: 1 IP replaced
- playwright-server.js: 4 IPs replaced

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mrveiss mrveiss closed this Mar 31, 2026
@mrveiss
Copy link
Copy Markdown
Owner Author

mrveiss commented Mar 31, 2026

Duplicate — already merged in PR #3062

@github-actions
Copy link
Copy Markdown

✅ SSOT Configuration Compliance: Passing

🎉 No hardcoded values detected that have SSOT config equivalents!

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