Disallow netmasks in devices' ip to prevent overlaps in firewall (#1140)

* fix: disallow netmasks in devices' ip to prevent overlaps in firewall

/32 is still allowed for ipv4 and /128 is still allowed for ipv6.
No migration is needed since netmasks for devices ips were broken
before-hand.

* chore: rename `validate_single_ip` function and reword its error message

* Update pre-commit to allow slash

* fix restore cache

* Refactor a bit

* Fix clobbered restore-keys

* Break cache

Co-authored-by: Jamil Bou Kheir <jamilbk@users.noreply.github.com>
This commit is contained in:
Gabi
2022-11-24 03:56:22 -03:00
committed by GitHub
parent 7e552ab06e
commit 116de06bf4
6 changed files with 62 additions and 4 deletions

View File

@@ -33,7 +33,6 @@ jobs:
key: ${{ runner.os }}-mix-otp-25-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-otp-25-${{ hashFiles('**/mix.lock') }}
${{ runner.os }}-mix-otp-25-
- uses: actions/cache@v3.0.11
name: Setup ruby cache
with: