-
Notifications
You must be signed in to change notification settings - Fork 680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port resource returns arrays #256
Comments
You might want to hold off on merging this until inspec goes 1.0. Currently several of the port tests will fail due to inspec/inspec#256.
I reviewed the implementation and the documentation. The challenge with the port resource is that is applies to all available ip addresses on the machine. From my point of view we should change the tests to reflect this behavior. This would look like the following:
In addition, we may think to extend the port variable with an IP parameter. This would enable us to just return one value instead of an array. e.g.
@thomascate @jjasghar @arlimus What do you think? |
I like this change. Thinking about this, people are going to be concerned about what IP things are listening on. So this would solve for "Make sure MySQL is only listening on localhost" etc. |
Not used in expeditor; check PR #256 Signed-off-by: Sonu Saha <sonu.saha@progress.com>
process, pid and protocol for port all get compared to an array instead of string/number causing weirdness like this
Thanks for reporting Thomas Cate
The text was updated successfully, but these errors were encountered: