-
Download the source code of the kyma-runtime-extension-samples GitHub repo.
git clone https://github.com/SAP-samples/kyma-runtime-extension-samples
-
Go to the cdc-webhook folder.
cd cdc-webhook
-
Run the following command,
curl 'https://accounts.<Data_Center>/accounts.getJWTPublicKey?apiKey=<CDC_API_KEY>'
Where:
<CDC_API_KEY>
is the API Key of the SAP Customer Data Cloud site.<Data_Center>
is- us1.gigya.com - for the US data center
- eu1.gigya.com - for the European data center
- au1.gigya.com - for the Australian data center
- eu2.gigya.com - for the European Azure data center
- ru1.gigya.com - for the Russian data center
- cn1.sapcdm.cn - for the Chinese data center
- global.gigya.com - for all Global site groups
-
From the response of the above request, copy the values of the
kid
,n
ande
fields and update the values of theCDC_API_KEY
,CDC_KID
,CDC_N_MODULUS
&CDC_E_EXPONENT
environment variables in the./cdc-subscription-webhook/k8s/secret.yaml
file. -
Create the Kubernetes resources of the cdc-subscription-webhook Serverless Function.
kubectl apply -f ./cdc-subscription-webhook/k8s/secret.yaml kubectl apply -f ./cdc-subscription-webhook/k8s/function.yaml
-
Check to confirm that the cdc-subscription-webhook Serverless Function is running in the cdc namespace.
-
Create the cdc-subscription-webhook API Rule.
kubectl apply -f ./cdc-subscription-webhook/k8s/api-rule.yaml
-
Check to confirm that the cdc-subscription-webhook API Rule is running in the cdc namespace.
-
Login to console.gigya.com
-
Select your SAP Customer Data Cloud site and navigate to
Orchestrate
>Webhooks
. -
Click on the
Create Webhook
button and enter the following values and clickSave Changes
.- For
Name
, entercdc-subscription-webhook
. - For
Notification URL
, enter the URL of the cdc-subscription-webhook API Rule that was created in the previous step above. - For
Version
, select2.0 - Signed with a JWS
. - Under
Events
, selectSubscription updated
.
- For
🏠 |
---|