Skip to content

Commit f7f6de0

Browse files
committed
FSPT-342 - Use basic auth when publishing from Designer to Runner
The Designer makes a backend call to the Runner - specifically to its /publish endpoint, to publish forms. This is the data persistence mechanism in Designer, and is absolutely key to its functionality. We need to make sure that we are passing basic auth credentials as part of this backend request. We implement this in line with existing precedents in Pre-Award and Post-Award - we hard-code the basic auth credentials in a URL we store in AWS Parameter Store (e.g., http://username:[email protected]) and then import that variable as a secret that can be leveraged with no change required to application code. This is especially important here because the backend request made by Designer is implemented within the git submodule / base repo digital-form-builder, increasing the complexity of any application code changes.
1 parent dfad518 commit f7f6de0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

copilot/fsd-form-designer-adapter/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ variables:
5454
NODE_ENV: production
5555
CHOKIDAR_USEPOLLING: true
5656
PREVIEW_URL: "https://application-questions.access-funding.${COPILOT_ENVIRONMENT_NAME}.communities.gov.uk"
57-
PUBLISH_URL: "http://fsd-form-runner-adapter:3009"
5857
AUTH_SERVICE_URL: "https://account.access-funding.${COPILOT_ENVIRONMENT_NAME}.communities.gov.uk"
5958
SSO_LOGIN_URL: "/sso/login?return_app=form-designer"
6059
SSO_LOGOUT_URL: "/sessions/sign-out"
6160
AUTH_COOKIE_NAME: "fsd_user_token"
6261
AUTH_ENABLED: true
6362

6463
secrets:
64+
PUBLISH_URL: /copilot/${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/secrets/FORM_RUNNER_INTERNAL_HOST
6565
RSA256_PUBLIC_KEY_BASE64: /copilot/${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/secrets/RSA256_PUBLIC_KEY_BASE64
6666
SESSION_COOKIE_PASSWORD: /copilot/${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/secrets/SESSION_COOKIE_PASSWORD
6767

0 commit comments

Comments
 (0)