feat: update version to 1.0.40 and add rejectUnauthorized option for HTTPS agent
This commit is contained in:
parent
ca6cd330aa
commit
b78ae3a520
5 changed files with 6 additions and 15 deletions
10
README.md
10
README.md
|
|
@ -159,11 +159,6 @@ const client = new LhispOauthClient({
|
|||
await client.get({ path: "/status" });
|
||||
```
|
||||
|
||||
### Observações de segurança
|
||||
|
||||
- O `https.Agent` é criado com `rejectUnauthorized: false` (com ou sem certificado). Isso **desabilita validação do certificado** do servidor TLS.
|
||||
- Em produção, isso pode reduzir segurança. Se você precisar de validação TLS, será necessário ajustar a implementação.
|
||||
|
||||
---
|
||||
|
||||
## English
|
||||
|
|
@ -319,8 +314,3 @@ const client = new LhispOauthClient({
|
|||
|
||||
await client.get({ path: "/status" });
|
||||
```
|
||||
|
||||
### Security notes
|
||||
|
||||
- The internal `https.Agent` is created with `rejectUnauthorized: false` (with or without PFX). This **disables TLS server certificate validation**.
|
||||
- In production, this may reduce security. If you need strict TLS validation, the implementation must be adjusted.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue