Skip to content

Commit 2e22ca8

Browse files
SDS-27291 constraints on private and reserved IP addresses
1 parent 61dea5d commit 2e22ca8

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

content/events-api/security.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# How to check the request signature?
1+
# Security
2+
3+
## How to check the request signature?
24

35
Akeneo PIM uses the **secret** to create a hash **signature** of the API event.
46

@@ -44,3 +46,13 @@ You are encouraged to use a string comparison function that is safe to timing at
4446
:::
4547

4648
You can also use the `X-Akeneo-Request-Timestamp` to validate that the event request is not too old.
49+
50+
## Constraints on IP addresses
51+
52+
For security reasons, we block private IP and IP in the ranges that are marked as Reserved-By-Protocol in [RFC 6890](http://www.faqs.org/rfcs/rfc6890.html) as event API target.
53+
54+
These ranges are the following ones:
55+
- private IPv4 ranges: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16
56+
- IPv6 addresses starting with FD or FC
57+
- reserved IPv4 ranges: 0.0.0.0/8, 169.254.0.0/16, 127.0.0.0/8 and 240.0.0.0/4
58+
- reserved IPv6 ranges: ::1/128, ::/128, ::ffff:0:0/96 and fe80::/10

content/getting-started/quick-start-my-first-webhook-5x/step-1.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
Here, you will connect an event subscription to a fake endpoint and receive your first data. :rocket:
44

5-
::: info
6-
For security reasons, local URLs are blocked for event API target location and cannot be used as a fake endpoint. Use Mockbin or a comparable tool instead.
7-
:::
5+
::: tips
6+
When testing your app, we advise you to check our [Constraints on IP addresses](/events-documentation/security.html#constraints-on-ip-addresses) and use [Mockbin](#create-a-bin-on-mockbin) or a comparable tool instead.
7+
:::
88

99
## Create a Bin on Mockbin
1010

0 commit comments

Comments
 (0)