Actions
Bug #20995
openRudder API does not check for allowed_networks unicity
Pull Request:
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