Skip to content

Conversation

@evgeniy-scherbina
Copy link
Collaborator

@evgeniy-scherbina evgeniy-scherbina commented Jan 15, 2026

Relates to #143

Implement Stricter Domain Matching in Rules Engine

Summary

Implements stricter domain matching to prevent automatic subdomain matching, improving security by requiring explicit patterns.

Behavior Changes

Before:

  • domain=github.com → matches github.com and all subdomains (e.g., api.github.com, fake.github.com)

After:

  • domain=github.com → matches ONLY github.com (exact match)
  • domain=*.github.com → matches ONLY subdomains (not base domain)
  • To allow both: domain=github.com, domain=*.github.com

Security Impact

Prevents accidental matching of malicious subdomains (e.g., fake.github.com matching github.com rule).

Migration

Update existing rules that rely on automatic subdomain matching:

@evgeniy-scherbina evgeniy-scherbina force-pushed the yevhenii/strict-rules-engine branch from 069a9f9 to 4c55fbf Compare January 15, 2026 14:31
@evgeniy-scherbina evgeniy-scherbina force-pushed the yevhenii/strict-rules-engine branch from ecae77a to 0db0440 Compare January 15, 2026 17:44
@evgeniy-scherbina evgeniy-scherbina marked this pull request as ready for review January 15, 2026 17:55
Copy link
Collaborator

@f0ssel f0ssel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All for stricter syntax here

@evgeniy-scherbina evgeniy-scherbina force-pushed the yevhenii/strict-rules-engine branch from e4f7585 to 7d5a99a Compare January 15, 2026 18:15
@evgeniy-scherbina evgeniy-scherbina force-pushed the yevhenii/strict-rules-engine branch from 7d5a99a to 7af16a3 Compare January 15, 2026 18:17
@evgeniy-scherbina evgeniy-scherbina merged commit c207d41 into main Jan 15, 2026
5 checks passed
@evgeniy-scherbina evgeniy-scherbina deleted the yevhenii/strict-rules-engine branch January 15, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants