diff --git a/.ds.baseline b/.ds.baseline index b94fe9aae..9c1dcfeb6 100644 --- a/.ds.baseline +++ b/.ds.baseline @@ -161,7 +161,7 @@ "filename": "app/config.py", "hashed_secret": "577a4c667e4af8682ca431857214b3a920883efc", "is_verified": false, - "line_number": 119, + "line_number": 118, "is_secret": false } ], @@ -634,5 +634,5 @@ } ] }, - "generated_at": "2025-10-02T14:04:48Z" + "generated_at": "2025-10-07T17:43:26Z" } diff --git a/.github/workflows/deploy-demo.yml b/.github/workflows/deploy-demo.yml index 7aec7adb7..800d2afe9 100644 --- a/.github/workflows/deploy-demo.yml +++ b/.github/workflows/deploy-demo.yml @@ -64,7 +64,6 @@ jobs: LOGIN_DOT_GOV_INITIAL_SIGNIN_URL: "https://secure.login.gov/openid_connect/authorize?acr_values=http%3A%2F%2Fidmanagement.gov%2Fns%2Fassurance%2Fial%2F1&client_id=urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:notify-gov&nonce=NONCE&prompt=select_account&redirect_uri=https://notify-demo.app.cloud.gov/sign-in&response_type=code&scope=openid+email&state=STATE" LOGIN_DOT_GOV_CERTS_URL: "https://secure.login.gov/api/openid_connect/certs" API_PUBLIC_URL: ${{ secrets.API_PUBLIC_URL }} - API_PUBLIC_WS_URL: ${{ secrets.API_PUBLIC_WS_URL }} with: cf_username: ${{ secrets.CLOUDGOV_USERNAME }} cf_password: ${{ secrets.CLOUDGOV_PASSWORD }} @@ -90,7 +89,6 @@ jobs: --var LOGIN_DOT_GOV_CERTS_URL="$LOGIN_DOT_GOV_CERTS_URL" --var LOGIN_PEM="$LOGIN_PEM" --var API_PUBLIC_URL="$API_PUBLIC_URL" - --var API_PUBLIC_WS_URL="$API_PUBLIC_WS_URL" --strategy rolling - name: Deploy egress proxy diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 02e65c36c..8ad58f25b 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -64,7 +64,6 @@ jobs: LOGIN_DOT_GOV_INITIAL_SIGNIN_URL: "https://secure.login.gov/openid_connect/authorize?acr_values=http%3A%2F%2Fidmanagement.gov%2Fns%2Fassurance%2Fial%2F1&client_id=urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:notify-gov&nonce=NONCE&prompt=select_account&redirect_uri=https://beta.notify.gov/sign-in&response_type=code&scope=openid+email&state=STATE" LOGIN_DOT_GOV_CERTS_URL: "https://secure.login.gov/api/openid_connect/certs" API_PUBLIC_URL: ${{ secrets.API_PUBLIC_URL }} - API_PUBLIC_WS_URL: ${{ secrets.API_PUBLIC_WS_URL }} with: cf_username: ${{ secrets.CLOUDGOV_USERNAME }} cf_password: ${{ secrets.CLOUDGOV_PASSWORD }} @@ -90,7 +89,6 @@ jobs: --var LOGIN_DOT_GOV_CERTS_URL="$LOGIN_DOT_GOV_CERTS_URL" --var LOGIN_PEM="$LOGIN_PEM" --var API_PUBLIC_URL="$API_PUBLIC_URL" - --var API_PUBLIC_WS_URL="$API_PUBLIC_WS_URL" --strategy rolling - name: Deploy egress proxy diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 221f361e4..c027d1f28 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -70,7 +70,6 @@ jobs: LOGIN_DOT_GOV_INITIAL_SIGNIN_URL: "https://secure.login.gov/openid_connect/authorize?acr_values=http%3A%2F%2Fidmanagement.gov%2Fns%2Fassurance%2Fial%2F1&client_id=urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:notify-gov&nonce=NONCE&prompt=select_account&redirect_uri=https://notify-staging.app.cloud.gov/sign-in&response_type=code&scope=openid+email&state=STATE" LOGIN_DOT_GOV_CERTS_URL: "https://secure.login.gov/api/openid_connect/certs" API_PUBLIC_URL: ${{ secrets.API_PUBLIC_URL }} - API_PUBLIC_WS_URL: ${{ secrets.API_PUBLIC_WS_URL }} with: cf_username: ${{ secrets.CLOUDGOV_USERNAME }} cf_password: ${{ secrets.CLOUDGOV_PASSWORD }} @@ -96,7 +95,6 @@ jobs: --var LOGIN_DOT_GOV_CERTS_URL="$LOGIN_DOT_GOV_CERTS_URL" --var LOGIN_PEM="$LOGIN_PEM" --var API_PUBLIC_URL="$API_PUBLIC_URL" - --var API_PUBLIC_WS_URL="$API_PUBLIC_WS_URL" --strategy rolling diff --git a/app/__init__.py b/app/__init__.py index 0631481fa..38302c900 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -143,7 +143,6 @@ navigation = { def _csp(config): asset_domain = config["ASSET_DOMAIN"] api_public_url = config["API_PUBLIC_URL"] - api_public_ws_url = config["API_PUBLIC_WS_URL"] return { "default-src": ["'self'", asset_domain], @@ -162,7 +161,6 @@ def _csp(config): "https://www.googletagmanager.com", "https://www.google-analytics.com", "https://dap.digitalgov.gov", - "https://cdn.socket.io", ], "connect-src": list( dict.fromkeys( @@ -171,7 +169,6 @@ def _csp(config): "https://gov-bam.nr-data.net", "https://www.google-analytics.com", f"{api_public_url}", - f"{api_public_ws_url}", ] ) ), @@ -193,16 +190,7 @@ def create_app(application): # @application.context_processor # def inject_feature_flags(): # this is where feature flags can be easily added as a dictionary within context - # feature_socket_enabled = application.config.get("FEATURE_SOCKET_ENABLED", True) - - # current_app.logger.info( - # f"FEATURE_SOCKET_ENABLED value in __init__.py coming \ - # from config is {application.config.get('FEATURE_SOCKET_ENABLED')} and \ - # the ending value is {feature_socket_enabled}" - # ) - # return dict( - # FEATURE_SOCKET_ENABLED=feature_socket_enabled, - # ) + # feature_enabled = application.config.get("FEATURE_ENABLED", True) @application.context_processor def inject_initial_signin_url(): diff --git a/app/config.py b/app/config.py index 4b886a786..92aee1670 100644 --- a/app/config.py +++ b/app/config.py @@ -13,7 +13,6 @@ class Config(object): NOTIFY_ENVIRONMENT = getenv("NOTIFY_ENVIRONMENT", "development") API_HOST_NAME = getenv("API_HOST_NAME", "localhost") API_PUBLIC_URL = getenv("API_PUBLIC_URL", "localhost") - API_PUBLIC_WS_URL = getenv("API_PUBLIC_WS_URL", "localhost") ADMIN_BASE_URL = getenv("ADMIN_BASE_URL", "http://localhost:6012") HEADER_COLOUR = "#81878b" # mix of dark-grey and mid-grey @@ -131,7 +130,6 @@ class Test(Development): ASSET_PATH = "https://static.example.com/" API_HOST_NAME = "http://you-forgot-to-mock-an-api-call-to" API_PUBLIC_URL = "http://you-forgot-to-mock-an-api-call-to" - API_PUBLIC_WS_URL = "ws://you-forgot-to-mock-an-api-call-to" REDIS_URL = "redis://you-forgot-to-mock-a-redis-call-to" LOGO_CDN_DOMAIN = "static-logos.test.com" diff --git a/app/main/views/jobs.py b/app/main/views/jobs.py index b987da5dc..663717350 100644 --- a/app/main/views/jobs.py +++ b/app/main/views/jobs.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -import os from functools import partial from flask import ( @@ -59,7 +58,6 @@ def view_job(service_id, job_id): filter_args = parse_filter_args(request.args) filter_args["status"] = set_status_filters(filter_args) - api_public_url = os.environ.get("API_PUBLIC_URL") notifications = None more_than_one_page = False @@ -74,7 +72,6 @@ def view_job(service_id, job_id): return render_template( "views/jobs/job.html", - api_public_url=api_public_url, job=job, status=request.args.get("status", ""), counts=_get_job_counts(job), diff --git a/app/templates/views/jobs/job.html b/app/templates/views/jobs/job.html index 75b67a740..9892f9ff9 100644 --- a/app/templates/views/jobs/job.html +++ b/app/templates/views/jobs/job.html @@ -15,7 +15,7 @@ {% if not job.finished_processing %}
Status updates automatically while processing. Refresh the page if needed.
{% endif %} -