Remove Socket.IO dependencies and Socket infrastructure

- Remove socket.io-client npm package
- Remove Socket.IO from gulpfile.js
- Remove API_PUBLIC_WS_URL config variable from all environments
- Remove Socket CSP directives (cdn.socket.io, wss:// URLs)
- Remove unused data-host attribute from job template
- Update test_headers.py to remove Socket.IO assertions
- Update deployment configs (manifest.yml, deploy-config/*.yml, .github/workflows/*.yml)
This commit is contained in:
Beverly Nguyen
2025-10-07 10:44:45 -07:00
parent b0527c1fd8
commit 705952cc30
16 changed files with 9 additions and 124 deletions

View File

@@ -20,8 +20,7 @@ def test_owasp_useful_headers_set(
assert search(
r"script-src 'self' static\.example\.com https:\/\/js-agent\.new"
r"relic\.com https:\/\/gov-bam\.nr-data\.net https:\/\/www\.googletagmanager\."
r"com https:\/\/www\.google-analytics\.com https:\/\/dap\.digitalgov\.gov "
r"https:\/\/cdn\.socket\.io",
r"com https:\/\/www\.google-analytics\.com https:\/\/dap\.digitalgov\.gov",
csp,
)
assert search(r"'nonce-[^']+';", csp)
@@ -42,7 +41,6 @@ def test_owasp_useful_headers_set(
"https://gov-bam.nr-data.net",
"https://www.google-analytics.com",
config["API_PUBLIC_URL"],
config["API_PUBLIC_WS_URL"],
}
actual_sources = set(connect_src.strip().split()[1:])
assert (