feat: update version to 1.0.40 and add rejectUnauthorized option for HTTPS agent
All checks were successful
CI Pipeline / build-and-test (push) Successful in 46s
CI Pipeline / publish (push) Successful in 13s

This commit is contained in:
Leandro Costa 2026-01-24 11:11:36 -03:00
parent ca6cd330aa
commit b78ae3a520
5 changed files with 6 additions and 15 deletions

View file

@ -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.