Class: Outliers::Resources::Aws::Ec2::SecurityGroup
- Inherits:
-
Outliers::Resource
- Object
- Outliers::Resource
- Outliers::Resources::Aws::Ec2::SecurityGroup
- Defined in:
- lib/outliers/resources/aws/ec2/security_group.rb
Instance Attribute Summary
Attributes inherited from Outliers::Resource
Instance Method Summary collapse
Methods inherited from Outliers::Resource
#id, #initialize, key, #method_missing, verifications
Constructor Details
This class inherits a constructor from Outliers::Resource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Outliers::Resource
Instance Method Details
#no_public_internet_ingress? ⇒ Boolean
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/outliers/resources/aws/ec2/security_group.rb', line 6 def no_public_internet_ingress? logger.debug "Verifying '#{id}'." source..select do |i| if !i.egress? && (i.ip_ranges.include? "0.0.0.0/0") logger.debug "Security Group '#{id}' is open to '#{i.ip_ranges.join(', ')}' via '#{i.protocol}'." false else true end end.any? end |