bulwark
bulwark copied to clipboard
Permission checks should use BTreeSet instead of Vec
This issue tracks the suggested improvement to replace with for storing allowed HTTP domains and remote state key prefixes in and functions. This change aims to enhance performance by enabling faster lookups and more efficient permission checks.
Related PR: https://github.com/bulwark-security/bulwark/pull/202 Comment: https://github.com/bulwark-security/bulwark/pull/202#discussion_r1516967044
The verify_http_domains and verify_remote_state_prefixes functions should take a BTreeSet<String> parameter instead.