1.1.10 Ensure that the --repair-malformed-updates argument is set to false

Information

Disable fixing of malformed updates.

Rationale:

The apiserver will potentially attempt to fix the update requests to pass the validation even if the requests are malformed. Malformed requests are one of the potential ways to interact with a service without legitimate information. Such requests could potentially be used to sabotage apiserver responses.

Solution

Edit the `/etc/kubernetes/apiserver` file on the master node and set the `KUBE_API_ARGS` parameter to `'--repair-malformed-updates=false'`: `KUBE_API_ARGS='--repair-malformed-updates=false'`

Based on your system, restart the `kube-apiserver` service. For example: `systemctl restart kube-apiserver.service`

Impact:

Malformed requests from clients would be rejected.

See Also

https://workbench.cisecurity.org/files/1738

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CSCv6|14

Plugin: Unix

Control ID: dc3dc0091905a14083387446a1c908cefbe296632e87dbcae8bb7ff77d7e5f1b