Skip to main content

Bind gRPC unary calls to the AlgoVoi keystone -- a server interceptor gives every call a content-addressed execution_ref (keystone-only edition, Apache-2.0)

Project description

algovoi-keystone-grpc

Keystone Integration

Bind gRPC unary calls to the AlgoVoi keystone -- a server interceptor gives every call a content-addressed execution_ref. Open, keystone-only edition, Apache-2.0. Byte-compatible with algovoi-execution-ref. Available on request -- see https://docs.algovoi.co.uk/keystone-connectors

from algovoi_keystone_grpc import keystone_server_interceptor

server = grpc.server(executor, interceptors=[keystone_server_interceptor(on_execution=record)])
# each unary call carrying x-keystone-decision-ref metadata is bound to an execution_ref;
# the outcome is COMMITTED, or FAILED if the handler raises.

The decision_ref comes from call metadata (default x-keystone-decision-ref), a static value, or a resolver callable. keystone_unary_handler(...) wraps a single behaviour with no gRPC dependency; rpc_execution_ref(...) computes the ref standalone. Streaming handlers pass through unbound.

A rejected or failed operation is recorded with outcome SKIPPED / FAILED; tamper_detected(...) recomputes any binding offline.

Keystone-only edition

The open edition binds and verifies each operation. The signed, hash-linked chain of operations (PQC + CCC ingest) is the commercial tier.

License

Apache-2.0. Copyright AlgoVoi.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

algovoi_keystone_grpc-0.1.3-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file algovoi_keystone_grpc-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for algovoi_keystone_grpc-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 65409027535b559c702c357a3044744da7fd110ff994f84fb34cca0a76398018
MD5 5ab7ee7b4ae4b3f771667dc440a5d397
BLAKE2b-256 f6c013971163f3e410a311643ed19364bd143e9e0fd0a124dea4225ebad440b2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page