Skip to content
This repository was archived by the owner on Oct 13, 2026. It is now read-only.
This repository was archived by the owner on Oct 13, 2026. It is now read-only.

handwritten layer didn't handle mtls correctly #224

Closed

Description

@arithmetic1728

The auto-generated layer (google/pubsub_v1) has mtls logic. This client creates a mtls channel based on environment variable settings and existence of device certificate.

However, the handwritten layer (google/cloud/pubsub_v1) creates a channel itself with mtls logic, so the mtls feature is completely missing.

Activity

  1. added
    api: pubsub
    on Oct 19, 2020
  2. added
    type: bug
    on Oct 19, 2020
  3. arithmetic1728 commented on Oct 20, 2020

    @arithmetic1728
    ContributorAuthor

    It seems the easiest solution is (using publisher client as an example):

    Create an PublisherClient instance in the handwritten publisher client constructor. PublisherClient is from the auto-generated layer, and it uses the mtls logic to determine the right api_endpoint and ssl_credentials. We then extract the api_endpoint and ssl_credentials from its transport. The handwritten publisher client can then use the ssl_credentials to create the channel, and use the api_endpoint as the target.

    This needs a bit of work from python microgenerator to expose api_endpoint and ssl_credentials from the transport class.

  4. added
    triage me
    on Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: pubsubtriage metype: bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions