Skip to content

test: servidor TLS local dos testes exige TLS 1.2+ - #2

Merged
andrenfe merged 1 commit into
masterfrom
fix/codeql-test-tls
Oct 9, 2026
Merged

andrenfe merged 1 commit into
masterfrom
fix/codeql-test-tls

Conversation

@andrenfe

@andrenfe andrenfe commented Oct 9, 2026

Copy link
Copy Markdown
Member

Corrige o alerta CodeQL #1 (py/insecure-protocol, high) em tests/unit/test_transport.py.

O contexto TLS do servidor local usado nos testes (ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)) não fixava a versão mínima, e o CodeQL sinaliza que ele aceitaria TLS 1.0/1.1. O SDK não é afetado: o contexto do cliente já força TLS 1.2+ (src/nfeio/_config.py, minimum_version = TLSv1_2, inclusive em contextos fornecidos pelo usuário). A correção aplica o mesmo piso ao servidor de teste.

@andrenfe andrenfe self-assigned this Oct 9, 2026
@andrenfe
andrenfe merged commit 5fd8c09 into master Oct 9, 2026
15 checks passed
@andrenfe
andrenfe deleted the fix/codeql-test-tls branch October 9, 2026 04:07
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

Successfully merging this pull request may close these issues.

1 participant