(fix) Fix collabora regex and secContext, move validation docs to per app (#1078)
* Better regex on collabora * bump collabora * Move per-app validation to per-app docs * Update valid_chars and allowPrivEsc on collabora * revert bump
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# Input Validation
|
||||
|
||||
__`LATITUDE`__ and __`LONGITUDE`__
|
||||
Accepted formats are:
|
||||
|
||||
- Float (eg. `24.2028`)
|
||||
|
||||
Regex used to match this: `^[0-9]{1,}\.{1}[0-9]{1,}$`
|
||||
You can try live [here](https://regex101.com/r/xsLGWN/1)
|
||||
|
||||
---
|
||||
|
||||
_If you find a field that you think it needs validation, please open an issue on github_
|
||||
@@ -0,0 +1,30 @@
|
||||
# Input Validation
|
||||
|
||||
__`Domain(s) using collabora`__
|
||||
Accepted formats are:
|
||||
|
||||
- Single domain (eg. `cloud.mydomain.com`)
|
||||
- Multiple domains (eg. `cloud.mydomain.com|nextcloud.mydomain.com`) - Each domain is separated with `|`
|
||||
|
||||
Regex used to match those: `^([a-z]{1,}\.[a-z]{1,}\.[a-z]{1,})((\|[a-z]{1,}\.[a-z]{1,}\.[a-z]{1,}))*$`
|
||||
You can try live [here](https://regex101.com/r/AQFh2g/1)
|
||||
|
||||
__`Server Name`__
|
||||
Accepted formats are:
|
||||
|
||||
- Single domain (eg. `collabora.mydomain.com`)
|
||||
|
||||
Regex used to match this: `^([a-z]{1,}\.[a-z]{1,}\.[a-z]{1,})$`
|
||||
You can try live [here](https://regex101.com/r/xCjpW7/1)
|
||||
|
||||
__`Password for WebUI`__
|
||||
Accepted formats are:
|
||||
|
||||
- Letters, Numbers, Symbols, Minimum 8 characters (eg. `dg523$*a`) - It accepts `a-z`, `A-Z`, `0-9` and `!@#$%^&*?`
|
||||
|
||||
Regex used to match those: `[a-zA-Z0-9!@#$%^&*?]{8,}`
|
||||
You can try live [here](https://regex101.com/r/ef3V88/1)
|
||||
|
||||
---
|
||||
|
||||
_If you find a field that you think it needs validation, please open an issue on github_
|
||||
@@ -0,0 +1,13 @@
|
||||
# Input Validation
|
||||
|
||||
__`APP_KEY`__
|
||||
Accepted formats are:
|
||||
|
||||
- Letters, Numbers, Symbols, Exactly 32 characters (eg. `!oqVA9o2@br#$6vAyk8LLrDm54X5EtjD`) - It accepts `a-z`, `A-Z`, `0-9` and `!@#$%^&*?`
|
||||
|
||||
You can try live [here](https://regex101.com/r/OR879w/1)
|
||||
Regex used to match this: `[a-zA-Z0-9!@#$%^&*?]{32}`
|
||||
|
||||
---
|
||||
|
||||
_If you find a field that you think it needs validation, please open an issue on github_
|
||||
Reference in New Issue
Block a user