Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When scanning the sites dora persists all port states and uses a `site` string as identifier. E.g. given the kea domain suffix of `lom.example.com` and a subdomain of `mysite.lom.example.com` then `mysite` is the site. Due to an oversight in strings operation the site became `mysite.` with trailing dot. That causes unmatched expectations when specifiying a `site` on the command line without the trailing dot. At Booking there are stale records w/o the trailing dot that were never deleted and cause redundant and dead-end scans. This fixes the string manipulation, i.e. removes the trailing dot. The idea is to let dora have at least one full run and then delete all records with trailing dot from the database manually: ```sql delete from scanned_port where site like '%.'; ```
- Loading branch information