Skip to content

💥 TLS enabled if API key is provided#1847

Merged
THardy98 merged 5 commits intomainfrom
enable-tls-if-apikey
Dec 3, 2025
Merged

💥 TLS enabled if API key is provided#1847
THardy98 merged 5 commits intomainfrom
enable-tls-if-apikey

Conversation

@THardy98
Copy link
Contributor

@THardy98 THardy98 commented Dec 1, 2025

What was changed

DWISOTT

  1. Part of Assume TLS enabled if API key provided in SDKs features#687

  2. How was this tested:
    Unit tests

  3. Any docs updates needed?
    Maybe?

@THardy98 THardy98 requested a review from a team as a code owner December 1, 2025 21:09
@THardy98 THardy98 changed the title TLS enabled if API key is provided 💥 TLS enabled if API key is provided Dec 1, 2025
return typeof tls === 'object' ? (tls === null ? undefined : tls) : tls ? {} : undefined;
}

export function defaultTLSFromApiKey(
Copy link
Contributor

Choose a reason for hiding this comment

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

Why introduce a new function for this? Can't we simply pass a second argument to normalizeTlsConfig?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@mjameswh mjameswh left a comment

Choose a reason for hiding this comment

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

You missed a call to normalizeTlsConfig() in cloud-operations-client.ts.

@THardy98 THardy98 force-pushed the enable-tls-if-apikey branch from c160b48 to 3585a46 Compare December 2, 2025 18:23
@THardy98 THardy98 requested a review from mjameswh December 2, 2025 19:41
@THardy98 THardy98 merged commit 47fb852 into main Dec 3, 2025
51 of 52 checks passed
@THardy98 THardy98 deleted the enable-tls-if-apikey branch December 3, 2025 00:21
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