pyvider 2025-01-21
Added `py-kv-client-insecure
36 files · 1,783+ · 785-

Insecure KV Client Example

36 files changed
  • debugging-2025-01-20-1256.md Updated debugging-2025-01-20-1256.md (+23/-5 lines)
  • env.sh Updated env.sh (+74/-6 lines)
  • kv-data-hello Removed kv-data-hello (-1 lines)
  • kv-data-hi Removed kv-data-hi (-1 lines)
  • example-kv-go-client-log-client-cert.md Removed example-kv-go-client-log-client-cert.md (-48 lines)
  • example-kv-go-client-log-server-cert.txt Removed example-kv-go-client-log-server-cert.txt (-48 lines)
  • example-kv-go-client-log.txt Removed example-kv-go-client-log.txt (-36 lines)
  • example-py-client-failure-client-cert.md Removed example-py-client-failure-client-cert.md (-48 lines)
  • example-py-client-failure-server-cert.md Removed example-py-client-failure-server-cert.md (-48 lines)
  • example-py-client-failure.txt Removed example-py-client-failure.txt (-176 lines)
  • go-kv-client-automtls-client-cert.txt Added go-kv-client-automtls-client-cert.txt (+48 lines)
  • go-kv-client-automtls-disabled.txt Added go-kv-client-automtls-disabled.txt (+276 lines)
  • go-kv-client-automtls-log.txt Added go-kv-client-automtls-log.txt (+89 lines)
  • go-kv-client-automtls-server-cert.txt Added go-kv-client-automtls-server-cert.txt (+48 lines)
  • py-client-client-cert.txt Added py-client-client-cert.txt (+48 lines)
  • py-client-log.txt Added py-client-log.txt (+153 lines)
  • py-client-server-cert.txt Added py-client-server-cert.txt (+48 lines)
  • py-insecure-go-server-log.txt Added py-insecure-go-server-log.txt (+43 lines)
  • py-kv-client-insecure-logs.txt Added py-kv-client-insecure-logs.txt (+36 lines)
  • main.go Updated main.go (+18/-2 lines)
  • validate-env-certs.go Added validate-env-certs.go (+327 lines)
  • main.go Updated main.go (+33/-88 lines)
  • py-kv-client-insecure.py Added py-kv-client-insecure.py (+142 lines)
  • secure-client.py Added secure-client.py (+194 lines)
  • test_basic.py Removed test_basic.py (-72 lines)
  • client.py Updated client.py (+31/-24 lines)
  • config.py Updated config.py (+89/-30 lines)
  • handshake.py Updated handshake.py (+9/-9 lines)
  • security.py Updated security.py (+17/-101 lines)
  • server.py Updated server.py (+9/-11 lines)
  • conftest.py Updated conftest.py (+2/-2 lines)
  • run_tcp_server.py Updated run_tcp_server.py (+1/-7 lines)
  • test_client.py Updated test_client.py (+2/-2 lines)
  • test_client_grpc.py Updated test_client_grpc.py (+10/-7 lines)
  • test_security.py Updated test_security.py (+11/-11 lines)
  • x_test_server.py Updated x_test_server.py (+2/-2 lines)
  • Added src/pyvider/rpcplugin/examples/grpc/py-kv-client-insecure.py (142 lines) for testing KV Put/Get operations over an insecure gRPC channel qualify internal
    1 file
    • py-kv-client-insecure.py
  • Includes raw Unix socket connection testing via socket.AF_UNIX before establishing gRPC channel qualify internal
    1 file
    • socket.AF_UNIX
  • Uses grpc.insecure_channel with grpc.channel_ready_future for connection readiness verification interface internal
    2 files
    • grpc.insecure_channel
    • grpc.channel_ready_future
  • Tests Put and Get operations with value matching validation qualify internal
    14 files
    • client.py
    • config.py
    • debugging-2025-01-20-1256.md
    • env.sh
    • kv-data-hello
    • kv-data-hi
    • py-insecure-go-server-log.txt
    • py-kv-client-insecure-logs.txt
    • validate-env-certs.go
    • py-kv-client-insecure.py
    • secure-client.py
    • test_basic.py
    • handshake.py
    • security.py

Client Trust Chain

1 file changed
  • client.py Changes to client.py
  • Modified _create_grpc_channel to create a combined trust chain by concatenating server cert and client cert PEM strings decouple internal
    1 file
    • client.py
  • Changed root_certificates parameter from server cert only to the combined trust chain decouple internal
    1 file
    • client.py

RPCPluginConfig

15 files changed
  • client.py Changes to client.py
  • config.py Changes to config.py
  • debugging-2025-01-20-1256.md Changes to debugging-2025-01-20-1256.md
  • env.sh Changes to env.sh
  • kv-data-hello Changes to kv-data-hello
  • kv-data-hi Changes to kv-data-hi
  • py-client-log.txt Changes to py-client-log.txt
  • py-insecure-go-server-log.txt Changes to py-insecure-go-server-log.txt
  • py-kv-client-insecure-logs.txt Changes to py-kv-client-insecure-logs.txt
  • validate-env-certs.go Changes to validate-env-certs.go
  • py-kv-client-insecure.py Changes to py-kv-client-insecure.py
  • secure-client.py Changes to secure-client.py
  • test_basic.py Changes to test_basic.py
  • handshake.py Changes to handshake.py
  • security.py Changes to security.py
  • Added PLUGIN_SERVER_ENDPOINT, PLUGIN_SERVER_CERT, PLUGIN_CLIENT_CERT, PLUGIN_CLIENT_KEY to required environment variables baseline internal
    15 files
    • client.py
    • config.py
    • debugging-2025-01-20-1256.md
    • env.sh
    • kv-data-hello
    • kv-data-hi
    • py-client-log.txt
    • py-insecure-go-server-log.txt
    • py-kv-client-insecure-logs.txt
    • validate-env-certs.go
    • py-kv-client-insecure.py
    • secure-client.py
    • test_basic.py
    • handshake.py
    • security.py
  • Added validate_certificates method that loads and inspects both server and client X.509 certificates instantiate internal
    15 files
    • client.py
    • config.py
    • debugging-2025-01-20-1256.md
    • env.sh
    • kv-data-hello
    • kv-data-hi
    • py-client-log.txt
    • py-insecure-go-server-log.txt
    • py-kv-client-insecure-logs.txt
    • validate-env-certs.go
    • py-kv-client-insecure.py
    • secure-client.py
    • test_basic.py
    • handshake.py
    • security.py

Removed Old Examples

2 files changed
  • test-simple2.py Updated test-simple2.py
  • test_basic.py Updated test_basic.py
  • Removed examples/grpc/test-simple2.py (82 lines) qualify internal
    1 file
    • test-simple2.py
  • Removed examples/grpc/test_basic.py (72 lines) interface internal
    1 file
    • test_basic.py