-
Notifications
You must be signed in to change notification settings - Fork 5
Added support for temporal cloud via api key #29
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
base: main
Are you sure you want to change the base?
Conversation
/// requests to the Temporal server. This provides an alternative to mTLS certificate authentication | ||
/// for Temporal Cloud deployments. | ||
/// | ||
/// If both an API key and mTLS certificates are configured, the API key takes precedence for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m not sure if “takes precedence” is the right wording here, since both transport security and the API key are configured, I assume Temporal Cloud simply prioritizes authentication via the API key?
instrumentation: Instrumentation, | ||
namespace: String = "default", | ||
identity: String? = nil, | ||
apiKey: String? = nil, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this key can only be set once and cannot be updated anymore after that, in contrast to the C# SDK: https://github.com/temporalio/sdk-dotnet/blob/75baab835682b7ea7bc87b3bc225c8b0526b33da/src/Temporalio/Client/TemporalConnection.cs#L98
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// requests to the Temporal server. This provides an alternative to mTLS certificate authentication | ||
/// for Temporal Cloud deployments. | ||
/// | ||
/// If both an API key and mTLS certificates are configured, the API key takes precedence for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to above.
Also some tests seem to fail constantly with that change: https://github.com/apple/swift-temporal-sdk/actions/runs/18418846103/job/52488729769?pr=29 |
Motivation
Added support for API Keys for temporal cloud.