Skip to content

Ensure /v1/cert.pem endpoint reads certificates after rotation#218

Merged
bors[bot] merged 1 commit intomasterfrom
fixservecert
Aug 27, 2019
Merged

Ensure /v1/cert.pem endpoint reads certificates after rotation#218
bors[bot] merged 1 commit intomasterfrom
fixservecert

Conversation

@mkmik
Copy link
Copy Markdown
Contributor

@mkmik mkmik commented Aug 7, 2019

#143 introduced key rotation, but we didn't update the cert.pem serving path

@mkmik mkmik requested a review from jjo August 7, 2019 13:56
@mkmik mkmik force-pushed the fixservecert branch 4 times, most recently from 680df76 to 415a21e Compare August 7, 2019 16:04
@mkmik mkmik requested a review from atomatt August 27, 2019 10:15
certUtil "k8s.io/client-go/util/cert"
)

func TestHttpCert(t *testing.T) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I see this is a new file so I assume there were no tests for the /v1/cert.pem endpoint until now? Thanks for adding one!

However, should there be a distinct test that replaces cert once the server is running (simulating a key rotation) and checks the latest cert is returned?

Copy link
Copy Markdown
Contributor Author

@mkmik mkmik Aug 27, 2019

Choose a reason for hiding this comment

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

thanks for encouraging me to write a proper test :-p
done

@mkmik
Copy link
Copy Markdown
Contributor Author

mkmik commented Aug 27, 2019

bors r+

bors Bot added a commit that referenced this pull request Aug 27, 2019
218: Ensure /v1/cert.pem endpoint reads certificates after rotation r=mkmik a=mkmik

#143 introduced key rotation, but we didn't update the cert.pem serving path

Co-authored-by: Marko Mikulicic <mkm@bitnami.com>
@bors
Copy link
Copy Markdown
Contributor

bors Bot commented Aug 27, 2019

Build succeeded

@bors bors Bot merged commit 96fe4a9 into master Aug 27, 2019
@bors bors Bot deleted the fixservecert branch August 27, 2019 15:56
@mkmik mkmik added this to the v0.8.2 milestone Aug 28, 2019
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