You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 623512e
Browse filesBrowse the repository at this point in the historyBrowse files
fix(prover): match whole middle-label host wildcards like the runtime
The prover's host-pattern overlap only wildcard-matched the first DNS
label and compared the remaining labels literally, so it missed overlap
for the whole middle-label wildcards this PR added to the aws-s3 profile
(e.g. *.s3.*.amazonaws.com). It therefore under-reported
credential-associated policy risk (CWE-693).
Match label-for-label instead: a * (or partial * glob) matches exactly
one label in any position, literal labels compare literally, and a
leading ** still matches one or more labels. Cover matching and
non-matching label counts in tests.
Signed-off-by: Russell Bryant <[email protected]>
0 commit comments