@@ -976,7 +976,21 @@ hookdeck connection create \
976976 --destination-url " https://api.example.com/stripe"
977977```
978978
979- ** 4. Destination with Bearer Token**
979+ ** 4. Destination with Hookdeck Signature (Default)**
980+ ``` bash
981+ # Hookdeck automatically signs outgoing webhooks - no configuration needed
982+ hookdeck connection create \
983+ --source-name " stripe-webhooks" \
984+ --source-type STRIPE \
985+ --source-webhook-secret " whsec_stripe_secret" \
986+ --destination-name " api-with-verification" \
987+ --destination-type HTTP \
988+ --destination-url " https://api.example.com/webhook" \
989+ --destination-auth-method hookdeck
990+ ```
991+ * Note: Hookdeck Signature authentication is the default. Hookdeck automatically signs all outgoing webhooks with a signature that can be verified using Hookdeck's verification libraries. No webhook secret needs to be configured.*
992+
993+ ** 5. Destination with Bearer Token**
980994``` bash
981995hookdeck connection create \
982996 --source-name " github-webhooks" \
@@ -985,9 +999,11 @@ hookdeck connection create \
985999 --destination-name " ci-system" \
9861000 --destination-type HTTP \
9871001 --destination-url " https://ci.example.com/webhook" \
1002+ --destination-auth-method bearer \
9881003 --destination-bearer-token " bearer_token_xyz"
1004+ ```
9891005
990- ** 5 . Source with Custom Response and Allowed HTTP Methods**
1006+ ** 6 . Source with Custom Response and Allowed HTTP Methods**
9911007``` bash
9921008hookdeck connection create \
9931009 --source-name " api-webhooks" \
@@ -1002,7 +1018,7 @@ hookdeck connection create \
10021018
10031019#### Rule Configuration Examples
10041020
1005- ** 6 . Retry Rules**
1021+ ** 7 . Retry Rules**
10061022``` bash
10071023hookdeck connection create \
10081024 --source-name " payment-webhooks" \
@@ -1015,7 +1031,7 @@ hookdeck connection create \
10151031 --rule-retry-interval 60000
10161032```
10171033
1018- ** 7 . Filter Rules**
1034+ ** 8 . Filter Rules**
10191035``` bash
10201036hookdeck connection create \
10211037 --source-name " events" \
@@ -1026,7 +1042,7 @@ hookdeck connection create \
10261042 --rule-filter-body ' {"event_type":"payment.succeeded"}'
10271043```
10281044
1029- ** 8 . All Rule Types Combined**
1045+ ** 9 . All Rule Types Combined**
10301046``` bash
10311047hookdeck connection create \
10321048 --source-name " shopify-webhooks" \
@@ -1042,7 +1058,7 @@ hookdeck connection create \
10421058 --rule-delay 5000
10431059```
10441060
1045- ** 9 . Rate Limiting**
1061+ ** 10 . Rate Limiting**
10461062``` bash
10471063hookdeck connection create \
10481064 --source-name " high-volume-source" \
@@ -1054,6 +1070,19 @@ hookdeck connection create \
10541070 --destination-rate-limit-period minute
10551071```
10561072
1073+ ** 11. GCP Service Account Authentication**
1074+ ``` bash
1075+ hookdeck connection create \
1076+ --source-name " webhooks" \
1077+ --source-type HTTP \
1078+ --destination-name " gcp-cloud-function" \
1079+ --destination-type HTTP \
1080+ --destination-url " https://us-central1-project-id.cloudfunctions.net/function" \
1081+ --destination-auth-method gcp \
1082+ --destination-gcp-service-account-key ' {"type":"service_account","project_id":"project-id","private_key_id":"key-id","private_key":"-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n","client_email":"service-account@project-id.iam.gserviceaccount.com"}' \
1083+ --destination-gcp-scope " https://www.googleapis.com/auth/cloud-platform"
1084+ ```
1085+
10571086#### Available Flags
10581087
10591088** Connection Configuration:**
@@ -1084,7 +1113,7 @@ hookdeck connection create \
10841113- ` --destination-cli-path <path> ` - CLI path (default: ` / ` )
10851114- ` --destination-path-forwarding-disabled <true|false> ` - Disable path forwarding for HTTP destinations (default: false)
10861115- ` --destination-http-method <method> ` - HTTP method for HTTP destinations: ` GET ` , ` POST ` , ` PUT ` , ` PATCH ` , ` DELETE `
1087- - ` --destination-auth-method < method> ` - Authentication method: ` hookdeck` , ` bearer` , ` basic` , ` api_key` , ` custom_signature` , ` oauth2_client_credentials` , ` oauth2_authorization_code` , ` aws`
1116+ - ` --destination-auth-method <method> ` - Authentication method: ` hookdeck ` , ` bearer ` , ` basic ` , ` api_key ` , ` custom_signature ` , ` oauth2_client_credentials ` , ` oauth2_authorization_code ` , ` aws ` , ` gcp `
10881117- ` --destination-rate-limit <number> ` - Rate limit (requests per period)
10891118- ` --destination-rate-limit-period <period> ` - Period: ` second ` , ` minute ` , ` hour ` , ` day ` , ` month ` , ` year `
10901119
@@ -1136,6 +1165,11 @@ hookdeck connection create \
11361165- ` --destination-aws-region <region> ` - AWS region
11371166- ` --destination-aws-service <service> ` - AWS service name
11381167
1168+ * GCP Service Account:*
1169+ - ` --destination-auth-method gcp `
1170+ - ` --destination-gcp-service-account-key <json> ` - GCP service account key JSON
1171+ - ` --destination-gcp-scope <scope> ` - GCP scope (optional)
1172+
11391173** Rules - Retry:**
11401174- ` --rule-retry-strategy <strategy> ` - Strategy: ` linear ` , ` exponential `
11411175- ` --rule-retry-count <number> ` - Number of retry attempts (1-20)
0 commit comments