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: hot-reload TLS certificates #2744

Merged
merged 1 commit into from
Oct 4, 2022
Merged

feat: hot-reload TLS certificates #2744

merged 1 commit into from
Oct 4, 2022

Conversation

alnr
Copy link
Contributor

@alnr alnr commented Sep 22, 2022

ory/hydra#2850 but for Kratos

@codecov
Copy link

codecov bot commented Sep 22, 2022

Codecov Report

Merging #2744 (ee8f300) into master (bdc3797) will decrease coverage by 0.05%.
The diff coverage is 92.85%.

@@            Coverage Diff             @@
##           master    #2744      +/-   ##
==========================================
- Coverage   75.22%   75.16%   -0.06%     
==========================================
  Files         294      294              
  Lines       17081    17082       +1     
==========================================
- Hits        12849    12840       -9     
- Misses       3253     3265      +12     
+ Partials      979      977       -2     
Impacted Files Coverage Δ
driver/config/config.go 82.91% <91.66%> (+0.06%) ⬆️
cmd/daemon/serve.go 86.63% <100.00%> (ø)
selfservice/strategy/oidc/strategy_registration.go 60.52% <0.00%> (-5.29%) ⬇️
selfservice/flow/login/handler.go 78.40% <0.00%> (-2.85%) ⬇️
selfservice/strategy/link/strategy_recovery.go 62.85% <0.00%> (+0.25%) ⬆️
selfservice/strategy/oidc/strategy_login.go 68.91% <0.00%> (+1.38%) ⬆️
x/http_secure_redirect.go 90.47% <0.00%> (+2.72%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@alnr alnr marked this pull request as ready for review September 23, 2022 13:55
Copy link
Member

@zepatrik zepatrik left a comment

Choose a reason for hiding this comment

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

Very nice 🎉
Sorry for the long review time, somehow forgot about this PR 😅
I just have some ideas how to simplify and improve the code a bit further 😉

return p.getTSLCertificates(
type CertFunc = func(*tls.ClientHelloInfo) (*tls.Certificate, error)

func (p *Config) GetTLSCertificatesForPublic(ctx context.Context) CertFunc {
Copy link
Member

Choose a reason for hiding this comment

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

It took me a few seconds to spot the typo 😂 nice find

driver/config/config.go Show resolved Hide resolved
driver/config/config_test.go Outdated Show resolved Hide resolved
driver/config/config_test.go Show resolved Hide resolved
driver/config/config_test.go Outdated Show resolved Hide resolved
internal/testhelpers/e2e_server.go Outdated Show resolved Hide resolved
driver/config/config.go Show resolved Hide resolved
@alnr alnr self-assigned this Oct 4, 2022
Copy link
Member

@zepatrik zepatrik left a comment

Choose a reason for hiding this comment

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

Thanks, this looks great now 😍

Copy link
Member

@aeneasr aeneasr left a comment

Choose a reason for hiding this comment

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

Awesome, thanks! Just a two questions :)

driver/config/config.go Show resolved Hide resolved
driver/config/config.go Show resolved Hide resolved
@aeneasr aeneasr merged commit 09751e6 into master Oct 4, 2022
@aeneasr aeneasr deleted the feat/tls-autoreload branch October 4, 2022 11:08
peturgeorgievv pushed a commit to senteca/kratos-fork that referenced this pull request Jun 30, 2023
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.

3 participants