Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Allow overriding base Temporal server config and client options #75

Merged
merged 23 commits into from
Jun 28, 2022

Conversation

mightyshazam
Copy link
Contributor

@mightyshazam mightyshazam commented May 18, 2022

What changed?
I added command line options to specify certificates to enable tls and mutual tls.

Why?
This change allows more thorough SDK testing without having to stand up a temporal server.

How did you test it?

  • Tested against samples
  • Tested against samples using tls and mtls
  • Tested with curl
  • Add two tests to temporaltest

Potential risks
The worst case scenario is that use cases without tls no longer work

Is hotfix candidate?
No

cmd/temporalite/main.go Outdated Show resolved Hide resolved
internal/liteconfig/config.go Outdated Show resolved Hide resolved
options.go Outdated Show resolved Hide resolved
temporaltest/server.go Outdated Show resolved Hide resolved
temporaltest/server_test.go Outdated Show resolved Hide resolved
temporaltest/tls.go Outdated Show resolved Hide resolved
temporaltest/tls.go Outdated Show resolved Hide resolved
temporaltest/tls.go Outdated Show resolved Hide resolved
temporaltest/server.go Outdated Show resolved Hide resolved
Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

Only minor things, looks good IMO!

temporaltest/server.go Outdated Show resolved Hide resolved
temporaltest/tls_test.go Outdated Show resolved Hide resolved
temporaltest/options.go Outdated Show resolved Hide resolved
temporaltest/options.go Outdated Show resolved Hide resolved
temporaltest/server.go Outdated Show resolved Hide resolved
cmd/temporalite/main.go Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Merging #75 (b005946) into main (0f25777) will decrease coverage by 0.02%.
The diff coverage is 77.55%.

@@            Coverage Diff             @@
##             main      #75      +/-   ##
==========================================
- Coverage   39.55%   39.52%   -0.03%     
==========================================
  Files          12       12              
  Lines         766      802      +36     
==========================================
+ Hits          303      317      +14     
- Misses        441      463      +22     
  Partials       22       22              
Impacted Files Coverage Δ
cmd/temporalite/main.go 1.00% <0.00%> (-0.13%) ⬇️
internal/liteconfig/config.go 81.69% <100.00%> (-0.12%) ⬇️
options.go 47.27% <100.00%> (+4.13%) ⬆️
temporaltest/options.go 100.00% <100.00%> (ø)
temporaltest/server.go 80.00% <100.00%> (+0.77%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

cmd/temporalite/main.go Outdated Show resolved Hide resolved
cmd/temporalite/main.go Outdated Show resolved Hide resolved
cmd/temporalite/main.go Outdated Show resolved Hide resolved
cmd/temporalite/main.go Outdated Show resolved Hide resolved
options.go Outdated Show resolved Hide resolved
temporaltest/options.go Outdated Show resolved Hide resolved
temporaltest/server.go Outdated Show resolved Hide resolved
temporaltest/tls_test.go Outdated Show resolved Hide resolved
internal/liteconfig/config.go Show resolved Hide resolved
options.go Outdated Show resolved Hide resolved
mightyshazam and others added 9 commits June 21, 2022 18:25
Co-authored-by: Jacob LeGrone <jlegrone@users.noreply.github.com>
Co-authored-by: Jacob LeGrone <jlegrone@users.noreply.github.com>
Co-authored-by: Jacob LeGrone <jlegrone@users.noreply.github.com>
Co-authored-by: Jacob LeGrone <jlegrone@users.noreply.github.com>
Co-authored-by: Jacob LeGrone <jlegrone@users.noreply.github.com>
temporaltest/options.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@jlegrone jlegrone left a comment

Choose a reason for hiding this comment

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

looks good, thanks for bearing with me!

@jlegrone jlegrone changed the title Adding tls Allow overriding base Temporal server config and client options Jun 28, 2022
@jlegrone jlegrone enabled auto-merge (squash) June 28, 2022 15:04
@jlegrone jlegrone merged commit 349fdfc into temporalio:main Jun 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants