Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Fully escape allowlist rules #2784

Merged
merged 2 commits into from
Jan 30, 2023
Merged

Conversation

ranweiler
Copy link
Member

Use regex::escape() to comprehensively treat rule expressions as regex literals. Then convert an escaped asterisk to a regex wildcard, and anchor.

@codecov-commenter
Copy link

codecov-commenter commented Jan 27, 2023

Codecov Report

Merging #2784 (94677ea) into main (6829318) will increase coverage by 1.83%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2784      +/-   ##
==========================================
+ Coverage   29.17%   31.00%   +1.83%     
==========================================
  Files         321      198     -123     
  Lines       38556    25563   -12993     
==========================================
- Hits        11247     7925    -3322     
+ Misses      27309    17638    -9671     
Impacted Files Coverage Δ
src/agent/coverage/src/allowlist.rs 73.72% <100.00%> (-1.28%) ⬇️
src/agent/coverage/src/allowlist/tests.rs 100.00% <100.00%> (ø)
src/ApiService/ApiService/onefuzzlib/Auth.cs
src/ApiService/ApiService/onefuzzlib/Scheduler.cs
...vice/onefuzzlib/notifications/NotificationsBase.cs
...piService/ApiService/onefuzzlib/ReproOperations.cs
src/ApiService/ApiService/onefuzzlib/AutoScale.cs
src/ApiService/ApiService/TestHooks/TestHooks.cs
src/ApiService/ApiService/HttpClient.cs
...ervice/ApiService/onefuzzlib/VmExtensionWrapper.cs
... and 115 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@ranweiler ranweiler merged commit 6d36f51 into microsoft:main Jan 30, 2023
@ranweiler ranweiler deleted the allowlist-escape branch January 30, 2023 15:14
@AdamL-Microsoft AdamL-Microsoft mentioned this pull request Feb 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants