Script Pattern Matching
Our script pattern matching feature allows you to shrink the amount of dynamic scripts visible on your dashboard and streamline your PCI DSS script review process.
Available parameters to use for pattern matching
Pattern matching allows for 3 kinds of custom parameters to be used:
- ' * ' Asterisk wildcard: Used to apply a wildcard for all query parameters after a certain point in the script url path.
- ' {} ' OR operator: To determine multiple OR values within the script url. Example : {1,2,3}, this will match all scripts that have the values 1, 2 or 3 within this part of the url path.
- ' : ' General Parameter: This will allow you to replace a certain part of the script url with a general parameter which will match all possible values within this part of the path. Example: https://cside.dev/static/chunks/:hash.js, to match all scripts with this url and dynamic hash.
Setup Instructions
1. Find a dynamic script you want to apply pattern matching to
- Click on your domain along the left hand side
- Find a dynamic script that generates a lot of requests
- Click on the pattern matching button along the right hand side
2. Choose to match all query parameters or apply a custom rule
Matching all query parameters
This can be used for those scripts with extra long query parameters that don't generally have much different use cases, to match them all easily.
This will match all query parameters within the url path and group them all to one individual script.
Custom pattern matching
This can be used for further customisation within script query parameters to allow for more precise specific groupings.
You will see the number of scripts that match these parameters just above the list of scripts shown before clicking create, then your dashboard will update so all of those scripts are grouped into one single file like in the image below.
3. Manage your script pattern matches
To manage and delete created script pattern matches, click on domains along the left hand side and select the dropdown for your chosen domain. Scroll to the bottom of the page, and you will see a list of your current applied pattern matches.
On the PCI Dashboard
No further customisation is required for this to be applied to the PCI DSS dashboard. Once a script has a pattern matching rule applied, this will also apply to the PCI Dashboard. This will greatly reduce the amount of dynamic scripts that need to be reviewed during the approval process.