GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — handwritten layer didn't handle mtls correctly · Issue #224 · googleapis/python-pubsub

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

Copy link
Copy link
Closed
#226
#225
Closed
handwritten layer didn't handle mtls correctly#224
#226
#225
Copy link
Assignees
arithmetic1728
Labels
api: pubsubIssues related to the googleapis/python-pubsub API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@arithmetic1728
arithmetic1728
opened on Oct 19, 2020
Issue body actions

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. product-auto-label
    added
    api: pubsubIssues related to the googleapis/python-pubsub API.
    on Oct 19, 2020
  2. arithmetic1728
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Oct 19, 2020
  3. arithmetic1728 commented on Oct 20, 2020

    @arithmetic1728
    arithmetic1728
    on Oct 20, 2020
    ContributorAuthor
    More actions

    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. yoshi-automation
    added
    triage meI really want to be triaged.
    on Oct 20, 2020
  5. arithmetic1728
    self-assigned this
    on Oct 20, 2020
  6. gcf-merge-on-green
    added a commit that references this issue on Oct 21, 2020

    fix: expose ssl credentials from transport (#677)

    da0ee3e
  7. arithmetic1728
    closed this as completedin #225on Oct 21, 2020
  8. arithmetic1728
    reopened this on Oct 21, 2020
  9. arithmetic1728
    closed this as completedin #226on Oct 22, 2020
  10. parthea
    added a commit that references this issue on Nov 24, 2025

    fix: expose ssl credentials from transport (#677)

    f6bc1f1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @arithmetic1728
    arithmetic1728

Labels

api: pubsubIssues related to the googleapis/python-pubsub API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.