Skip to content

Conversation

@enocom
Copy link
Member

@enocom enocom commented Feb 15, 2023

No description provided.

@enocom enocom requested a review from a team as a code owner February 15, 2023 20:10
Copy link
Contributor

@jackwotherspoon jackwotherspoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff! LGTM

@enocom enocom merged commit fc5c435 into main Feb 15, 2023
@enocom enocom deleted the token-auth-fix branch February 15, 2023 21:33
enocom added a commit to GoogleCloudPlatform/alloydb-go-connector that referenced this pull request Aug 23, 2025
This commit ensures conflicting credential options result in a
user-facing error.

This commit moves all the dialer config initialization into a single
function in options.go. This will help the migration to supporting
auth.Credentials and makes the relationship between all the options
clear. Previously, there was a mix of option functions setting various
fields, possibly returning errors, and the dialer initializer doing
additional configuration work. This made it hard to understand how the
different credential options related to one another and hid the bug of
allowing callers to set conflicting options.

In addition, this commit adds end to end tests to verify the
credential-related options work as intended. This is a belated port of
GoogleCloudPlatform/cloud-sql-go-connector#460.

Related to #646
enocom added a commit to GoogleCloudPlatform/alloydb-go-connector that referenced this pull request Aug 23, 2025
This commit ensures conflicting credential options result in a
user-facing error.

This commit moves all the dialer config initialization into a single
function in options.go. This will help the migration to supporting
auth.Credentials and makes the relationship between all the options
clear. Previously, there was a mix of option functions setting various
fields, possibly returning errors, and the dialer initializer doing
additional configuration work. This made it hard to understand how the
different credential options related to one another and hid the bug of
allowing callers to set conflicting options.

In addition, this commit adds end to end tests to verify the
credential-related options work as intended. This is a belated port of
GoogleCloudPlatform/cloud-sql-go-connector#460.

Related to #646
enocom added a commit to GoogleCloudPlatform/alloydb-go-connector that referenced this pull request Aug 23, 2025
This commit ensures conflicting credential options result in a
user-facing error.

This commit moves all the dialer config initialization into a single
function in options.go. This will help the migration to supporting
auth.Credentials and makes the relationship between all the options
clear. Previously, there was a mix of option functions setting various
fields, possibly returning errors, and the dialer initializer doing
additional configuration work. This made it hard to understand how the
different credential options related to one another and hid the bug of
allowing callers to set conflicting options.

In addition, this commit adds end to end tests to verify the
credential-related options work as intended. This is a belated port of
GoogleCloudPlatform/cloud-sql-go-connector#460.

Related to #646
enocom added a commit to GoogleCloudPlatform/alloydb-go-connector that referenced this pull request Aug 23, 2025
This commit ensures conflicting credential options result in a
user-facing error.

This commit moves all the dialer config initialization into a single
function in options.go. This will help the migration to supporting
auth.Credentials and makes the relationship between all the options
clear. Previously, there was a mix of option functions setting various
fields, possibly returning errors, and the dialer initializer doing
additional configuration work. This made it hard to understand how the
different credential options related to one another and hid the bug of
allowing callers to set conflicting options.

In addition, this commit adds end to end tests to verify the
credential-related options work as intended. This is a belated port of
GoogleCloudPlatform/cloud-sql-go-connector#460.

Related to #646
enocom added a commit to GoogleCloudPlatform/alloydb-go-connector that referenced this pull request Aug 23, 2025
This commit ensures conflicting credential options result in a
user-facing error.

This commit moves all the dialer config initialization into a single
function in options.go. This will help the migration to supporting
auth.Credentials and makes the relationship between all the options
clear. Previously, there was a mix of option functions setting various
fields, possibly returning errors, and the dialer initializer doing
additional configuration work. This made it hard to understand how the
different credential options related to one another and hid the bug of
allowing callers to set conflicting options.

In addition, this commit adds end to end tests to verify the
credential-related options work as intended. This is a belated port of
GoogleCloudPlatform/cloud-sql-go-connector#460.

Related to #646
enocom added a commit to GoogleCloudPlatform/alloydb-go-connector that referenced this pull request Aug 26, 2025
This commit ensures conflicting credential options result in a
user-facing error.

This commit moves all the dialer config initialization into a single
function in options.go. This will help the migration to supporting
auth.Credentials and makes the relationship between all the options
clear. Previously, there was a mix of option functions setting various
fields, possibly returning errors, and the dialer initializer doing
additional configuration work. This made it hard to understand how the
different credential options related to one another and hid the bug of
allowing callers to set conflicting options.

In addition, this commit adds end to end tests to verify the
credential-related options work as intended. This is a belated port of
GoogleCloudPlatform/cloud-sql-go-connector#460.

Related to #646
enocom added a commit to GoogleCloudPlatform/alloydb-go-connector that referenced this pull request Aug 26, 2025
This commit ensures conflicting credential options result in a
user-facing error.

This commit moves all the dialer config initialization into a single
function in options.go. This will help the migration to supporting
auth.Credentials and makes the relationship between all the options
clear. Previously, there was a mix of option functions setting various
fields, possibly returning errors, and the dialer initializer doing
additional configuration work. This made it hard to understand how the
different credential options related to one another and hid the bug of
allowing callers to set conflicting options.

In addition, this commit adds end to end tests to verify the
credential-related options work as intended. This is a belated port of
GoogleCloudPlatform/cloud-sql-go-connector#460.

Related to #646
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.

2 participants