File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -47,3 +47,20 @@ other applications which will send data to xpanse via webhook APIs.
47
47
On receiving the request, xpanse again tries to generate signature data from received data and
48
48
generate the signature again. If this signature value matches to the signature value sent in the request header,
49
49
then the request is accepted. Otherwise, rejected with HTTP 401.
50
+
51
+ ## Configuration for HMAC Key
52
+
53
+ xpanse must configure the secret key for HMAC signature signing using the property ** xpanse.webhook.hmac.request.signing.key** .
54
+
55
+ A random value can be generated using the below command on command line.
56
+ This will give a 32 byte (256 bit) secret key.
57
+
58
+ ``` shell
59
+ openssl rand -hex 32
60
+ ```
61
+
62
+ Once the key is generated and finalized, it must be used on the client applications as described in their documentation.
63
+
64
+ :::tip Sample key for non-production environments
65
+ To provide better developer experience, the ** dev** spring profile provides a sample key which can be used in non-production environments.
66
+ :::
You can’t perform that action at this time.
0 commit comments