Skip to content

Commit b2a96d5

Browse files
committed
recaptcha waf = recaptcha edge. Adding guidance for creating an artifact registry repo
1 parent c73aa5b commit b2a96d5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

bindings/xlb/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Callouts supports serveral backend service types and typical service deployment
1010
- [xlb.Dockerfile](../../xlb.Dockerfile)
1111
- [xlb.cloudbuild.yaml](../../xlb.cloudbuild.yaml)
1212

13-
Deploying a container image to the Google Cloud Artifact Registry may be done with the following command from the repository root:
13+
These deployment files assume that Docker format [Google Cloud Artifact Registry](https://cloud.google.com/artifact-registry/docs/repositories/create-repos) repository named 'recaptcha-edge-repo' has been created in your project. Deploying a container image to the respository may be done with the following command from the repository root:
1414

1515
```
1616
gcloud builds submit --region={region} --config xlb.cloudbuild.yaml
1717
```
1818

19-
Running this command will, by default, create an image in this location: `{region}-docker.pkg.dev/{my-project}/recaptcha-waf-repo/recaptcha-waf:latest`
19+
Running this command will, by default, create an image in this location: `{region}-docker.pkg.dev/{my-project}/recaptcha-edge-repo/recaptcha-edge:latest`
2020

2121
### Manually deploying to Google Cloud Load Balancer
2222
Your load balancer can be configured with the reCAPTCHA External Processing server image by following the [Callouts documentation](https://cloud.google.com/service-extensions/docs/configure-callout-backend-service).
@@ -44,7 +44,7 @@ module "recaptcha_lb_extension" {
4444
extension_cel_match = "request.path.startsWith('/callout')"
4545
4646
# Callout server configs
47-
edge_container = "us-central1-docker.pkg.dev/my-project-id/recaptcha-waf-repo/recaptcha-waf:label"
47+
edge_container = "us-central1-docker.pkg.dev/my-project-id/recaptcha-edge-repo/recaptcha-edge:label"
4848
4949
callout_config = {
5050
project_number = 123456789
@@ -53,7 +53,7 @@ module "recaptcha_lb_extension" {
5353
challenge_page_site_key = "my-challenge-site-key"
5454
session_site_sey = "my-session-site-key"
5555
56-
session_js_install_path = "/callout/session;/blah2"
56+
session_js_install_path = "/callout/session.html;/anotherPage.html"
5757
debug = true
5858
}
5959
}

xlb.cloudbuild.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
steps:
22
# Build the container image
33
- name: 'gcr.io/cloud-builders/docker'
4-
args: ['build', '-t', '$LOCATION-docker.pkg.dev/$PROJECT_ID/recaptcha-waf-repo/recaptcha-waf:latest', '--file', './xlb.Dockerfile', '.']
4+
args: ['build', '-t', '$LOCATION-docker.pkg.dev/$PROJECT_ID/recaptcha-edge-repo/recaptcha-edge:latest', '--file', './xlb.Dockerfile', '.']
55
# Push the container image to Artifact Registry
66
- name: 'gcr.io/cloud-builders/docker'
7-
args: ['push', '$LOCATION-docker.pkg.dev/$PROJECT_ID/recaptcha-waf-repo/recaptcha-waf:latest']
7+
args: ['push', '$LOCATION-docker.pkg.dev/$PROJECT_ID/recaptcha-edge-repo/recaptcha-edge:latest']

0 commit comments

Comments
 (0)