tauri-apps / tauri-apps/plugins-workspace
[feat] Configurable cipher suite for http client
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 602
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 9
Description
### Describe the problem
I am working on a project and the server is requiring that I use a specific cipher suite. The http client doesn't seem to allow configuring this so I've had to clone tauri and reqwest locally to hard code the suites I need.
### Describe the solution you'd like
It would be nice if `getClient` allowed me to pass in an array of cipher suites to use. Something similar to the node api would be nice. It shouldn't be a global setting as you may want to use different suites for different requests.
In node.js you can create an http agent:
```
const agent = new Agent({
ciphers: [
"TLS_CHACHA20_POLY1305_SHA256",
"TLS_AES_128_GCM_SHA256",
"TLS_AES_256_GCM_SHA384",
"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256",
].join(":"),
honorCipherOrder: true,
minVersion: "TLSv1.2",
});
```
### Alternatives considered
_No response_
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.