GSA / GSA/ansible-https-proxy

Remove Sensitive Information from Logs

Aberta
#12 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Sem dados de linguagem
Estrelas
10
Forks
5
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

>Draft CIS Benchmark 1.1.13

## Description
Sometimes sensitive web application parameters can be written to NGINX log files.

## Rationale
If we imagine sensitive payment information is being sent through NGINX, it may be important to remove such information before it is even logged.

## Remediation
Add the following line to the `server` block in your `nginx.conf`: ``` set $endpoint $request_uri; if ($endpoint ~ "(.*)\?[^ } log_format combined_no_query '$remote_addr - $remote_user [$time_local] ' '"$request_method $endpoint" $status $body_bytes_sent ' '"$http_referer" "$http_user_agent"'; access_log /var/log/nginx/access.log combined_no_query; ```

## Audit
Check the `access\_log` from NGINX for any sensitive information.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.