Skip to content

Expose dynamic client cert resolver via C bridge for language SDKs #1344

Description

@brucearctor

Context

Follow-up to #1338 / #1340.

The C bridge (temporalio-sdk-core-c-bridge) currently hardcodes client_cert_resolver: None in its TryFrom<&ClientTlsOptions> impl. This means language SDKs built on the C bridge (Python, Ruby, etc.) cannot use the dynamic certificate resolution feature.

Proposal

Add a client_cert_resolver_callback to the C bridge's ClientTlsOptions struct using a function pointer pattern, similar to the existing grpc_override_callback:

typedef struct ClientTlsOptions {
    // ... existing fields ...
    // Optional callback for dynamic cert resolution
    CertResolverCallback *cert_resolver;
} ClientTlsOptions;

The C bridge would wrap the callback in a ResolvesClientCert adapter struct.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions