circleci.test
circleci.test copied to clipboard
Ensure that only config from the local project is loaded.
It may be possible for a malicious jar to include a circleci_test/config.clj resource. Since config.clj contains arbitrary code and is evaluated we need to ensure that only a config.clj from the local project will ever be read.
It may be possible for a malicious jar to include their own version of clojure/core.clj too. If an attacker can get files onto your classpath, it's already game over. It's difficult to imagine a scenario where an attacker would be foiled by a check on this file and not be able to trivially work around it by replacing a different file.
Sure makes sense, it'd be nice to protect against accidental inclusion of test config in a library at any rate.