-
- Downloads
Fix 500 error on IP restrictions when checking snippets
Previously, PostgreSQL's CIDR type was used for IP range checks which caused 500 errors when ranges didn't conform to CIDR format requirements (like having bits set to the right of mask, e.g. 1.1.1.1/22) This change: - Uses PostgreSQL's more lenient INET type instead of CIDR - Adds comprehensive test coverage for different IP scenarios: - IPs within/outside allowed ranges - Non-CIDR-compliant ranges - Multiple IP restrictions per group - Specific IP matching Changelog: changed EE: true
parent
912dd8ac
No related branches found
No related tags found
Showing
- config/feature_flags/development/snippet_ip_restrictions.yml 9 additions, 0 deletionsconfig/feature_flags/development/snippet_ip_restrictions.yml
- ee/app/finders/ee/snippets_finder.rb 12 additions, 1 deletionee/app/finders/ee/snippets_finder.rb
- ee/app/models/ee/snippet.rb 18 additions, 0 deletionsee/app/models/ee/snippet.rb
- ee/spec/finders/snippets_finder_spec.rb 49 additions, 0 deletionsee/spec/finders/snippets_finder_spec.rb
- ee/spec/models/snippet_spec.rb 96 additions, 0 deletionsee/spec/models/snippet_spec.rb
Please register or sign in to comment