pyvider
2025-01-20
Continued rpcplugin client and config refinements
39 files · 1,820+ · 562-
Client Handshake and Channel
3 files changed
README.mdAdded README.md (+240 lines)output.pyUpdated output.py (+1/-1 lines)priming.mdAdded priming.md (+135 lines)
- Expanded handshake debug logging to show each parsed field on its own line (handshake_version, protocol_version, transport_name, endpoint, protocol, server_cert_pem)
interface
behavioral
2 files
client.pyhandshake.py
- Changed
_create_grpc_channelto useself.client_cert_pemandself.client_key_peminstance attributes directly instead of function parameters decouple internal2 files
self.client_cert_pemself.client_key_pem
- Server cert no longer normalized via
normalize_pemduring handshake; stored as-is from the handshake response decouple behavioral38 files
output.pypriming.mdclient.pyconfig.pyREADME.mdgreeterbuild.shdebugging-2025-01-20-1256.mdenv.shgo-kv-example-log.txtkv-clientkv-data-hellokv-go-servergo-kv-client-automtls-client-cert.txtgo-kv-client-automtls-disabled.txtgo-kv-client-automtls-log.txtgo-kv-client-automtls-server-cert.txtpy-client-client-cert.txtpy-client-log.txtpy-client-server-cert.txtmain.gomain.gocertutil.gogrpc.gointerface.gotest-simple.pytest-simple2.pyhandshake.pygo-client-get.txtgo-client-put.txtsecurity.pyserver.pyconftest.pyrun_tcp_server.pytest_client.pytest_client_grpc.pytest_security.pyx_test_server.py
- Removed
grpc.default_authorityoption from Unix socket channel creation interface behavioral1 file
grpc.default_authority
RPCPluginConfig Expansion
36 files changed
client.pyChanges to client.pyconfig.pyChanges to config.pyREADME.mdChanges to README.mdgreeterChanges to greeterbuild.shChanges to build.shdebugging-2025-01-20-1256.mdChanges to debugging-2025-01-20-1256.mdenv.shChanges to env.shgo-kv-example-log.txtChanges to go-kv-example-log.txtkv-clientChanges to kv-clientkv-data-helloChanges to kv-data-hellokv-go-serverChanges to kv-go-servergo-kv-client-automtls-client-cert.txtChanges to go-kv-client-automtls-client-cert.txtgo-kv-client-automtls-disabled.txtChanges to go-kv-client-automtls-disabled.txtgo-kv-client-automtls-log.txtChanges to go-kv-client-automtls-log.txtgo-kv-client-automtls-server-cert.txtChanges to go-kv-client-automtls-server-cert.txtpy-client-client-cert.txtChanges to py-client-client-cert.txtpy-client-log.txtChanges to py-client-log.txtpy-client-server-cert.txtChanges to py-client-server-cert.txtmain.goChanges to main.gomain.goChanges to main.gocertutil.goChanges to certutil.gogrpc.goChanges to grpc.gointerface.goChanges to interface.gotest-simple.pyChanges to test-simple.pytest-simple2.pyChanges to test-simple2.pyhandshake.pyChanges to handshake.pygo-client-get.txtChanges to go-client-get.txtgo-client-put.txtChanges to go-client-put.txtsecurity.pyChanges to security.pyserver.pyChanges to server.pyconftest.pyChanges to conftest.pyrun_tcp_server.pyChanges to run_tcp_server.pytest_client.pyChanges to test_client.pytest_client_grpc.pyChanges to test_client_grpc.pytest_security.pyChanges to test_security.pyx_test_server.pyChanges to x_test_server.py
- Added
PLUGIN_SERVER_ENDPOINT,PLUGIN_SERVER_CERT,PLUGIN_CLIENT_CERT,PLUGIN_CLIENT_KEYto required environment variables baseline internal36 files
client.pyconfig.pyREADME.mdgreeterbuild.shdebugging-2025-01-20-1256.mdenv.shgo-kv-example-log.txtkv-clientkv-data-hellokv-go-servergo-kv-client-automtls-client-cert.txtgo-kv-client-automtls-disabled.txtgo-kv-client-automtls-log.txtgo-kv-client-automtls-server-cert.txtpy-client-client-cert.txtpy-client-log.txtpy-client-server-cert.txtmain.gomain.gocertutil.gogrpc.gointerface.gotest-simple.pytest-simple2.pyhandshake.pygo-client-get.txtgo-client-put.txtsecurity.pyserver.pyconftest.pyrun_tcp_server.pytest_client.pytest_client_grpc.pytest_security.pyx_test_server.py
- Added
validate_certificatesstatic method that loads and logs subject/serial for both server and client PEM certificates instantiate internal36 files
client.pyconfig.pyREADME.mdgreeterbuild.shdebugging-2025-01-20-1256.mdenv.shgo-kv-example-log.txtkv-clientkv-data-hellokv-go-servergo-kv-client-automtls-client-cert.txtgo-kv-client-automtls-disabled.txtgo-kv-client-automtls-log.txtgo-kv-client-automtls-server-cert.txtpy-client-client-cert.txtpy-client-log.txtpy-client-server-cert.txtmain.gomain.gocertutil.gogrpc.gointerface.gotest-simple.pytest-simple2.pyhandshake.pygo-client-get.txtgo-client-put.txtsecurity.pyserver.pyconftest.pyrun_tcp_server.pytest_client.pytest_client_grpc.pytest_security.pyx_test_server.py
- Config now imported as
configsingleton in client module baseline internal36 files
client.pyconfig.pyREADME.mdgreeterbuild.shdebugging-2025-01-20-1256.mdenv.shgo-kv-example-log.txtkv-clientkv-data-hellokv-go-servergo-kv-client-automtls-client-cert.txtgo-kv-client-automtls-disabled.txtgo-kv-client-automtls-log.txtgo-kv-client-automtls-server-cert.txtpy-client-client-cert.txtpy-client-log.txtpy-client-server-cert.txtmain.gomain.gocertutil.gogrpc.gointerface.gotest-simple.pytest-simple2.pyhandshake.pygo-client-get.txtgo-client-put.txtsecurity.pyserver.pyconftest.pyrun_tcp_server.pytest_client.pytest_client_grpc.pytest_security.pyx_test_server.py
Test File Relocation
36 files changed
client.pyUpdated client.py (+33/-30 lines)config.pyUpdated config.py (+65/-30 lines)README.mdUpdated README.md (+34/-8 lines)greeterUpdated greeter (+0/-0 lines)build.shUpdated build.sh (+2/-2 lines)debugging-2025-01-20-1256.mdAdded debugging-2025-01-20-1256.md (+76 lines)env.shUpdated env.sh (+32/-6 lines)go-kv-example-log.txtRemoved go-kv-example-log.txt (-1 lines)kv-clientUpdated kv-client (+0/-0 lines)kv-data-helloUpdated kv-data-hello (+1/-1 lines)kv-go-serverUpdated kv-go-server (+0/-0 lines)go-kv-client-automtls-client-cert.txtAdded go-kv-client-automtls-client-cert.txt (+48 lines)go-kv-client-automtls-disabled.txtAdded go-kv-client-automtls-disabled.txt (+276 lines)go-kv-client-automtls-log.txtAdded go-kv-client-automtls-log.txt (+89 lines)go-kv-client-automtls-server-cert.txtAdded go-kv-client-automtls-server-cert.txt (+48 lines)py-client-client-cert.txtAdded py-client-client-cert.txt (+48 lines)py-client-log.txtAdded py-client-log.txt (+153 lines)py-client-server-cert.txtAdded py-client-server-cert.txt (+48 lines)main.goUpdated main.go (+19/-3 lines)main.goUpdated main.go (+33/-88 lines)certutil.goUpdated certutil.go (+18/-1 lines)grpc.goUpdated grpc.go (+2/-2 lines)interface.goUpdated interface.go (+3/-3 lines)test-simple.pyAdded test-simple.py (+148 lines)test-simple2.pyAdded test-simple2.py (+82 lines)handshake.pyUpdated handshake.py (+16/-12 lines)go-client-get.txtRemoved go-client-get.txt (-137 lines)go-client-put.txtRemoved go-client-put.txt (-136 lines)security.pyUpdated security.py (+131/-57 lines)server.pyUpdated server.py (+11/-13 lines)conftest.pyUpdated conftest.py (+2/-2 lines)run_tcp_server.pyUpdated run_tcp_server.py (+1/-7 lines)test_client.pyUpdated test_client.py (+2/-2 lines)test_client_grpc.pyUpdated test_client_grpc.py (+10/-7 lines)test_security.pyUpdated test_security.py (+11/-11 lines)x_test_server.pyUpdated x_test_server.py (+2/-2 lines)