Security-Guard 示例警报¶
-
发送带有意外查询字符串的事件,例如
curl "http://helloworld-go.default.52.118.14.2.sslip.io?a=3"
这将返回类似于以下内容的输出
Hello Secured World!
-
检查警报
kubectl logs deployment/helloworld-go-00001-deployment queue-proxy|grep "SECURITY ALERT!"
这将返回类似于以下内容的输出
...SECURITY ALERT! HttpRequest -> [QueryString:[KeyVal:[Key a is not known,],],]
-
发送带有意外长 URL 的事件,例如
curl "http://helloworld-go.default.52.118.14.2.sslip.io/AAAAAAAAAAAAAAAA"
这将返回类似于以下内容的输出
Hello Secured World!
-
检查警报
kubectl logs deployment/helloworld-go-00001-deployment queue-proxy|grep "SECURITY ALERT!"
这将返回类似于以下内容的输出
...SECURITY ALERT! HttpRequest -> [Url:[Segments:[Counter out of Range: 1,],Val:[Letters:[Counter out of Range: 16,],Sequences:[Counter out of Range: 1,],],],].