GSA / GSA/ansible-https-proxy

Remove Sensitive Information from Logs

未关闭
#12 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
没有语言数据
星标
10
派生
5
PR 合并指标
30 天内没有已合并 PR

描述

>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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。