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: implement java_keystore #9

Merged
merged 5 commits into from
Dec 6, 2023
Merged

feat: implement java_keystore #9

merged 5 commits into from
Dec 6, 2023

Conversation

thesayyn
Copy link
Collaborator

@thesayyn thesayyn commented Nov 17, 2023

This is somehow a port of jksutil into Java with parts taken from https://github.com/openjdk/jdk17u-dev/blob/a028120220f6fd28e39fe0f6190eb1f5da6a788d/make/jdk/src/classes/build/tools/generatecacerts/GenerateCacerts.java.

Using java and java_binary is less tedious than using go and go_binary since java comes bundled with java, therefore, there's no need to take dependency just for this.

@loosebazooka
Copy link
Member

Does this now become an environment specific build? I'm not sure I understand enough, but keytool is obtained from the build env?

@thesayyn
Copy link
Collaborator Author

Does this now become an environment specific build? I'm not sure I understand enough, but keytool is obtained from the build env?

No, we depend on an hermetic jdk toolchain to get the keytool, so this will work even if you don't have keytool installed locally.

@loosebazooka
Copy link
Member

Kk, lgtm after test fix.

@thesayyn
Copy link
Collaborator Author

eh, tests are failing because of timezone differences between my local machine and the CI. so interesting to find a new way of non-hermeticity.

@thesayyn thesayyn force-pushed the java_keystore branch 4 times, most recently from 3662841 to fa71658 Compare November 30, 2023 22:25
distroless/private/java_keystore.sh Outdated Show resolved Hide resolved
distroless/private/java_keystore.sh Outdated Show resolved Hide resolved
@thesayyn thesayyn force-pushed the java_keystore branch 11 times, most recently from 47732b2 to bfa6e2b Compare December 1, 2023 01:18
@thesayyn thesayyn force-pushed the java_keystore branch 5 times, most recently from 5da9be9 to f3b0139 Compare December 6, 2023 19:33
@thesayyn
Copy link
Collaborator Author

thesayyn commented Dec 6, 2023

@loosebazooka PTAL.

Copy link
Member

@loosebazooka loosebazooka left a comment

Choose a reason for hiding this comment

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

lgtm, I think maybe we can make the cert example change here before merge?

examples/java_keystore/BUILD.bazel Show resolved Hide resolved
examples/java_keystore/BUILD.bazel Show resolved Hide resolved
@thesayyn thesayyn merged commit 2db6073 into main Dec 6, 2023
7 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.

3 participants