update default block list,docs, tests (#7942)
* update default block list,docs, tests * fix config for admin test * gofmt * remove the err return
This commit is contained in:
parent
e57d2f63fa
commit
d4a6ade65f
7 changed files with 69 additions and 63 deletions
|
|
@ -30,7 +30,7 @@ The following table shows a configuration option's name, type, and the default v
|
|||
|[add-headers](#add-headers)|string|""|
|
||||
|[allow-backend-server-header](#allow-backend-server-header)|bool|"false"|
|
||||
|[allow-snippet-annotations](#allow-snippet-annotations)|bool|true|
|
||||
|[annotation-value-word-blocklist](#annotation-value-word-blocklist)|string array|"load_module","lua_package","_by_lua","location","root","proxy_pass","serviceaccount","{","}","'","\"
|
||||
|[annotation-value-word-blocklist](#annotation-value-word-blocklist)|string array|""|
|
||||
|[hide-headers](#hide-headers)|string array|empty|
|
||||
|[access-log-params](#access-log-params)|string|""|
|
||||
|[access-log-path](#access-log-path)|string|"/var/log/nginx/access.log"|
|
||||
|
|
@ -226,20 +226,17 @@ may allow a user to add restricted configurations to the final nginx.conf file
|
|||
## annotation-value-word-blocklist
|
||||
|
||||
Contains a comma-separated value of chars/words that are well known of being used to abuse Ingress configuration
|
||||
and must be blocked.
|
||||
and must be blocked. Related to [CVE-2021-25742](https://github.com/kubernetes/ingress-nginx/issues/7837)
|
||||
|
||||
When an annotation is detected with a value that matches one of the blocked badwords, the whole Ingress wont be configured.
|
||||
When an annotation is detected with a value that matches one of the blocked bad words, the whole Ingress won't be configured.
|
||||
|
||||
_**default:**_ `"load_module,lua_package,_by_lua,location,root,proxy_pass,serviceaccount,{,},',\"`
|
||||
_**default:**_ `""`
|
||||
|
||||
When doing this, the default blocklist is override, which means that the Ingress admin should add all the words
|
||||
that should be blocked, here is a suggested block list.
|
||||
|
||||
Warning: The default value already contains a sane set of badwords. Some features like mod_security needs characters that are blocked, and it's up to the Ingress admin to remove this characters from the blocklist.
|
||||
_**suggested:**_ `"load_module,lua_package,_by_lua,location,root,proxy_pass,serviceaccount,{,},',\"`
|
||||
|
||||
When doing this, the default blocklist is overrided, which means that the Ingress admin should add all the words
|
||||
that should be blocked.
|
||||
|
||||
If you find some word should not be on the default list, or if you think that we should add more badwords, please
|
||||
feel free to open an issue with your case!
|
||||
## hide-headers
|
||||
|
||||
Sets additional header that will not be passed from the upstream server to the client response.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue