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: fa3e23fc4b9ed00ec1dec7503775093ddcb9b0a73024fe2dd72dec7543677ba4