pyvider 2025-01-27
Expanded the rpcplugin server-side handshake implementation with a new
42 files · 2,072+ · 901-

Server Handshake Response Builder

21 files changed
  • terraform_handshake.py Updated terraform_handshake.py (+10/-7 lines)
  • handshake.py Added handshake.py (+125 lines)
  • 2025-01-26-1036-claude.md Added 2025-01-26-1036-claude.md (+136 lines)
  • dynamic-logging.md Updated dynamic-logging.md (+1/-1 lines)
  • notes.md Updated notes.md (+14/-1 lines)
  • env.sh Updated env.sh (+2/-1 lines)
  • zipcode.py Updated zipcode.py (+1/-1 lines)
  • random_complex_object.py Updated random_complex_object.py (+1/-1 lines)
  • config.py Updated config.py (+2/-2 lines)
  • core.py Updated core.py (+1/-1 lines)
  • metadata.py Updated metadata.py (+1/-1 lines)
  • handler.py Updated handler.py (+1/-1 lines)
  • components.py Updated components.py (+2/-2 lines)
  • discovery.py Updated discovery.py (+1/-1 lines)
  • tfplugin6_pb2_grpc.py Added tfplugin6_pb2_grpc.py (+933 lines)
  • tfplugin6_pb2.py Updated tfplugin6_pb2.py (+161/-159 lines)
  • tfplugin6_pb2_grpc.py Updated tfplugin6_pb2_grpc.py (+11/-8 lines)
  • __init__.py Updated __init__.py (+17/-17 lines)
  • decorators.py Updated decorators.py (+2/-1 lines)
  • map.py Updated map.py (+1/-1 lines)
  • crypto.py Updated crypto.py (+57/-1 lines)
  • Added build_handshake_response async function to handshake.py (125+ lines) that constructs the pipe-delimited handshake response string streamline behavioral
    2 files
    • terraform_handshake.py
    • handshake.py
  • Handles both TCP (using 127.0.0.1:port format) and Unix socket transports (with unix: prefix) decouple errata
    26 files
    • 2025-01-26-1036-claude.md
    • notes.md
    • env.sh
    • client.py
    • config.py
    • .gitignore
    • build.sh
    • env.sh
    • gen_certs.sh
    • simple-go-client
    • simple-go-client.go
    • simple-go-server
    • simple-go-server.go
    • simple-py-client.py
    • simple-py-server.py
    • test.sh
    • test_kv_impl_1638.py
    • gen-certs.sh
    • handshake.py
    • security.py
    • server.py
    • gen-certs.sh
    • tls-check.py
    • unix.py
    • __init__.py
    • crypto.py
  • Strips PEM headers and base64 padding from server certificate before including in response harden behavioral
    26 files
    • 2025-01-26-1036-claude.md
    • notes.md
    • env.sh
    • client.py
    • config.py
    • .gitignore
    • build.sh
    • env.sh
    • gen_certs.sh
    • simple-go-client
    • simple-go-client.go
    • simple-go-server
    • simple-go-server.go
    • simple-py-client.py
    • simple-py-server.py
    • test.sh
    • test_kv_impl_1638.py
    • gen-certs.sh
    • handshake.py
    • security.py
    • server.py
    • gen-certs.sh
    • tls-check.py
    • unix.py
    • __init__.py
    • crypto.py
  • Removed dead code X_build_handshake_response variant deprecate internal
    26 files
    • 2025-01-26-1036-claude.md
    • notes.md
    • env.sh
    • client.py
    • config.py
    • .gitignore
    • build.sh
    • env.sh
    • gen_certs.sh
    • simple-go-client
    • simple-go-client.go
    • simple-go-server
    • simple-go-server.go
    • simple-py-client.py
    • simple-py-server.py
    • test.sh
    • test_kv_impl_1638.py
    • gen-certs.sh
    • handshake.py
    • security.py
    • server.py
    • gen-certs.sh
    • tls-check.py
    • unix.py
    • __init__.py
    • crypto.py

Server Module

2 files changed
  • simple-py-server.py Removed simple-py-server.py (-97 lines)
  • server.py Updated server.py (+60/-7 lines)
  • Expanded server.py with improved server setup logic including transport binding interface internal
    2 files
    • simple-py-server.py
    • server.py
  • Added SSL credential debug logging harden behavioral
    2 files
    • server.py
    • __init__.py
  • Removed dead code X_setup_server method (35 lines) deprecate internal
    2 files
    • server.py
    • __init__.py

Unix Socket Transport

2 files changed
  • tcp.py Updated tcp.py (+1/-1 lines)
  • unix.py Updated unix.py (+201/-54 lines)
  • Significantly expanded transport/unix.py (255 lines changed) with more robust socket lifecycle management decouple internal
    1 file
    • unix.py
  • Improved listen, connect, and cleanup operations for Unix domain sockets deprecate errata
    1 file
    • unix.py

Security Module

1 file changed
  • security.py Updated security.py (+15/-4 lines)
  • Added additional certificate logging and validation in security.py harden behavioral
    1 file
    • security.py
  • Reverted config env var from PLUGIN_SERVER_CERT_REAL back to PLUGIN_SERVER_CERT baseline internal
    1 file
    • security.py

Certificate Generation Script

16 files changed
  • client.py Updated client.py (+2/-1 lines)
  • config.py Updated config.py (+1/-1 lines)
  • .gitignore Added .gitignore (+1 lines)
  • build.sh Updated build.sh (+4/-4 lines)
  • env.sh Updated env.sh (+48/-49 lines)
  • gen_certs.sh Removed gen_certs.sh (-8 lines)
  • simple-go-client Updated simple-go-client (+0/-0 lines)
  • simple-go-client.go Removed simple-go-client.go (-189 lines)
  • simple-go-server Updated simple-go-server (+0/-0 lines)
  • simple-go-server.go Removed simple-go-server.go (-118 lines)
  • simple-py-client.py Removed simple-py-client.py (-158 lines)
  • test.sh Updated test.sh (+2/-2 lines)
  • test_kv_impl_1638.py Updated test_kv_impl_1638.py (+1/-1 lines)
  • gen-certs.sh Added gen-certs.sh (+128 lines)
  • gen-certs.sh Added gen-certs.sh (+128 lines)
  • tls-check.py Updated tls-check.py (+0/-0 lines)
  • Added src/pyvider/rpcplugin/gen-certs.sh for generating test certificates qualify internal
    1 file
    • gen-certs.sh