Closed r-pufky closed 4 years ago
Appreciate the detailed report, @r-pufky. I'll try to have a look at this within the next day, if someone else doesn't get there first.
It looks like this can be closed. It appears the 3000.2->3000.3 upgrade had some wonky pillar caching issues. I had to stop master/minion, manually clear caches and reboot for this state to apply correctly.
I've verified on two separate machines now.
@r-pufky OK, thanks for confirming that there aren't any problems -- closing this issue.
Your setup
Formula commit hash / release tag
5b88c1b / 0.5.3 / 2019-10-19
Versions reports (master & minion)
Minion
Master
Pillar / config used
Bug details
Describe the bug
When applying the denial rule
deny: True
, the rule is applied but matched forANY
instead of the specified subnet.This results in all SSH connections being blocked.
Expected behaviour
Using the same configuration from above, the expected results are:
Which will appropriately deny SSH traffic from
172.31.255.0/24
and allow normal SSH traffic.This can be independently verified by manually inserting the filter via the CLI, which works:
Attempts to fix the bug
I've dug into the code, and think I've identified the problem line. wherein the
from_addr
is somehow being interpreted as None, andany
is being returned as one of the command tokens instead of172.31.255.0/24
.