Skip to content

feat: whitelist regex and SEL sync URLs by GitHub username#717

Open
Vidhin05 wants to merge 1 commit intoViren070:mainfrom
Vidhin05:feat/whitelist-github-usernames
Open

feat: whitelist regex and SEL sync URLs by GitHub username#717
Vidhin05 wants to merge 1 commit intoViren070:mainfrom
Vidhin05:feat/whitelist-github-usernames

Conversation

@Vidhin05
Copy link
Contributor

@Vidhin05 Vidhin05 commented Feb 11, 2026

Add GitHub username whitelist for regex and SEL sync

Summary

Adds two environment variables so community admins can whitelist trusted GitHub usernames instead of individual raw URLs for regex and SEL sync.

New environment variables

  • WHITELISTED_REGEX_PATTERNS_URLS_GITHUB_USERNAMES — whitelists https://raw.githubusercontent.com/<username>/ URLs for regex sync
  • WHITELISTED_SEL_URLS_GITHUB_USERNAMES — whitelists https://raw.githubusercontent.com/<username>/ URLs for SEL (Stream Expression Language) sync

Behavior

Provide a list of GitHub usernames. Any URL whose path starts with https://raw.githubusercontent.com/<username>/ is treated as whitelisted for the corresponding sync type. This lets you trust entire user/organization namespaces instead of maintaining long lists of raw URLs.

Example

WHITELISTED_REGEX_PATTERNS_URLS_GITHUB_USERNAMES=["Vidhin05"]
WHITELISTED_SEL_URLS_GITHUB_USERNAMES=["Vidhin05", "Tam-Taro"]

This whitelists all raw URLs under https://raw.githubusercontent.com/Vidhin05/ for regex and SEL sync; and https://raw.githubusercontent.com/Tam-Taro/ for SEL sync respectively.

Benefits

  • Simpler config — whitelist usernames instead of many URLs
  • Easier updates — new files or repos under a username are automatically allowed
  • Same security model — only explicitly listed usernames are whitelisted

@Vidhin05 Vidhin05 closed this Feb 11, 2026
@Vidhin05 Vidhin05 reopened this Feb 12, 2026
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.

1 participant