Module: Olyx::Guardrails::Secrets::InternalEndpointSource
- Defined in:
- lib/olyx/guardrails/secrets/internal_endpoint_source.rb
Overview
Expands internal-host suffix matches to the complete endpoint token.
Class Method Summary collapse
Class Method Details
.call(source) ⇒ Object
12 13 14 15 16 |
# File 'lib/olyx/guardrails/secrets/internal_endpoint_source.rb', line 12 def call(source) source.to_enum(:scan, NetworkPatterns::INTERNAL_SUFFIX).map do finding(source, Regexp.last_match) end end |