Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(option/internaloption): add WithDefaultMTLSEndpointTemplate #2880

Closed
wants to merge 2 commits into from

Conversation

quartzmo
Copy link
Member

  • Add DefaultMTLSEndpointTemplate to internal/settings.go
  • Deprecate internaloption.WithDefaultMTLSEndpoint

* Add DefaultMTLSEndpointTemplate to internal/settings.go
* Deprecate internaloption.WithDefaultMTLSEndpoint
quartzmo added a commit to googleapis/google-cloud-go that referenced this pull request Nov 20, 2024
* Remove EXPERIMENTAL field DefaultMTLSEndpoint from httptransport.InternalOptions
* Add EXPERIMENTAL field DefaultMTLSEndpointTemplate to httptransport.InternalOptions
* Remove EXPERIMENTAL field DefaultMTLSEndpoint from grpctransport.InternalOptions
* Add EXPERIMENTAL field DefaultMTLSEndpointTemplate to grpctransport.InternalOptions

refs: googleapis/google-api-go-client#2880
quartzmo added a commit to quartzmo/google-cloud-go that referenced this pull request Nov 20, 2024
* Remove EXPERIMENTAL field DefaultMTLSEndpoint from httptransport.InternalOptions
* Add EXPERIMENTAL field DefaultMTLSEndpointTemplate to httptransport.InternalOptions
* Remove EXPERIMENTAL field DefaultMTLSEndpoint from grpctransport.InternalOptions
* Add EXPERIMENTAL field DefaultMTLSEndpointTemplate to grpctransport.InternalOptions
* Remove runtime error for mTLS usage with non-GDU universe domain.

refs: googleapis/google-api-go-client#2880
@quartzmo quartzmo marked this pull request as ready for review November 20, 2024 18:05
@quartzmo quartzmo requested a review from a team as a code owner November 20, 2024 18:05
@quartzmo quartzmo marked this pull request as draft November 20, 2024 18:33
@quartzmo
Copy link
Member Author

Because the new internal options "template" is set in google-cloud-go/pull/11159 from the old external options "endpoint", this means the internaloption.WithDefaultMTLSEndpointTemplate field added in #2880 will not be used. Instead, the workaround will be to set a templatized value (something like https://test.mtls.UNIVERSE_DOMAIN/) in internaloption.WithDefaultMTLSEndpoint.

@quartzmo quartzmo closed this Nov 21, 2024
quartzmo added a commit to googleapis/google-cloud-go that referenced this pull request Nov 21, 2024
* remove runtime error for mTLS usage with non-GDU universe domain
* add UNIVERSE_DOMAIN placeholder support for Options.DefaultMTLSEndpoint

refs: googleapis/google-api-go-client#2880
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant