Conversation
7d9ce4f to
cf14f3b
Compare
|
|
||
| It is worth mentioning the CORS configuration of DCR in CODE/PROD limits what can be done in the browser; `curl` might be better for your use-case. | ||
|
|
||
| For example, to interact with a `POST` endpoint, first connect to the SOCKS proxy instance with [guardian/ssm-scala](https://github.com/guardian/ssm-scala): |
There was a problem hiding this comment.
The DevX/Security team are actively deprecating this tol as we speak. Can we document the native AWS SSM version of this instead?
There was a problem hiding this comment.
Can we document the native AWS SSM version of this instead?
Sure! Does this already exist as part of the deprecation plan?
There was a problem hiding this comment.
I'm not sure this needs to be blocking?
There was a problem hiding this comment.
I think the idea is simply not to add ssm-scala to the document when you can do the task with aws cli
|
"This PR is stale because it has been open 30 days with no activity. Unless a comment is added or the “stale” label removed, this will be closed in 3 days" |
The CORS configuration prevents us from making `fetch` calls in the browser. Document the `curl` alternative.
cf14f3b to
c743451
Compare
🚀 Image pushed to AWS ECRImage digest: 🐛 Run the image locallyThe following can be used to run the image locally: # Refer to image using the immutable digest. Find alternatives below.
IMAGE_IDENTIFIER="@sha256:db40bb93de14e248259494ac5bd3439d38dbe20589286ce28996b821178931c9"
# Refer to image using branch tag
# IMAGE_IDENTIFIER=":branch-akash1810-patch-3"
# Refer to image using build tag
# IMAGE_IDENTIFIER=":build-30286"
# Refer to image via the GitHub commit SHA tag
# IMAGE_IDENTIFIER=":sha-c743451e97cbebae47aa516879c02d4d093c63c8"
# Set environment variables for the AWS CLI
AWS_PROFILE="<A_PROFILE_FROM_JANUS>"
AWS_DEFAULT_REGION="eu-west-1"
IMAGE_ACCOUNT_ID=$(aws ssm get-parameter --name /organisation/accounts/deployTools --query "Parameter.Value" --output text)
REGISTRY="${IMAGE_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com"
IMAGE="${REGISTRY}/guardian/dotcom-rendering${IMAGE_IDENTIFIER}"
# Login to AWS ECR https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry_auth.html
aws ecr get-login-password | docker login --username AWS --password-stdin $REGISTRY
# Pull the image
docker pull $IMAGE
# Run the image. You'll likely need to set additional flags. See https://docs.docker.com/reference/cli/docker/container/run.
docker run $IMAGE |
|
"This PR is stale because it has been open 30 days with no activity. Unless a comment is added or the “stale” label removed, this will be closed in 3 days" |
|
This PR was closed because it has been stalled for 3 days with no activity. |
What does this change?
Follows #16217 to offer a
curlexample as the CORS configuration prevents us from makingfetchcalls in the browser.