Project

General

Profile

Actions

Bug #20995

open

Rudder API does not check for allowed_networks unicity

Added by Félix DALLIDET over 2 years ago. Updated 15 days ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
API
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

Whenever you add a new allowed_network via the API, it does not check if it is already defined.
To reproduce, just run multiple times in a row the command below:

 curl -k -X POST -H "X-API-Token: $(cat /var/rudder/run/api-token)" -H "Content-Type: application/json" -d '"{\"allowed_networks\": {\"add\": [\"192.168.0.0/16\"]}}"' 'https://localhost/rudder/api/latest/settings/allowed_networks/<relay id>/diff'
Actions

Also available in: Atom PDF