pyvider
2025-02-01
Introduced a new `crypto/` subpackage within rpcplugin with modular key
83 files · 4,023+ · 3,493-
rpcplugin crypto Subpackage
75 files changed
__init__.pyAdded __init__.py (+40 lines)certificate.pyAdded certificate.py (+352 lines)certificate.py,cover.pyAdded certificate.py,cover.py (+343 lines)constants.pyAdded constants.py (+18 lines)generators.pyAdded generators.py (+72 lines)types.pyAdded types.py (+9 lines)test_certificate_chains.pyAdded test_certificate_chains.py (+129 lines)test_certificate_create.pyAdded test_certificate_create.py (+92 lines)test_certificate_credentials.pyAdded test_certificate_credentials.py (+129 lines)test_certificate_lifecycle.pyAdded test_certificate_lifecycle.py (+59 lines)test_certificate_loading.pyAdded test_certificate_loading.py (+133 lines)test_certificate_mtls.pyAdded test_certificate_mtls.py (+26 lines)test_certificate_properties.pyAdded test_certificate_properties.py (+147 lines)test_certificate_verify.pyAdded test_certificate_verify.py (+254 lines)test_crypto.pyAdded test_crypto.py (+32 lines)test_crypto_generators.pyAdded test_crypto_generators.py (+88 lines)crypto.pyAdded crypto.py (+79 lines)gource.confAdded gource.conf (+13 lines)loc-counter.shAdded loc-counter.sh (+3 lines)config.pyUpdated config.py (+10/-10 lines).bfileAdded .bfile (+3 lines)__init__.pyUpdated __init__.py (+1/-1 lines)config.pyUpdated config.py (+148/-134 lines)README.mdAdded README.md (+3 lines)diagnostic-report.mdUpdated diagnostic-report.md (+1/-1 lines)logging-emoji-matrix.mdAdded logging-emoji-matrix.md (+56 lines)system-requirements.txtAdded system-requirements.txt (+13 lines)build.shUpdated build.sh (+7/-7 lines)comments.mdUpdated comments.md (+1/-1 lines)env.shUpdated env.sh (+1/-1 lines)go-kv-client-automtls-client-cert.txtRemoved go-kv-client-automtls-client-cert.txt (-48 lines)go-kv-client-automtls-disabled.txtRemoved go-kv-client-automtls-disabled.txt (-276 lines)go-kv-client-automtls-log.txtRemoved go-kv-client-automtls-log.txt (-89 lines)go-kv-client-automtls-server-cert.txtRemoved go-kv-client-automtls-server-cert.txt (-48 lines)py-client-client-cert.txtRemoved py-client-client-cert.txt (-48 lines)py-client-log.txtRemoved py-client-log.txt (-153 lines)py-client-server-cert.txtRemoved py-client-server-cert.txt (-48 lines)py-insecure-go-server-log.txtRemoved py-insecure-go-server-log.txt (-43 lines)py-kv-client-insecure-logs.txtRemoved py-kv-client-insecure-logs.txt (-36 lines)main.goUpdated main.go (+4/-4 lines)py-kv-client-insecure.pyUpdated py-kv-client-insecure.py (+1/-1 lines)test.shUpdated test.sh (+6/-6 lines)test_kv_impl_1638.pyUpdated test_kv_impl_1638.py (+14/-14 lines)test_kv_integration.pyUpdated test_kv_integration.py (+10/-10 lines)kv-go-clientUpdated kv-go-client (+0/-0 lines)kv-go-serverUpdated kv-go-server (+0/-0 lines)client-log.txtRemoved client-log.txt (-172 lines)py-kv-server.pyUpdated py-kv-server.py (+3/-1 lines)exception.pyUpdated exception.py (+10/-6 lines)handshake.pyUpdated handshake.py (+196/-186 lines)__init__.pyAdded __init__.py (+26 lines)emoji_matrix.pyAdded emoji_matrix.py (+97 lines)protocol.pyUpdated protocol.py (+1/-1 lines)pyproject.tomlUpdated pyproject.toml (+3/-1 lines)rpcplugin.sublime-projectRemoved rpcplugin.sublime-project (-8 lines)security.pyUpdated security.py (+65/-270 lines)server.pyUpdated server.py (+143/-324 lines)__init__.pyUpdated __init__.py (+0/-0 lines)conftest.pyUpdated conftest.py (+31/-20 lines)run_tcp_server.pyUpdated run_tcp_server.py (+1/-1 lines)run_unix_server.pyUpdated run_unix_server.py (+1/-1 lines)test_client_grpc.pyUpdated test_client_grpc.py (+24/-19 lines)test_handshake_negotiation.pyUpdated test_handshake_negotiation.py (+25/-17 lines)test_handshake_responses.pyUpdated test_handshake_responses.py (+9/-9 lines)test_security.pyRemoved test_security.py (-356 lines)test_server.pyUpdated test_server.py (+119/-67 lines)x_test_cert.pyRemoved x_test_cert.py (-253 lines)x_test_mtls.pyRemoved x_test_mtls.py (-74 lines)x_test_server_2.pyAdded x_test_server_2.py (+149 lines)__init__.pyAdded __init__.py (+2 lines)base.pyAdded base.py (+4 lines)connection.pyAdded connection.py (+146 lines)tcp.pyUpdated tcp.py (+112/-59 lines)unix.pyUpdated unix.py (+156/-334 lines)utils.pyUpdated utils.py (+2/-1 lines)
- Added
src/pyvider/rpcplugin/crypto/__init__.pywith exports for key types, constants, and generators instantiate internal1 file
__init__.py
- Added
crypto/constants.pywithKEY_TYPE_RSA,KEY_TYPE_ECDSA, default key sizes, supported curves instantiate behavioral1 file
constants.py
- Added
crypto/types.pywithKeyPairandPublicKeytype definitions instantiate internal1 file
types.py
- Added
crypto/generators.pywithgenerate_rsa_keypair,generate_ec_keypair, andKEY_GENERATORSdispatcher instantiate internal1 file
generators.py
Client Certificate Naming
5 files changed
client.pyUpdated client.py (+22/-100 lines)py-client.pyUpdated py-client.py (+3/-3 lines)py-kv-client.pyUpdated py-kv-client.py (+6/-5 lines)test_minimal_server_client.pyUpdated test_minimal_server_client.py (+1/-1 lines)x_test_client.pyUpdated x_test_client.py (+4/-4 lines)
- Renamed
client_cert_pemtoclient_certand_server_cert_pemto_server_certthroughoutclient.pydecouple internal5 files
client.pypy-client.pypy-kv-client.pytest_minimal_server_client.pyx_test_client.py
- Updated all references in handshake parsing, channel creation, environment variable passing, and TLS setup
harden
internal
5 files
__init__.pybase.pycredentials.pyhandshake.pyserver.py
Client TLS Setup Extraction
1 file changed
config.auto_mtlsUpdated config.auto_mtls
- Extracted TLS certificate initialization into
_setup_tlsmethod decouple internal2 files
client.pyclient.py
- TLS setup checks
config.auto_mtlsand either uses provided certificates from environment or generates self-signed ones usinggenerate_keypairandcreate_self_signed_x509_certificateharden internal1 file
config.auto_mtls
Security Import Cleanup
1 file changed
pyvider.rpcplugin.securityUpdated pyvider.rpcplugin.security
Test File Renames
3 files changed
test_transport_unix.pyRemoved test_transport_unix.py (-221 lines)x_test_transport_tcp.pyUpdated x_test_transport_tcp.py (+0/-0 lines)x_test_transport_unix.pyAdded x_test_transport_unix.py (+365 lines)