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

Use ConfigMaps CreationDate for JKS CreateDate property #144

Merged
merged 1 commit into from
Apr 26, 2023
Merged

Use ConfigMaps CreationDate for JKS CreateDate property #144

merged 1 commit into from
Apr 26, 2023

Conversation

vinzent
Copy link
Contributor

@vinzent vinzent commented Mar 30, 2023

This requires the keystore-go to be updated to v4 and this requires at least go 1.17. So i've updated to go 1.20 too.

I've added a new test case to check the equality of the JKS after two reconciles. The issues only started to exist, when then ca-bundle.crt contained many certs. So i've included the Mozilla CA list as testdata. Once I remove
keystore.WithOrderedAliases(), the test fails.

Fixes #142

@vinzent
Copy link
Contributor Author

vinzent commented Mar 30, 2023

I will now build the image and test it on our internal cluster.

@vinzent
Copy link
Contributor Author

vinzent commented Apr 19, 2023

@raffaelespazzoli I can confirm, that with this patch applied, the ConfigMap truststore.jks is no more updated on every restart of the cert-utils-operator pods.

@raffaelespazzoli
Copy link
Contributor

can you rebase?

This requires the keystore-go to be updated to v4 and this requires
at least go 1.17. So i've updated to go 1.20 too.

I've added a new test case to check the equality of the JKS
after two reconciles. The issues only started to exist, when
then ca-bundle.crt contained many certs. So i've included the
Mozilla CA list as testdata. Once I remove
`keystore.WithOrderedAliases()`, the test fails.

Fixes #142
@vinzent
Copy link
Contributor Author

vinzent commented Apr 26, 2023

can you rebase?

done.

@raffaelespazzoli raffaelespazzoli merged commit 3b0bfc9 into redhat-cop:master Apr 26, 2023
12 checks passed
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.

truststore.jks in ConfigMaps updated on every pod restart
2 participants