Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unwanted and unused :trust-all parameter at aws-api http-client #203

Closed
souenzzo opened this issue Jan 13, 2022 · 2 comments
Closed

unwanted and unused :trust-all parameter at aws-api http-client #203

souenzzo opened this issue Jan 13, 2022 · 2 comments
Assignees

Comments

@souenzzo
Copy link

This line of code, that already has a TODO: fix comment, pass a :trust-all parameter to cognitect.http-client/create-client
https://github.com/cognitect-labs/aws-api/blob/v0.8.539/src/cognitect/aws/http/cognitect.clj
I can't add a reference to cognitect http-client, but in version 1.0.110, that is the one that I'm using, the only usage of this trust-all parameter looks like this:

(SslContextFactory. false) #_(boolean trust-all)

So this trust-all is not used at this version of http-client, but for ones using older/others versions of cognitect.http-client, it will be a security issue.

Can we remove this unused parameter?

As far I know, it is not desired to use options like this in prod scenarios.

[reference to SslContextFactory]
https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/jetty-util/src/main/java/org/eclipse/jetty/util/ssl/SslContextFactory.java#L208

@dchelimsky
Copy link
Contributor

This is merged to main and will be part of the next release, today or Monday

@dchelimsky
Copy link
Contributor

Released in version com.cognitect.aws/api-0.8.575

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

No branches or pull requests

2 participants