You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add regression coverage for ingress subnet change actions
regress/ec.sh:127
These regression runs exercise backend subnet changes, but none exercises the new ingress IPv4 or IPv6 change action. An incorrect ingress option mapping or setting name could therefore pass the current runs. Add a regression case that changes each ingress subnet, checks the saved values, and runs the deployment with non-overlapping test networks; include the shared OSI load path if that product is part of this suite.
Validate bridge subnet CIDR values before persisting
src/settings.sh:245
--change-bridge-*-subnet-* checks only that the value is non-empty before force-writing it. For example, --change-bridge-ingress-subnet-ipv4 --bridge-ingress-subnet-ipv4 not-a-cidr saves an invalid network, and the next --run fails when the network is created while the bad setting remains. --init also writes unchecked CLI values through init_bridge_subnet_settings(). Validate CIDR syntax, prefix length, and IPv4/IPv6 family in a shared helper before either path persists the value.
Copy custom settings directly to the product directory
src/openvasd.sh:428
If the documented settings_dir override has a basename other than ${product}, this copies its files under that basename, but the next init_setting calls write to ${settings_dir_name}/${product}. That directory does not exist, so the writes fail and the archive lacks the expected product settings. Copy the source directory directly to the product-specific destination.
Reject trailing dots in IPv4 addresses
src/settings_validation.sh:156
read -a drops a trailing . before counting octets, so ipv4_valid '192.0.2.1.' succeeds. This also lets --domain-ip and IPv4 bridge CIDRs persist invalid addresses. Reject a trailing dot before splitting the address.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add: bridge-subnet-settings
Why
CPB-1004
References
CPB-1004
Checklist