Skip to content

Commit 0972e54

Browse files
detecting client secrets (#150)
* detecting client secrets * Disabled link-checker for https://blog.cloudflare.com/high-reliability-ocsp-stapling/ because it's consistently failing even though the link does work Co-authored-by: andyblundell <[email protected]>
1 parent d4411aa commit 0972e54

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

nhsd-git-secrets/nhsd-rules-linux-mac.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ dynamodb\.[a-z]{2}-[a-z-]*-[1,2,3]\.amazonaws\.com
1616
-----BEGIN[[:blank:]]CERTIFICATE-----
1717
[0-9a-fA-F]{1,4}:[0-9a-fA-F]{1,4}:[0-9a-fA-F]{1,4}:[0-9a-fA-F]{1,4}:[0-9a-fA-F]{1,4}:[0-9a-fA-F]{1,4}:[0-9a-fA-F]{1,4}:[0-9a-fA-F]{1,4}
1818
[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}
19+
(CLIENT|client|Client)(_|\s)(SECRET|secret|Secret)\s*(:|=>|=)\s*("|')?(\{)?[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\})?("|')?

practices/security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The remainder of this page gives more detailed and specific recommendations to b
6262
- Minimum necessary feedback on failed authentication e.g. 404 or blanket 403 when not authenticated to avoid leaking whether resources exist
6363
- Guard against time based authentication attacks, e.g. using a WAF
6464
- Guarded against invalid **certificates** e.g. expiry monitoring.
65-
- Consider [OCSP stapling](https://blog.cloudflare.com/high-reliability-ocsp-stapling/) for improved performance
65+
- Consider <!-- markdown-link-check-disable -->[OCSP stapling](https://blog.cloudflare.com/high-reliability-ocsp-stapling/)<!-- markdown-link-check-enable --> for improved performance
6666
- Ensure **cookies** cannot leak from production to non-production environments e.g. avoid non-production on subdomain of production domain
6767
- Prevent **[clickjacking](https://sudo.pagerduty.com/for_engineers/#clickjacking)** with `X-Frame-Options`
6868
- Be careful not to **leak information**, e.g. error messages, stack traces, headers

0 commit comments

Comments
 (0)