redhat-documentation / vale-at-red-hat

Vale config files, styles, and docs to help individuals and teams roll out Vale
https://redhat-documentation.github.io/vale-at-red-hat/
MIT License
39 stars 59 forks source link

Create a Vale rule set for CustomerSensitiveData #851

Open aireilly opened 3 months ago

aireilly commented 3 months ago

URLs

\b(?:http:\/\/)?(www\.)?(?:[^\s]+)(?:\.[a-zA-Z]{2,3})\b

Allowed

- redhat.com
- hostname
- example.com
- example.net
- example.org
- access.redhat.com
- server.log
- www.redhat.com
- bugzilla.redhat.com
- config.get
- http://access.redhat.com
- https://access.redhat.com
- https://www.redhat.com
- http://www.redhat.com
- agent.log
- rhqctl.log
- rhq-storage.log
- rhq-client.log
- www.example.com
- http://www.example.com
- https://www.example.com
- \*.redhat.com
- node\*.example.com
- \*.openshift.com
- \*.log
- \*.img
- \*.out
- \*.bin
- \*.cfg
- \*.png
- \*.gif
- \*.jpg
- \*.rhq
- \*.jar
- \*.msc
- \*.txt
- \*.pdf
- \*.tar
- \*.gz
- \*.java
- \*.yml
- \*.xml
- \*.csv
- \*.py
- \*.zip
- \*.jpeg
- \*.doc
- \*.docx
- \*.xls
- \*.xlsx
- \*.ppt
- \*.pps
- \*.odt
- \*.ods
- \*.odp
- \*.tgz
- \*.bz
- \*.cpp
- \*.bz2
- \*.sh
- \*.stp
- \*.rtf
- \*.sql

IP addresses

\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}

Allowed

- 10.0.0.0
- 10.0.0.0/24
- 192.0.2.0
- 198.51.100.0
- 203.0.113.0
- 127.*.*.*
- 0.*.*.*
- 224.*.*.*
- 255.*.*.*

MAC addresses separated by ":", ".", or "-"

[a-zA-Z\d]{2}\:[a-zA-Z\d]{2}\:[a-zA-Z\d]{2}\:[a-zA-Z\d]{2}\:[a-zA-Z\d]{2}\:[a-zA-Z\d]{2}
[a-zA-Z\d]{2}-[a-zA-Z\d]{2}-[a-zA-Z\d]{2}-[a-zA-Z\d]{2}-[a-zA-Z\d]{2}
[a-zA-Z\d]{2}\.[a-zA-Z\d]{2}\.[a-zA-Z\d]{2}\.[a-zA-Z\d]{2}\.[a-zA-Z\d]{2}\.[a-zA-Z\d]{2}

Allowed

- 00:00:00:00:00:aa
- 00:00:00:00:00:bb
- 00-00-00-00-00-aa
- 00-00-00-00-00-bb
- 00.00.00.00.00.aa
- 00.00.00.00.00bb

TODO/Investigate

ccoVeille commented 3 months ago

The link is behind a login page, so somehow limited.

Could you please complete they issue description to provide meaningful information ? thanks

aireilly commented 3 months ago

Yes I will collate a list for discussion here.

aireilly commented 2 months ago

Also create a customer sensitive information in YAML CR Vale rule for code samples. See https://github.com/redhat-documentation/vale-at-red-hat/issues/825

The rule would work by suggesting a generic title for all name fields. Could be adapted for other fields too.