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

[SSLNTV-33] Add Ubuntu workflow that uses OpenSSL 3.0.7 #25

Closed
wants to merge 2 commits into from

Conversation

Skyllarr
Copy link
Contributor

@Skyllarr Skyllarr commented Jan 27, 2023

@Skyllarr Skyllarr requested a review from fjuma as a code owner January 27, 2023 13:16
@Skyllarr Skyllarr changed the title [SSLNTV-32] Add Ubuntu workflow that uses OpenSSL 3.0.7 [SSLNTV-33] Add Ubuntu workflow that uses OpenSSL 3.0.7 Jan 27, 2023
name: Install latest version of OpenSSL in ubuntu
run: |
echo "Installed version of OpenSSL on ubuntu is "
openssl version
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this line be moved to the end of this section to ensure the version is correct after installing and building?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh maybe this line is meant to check the existing version first?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah right, I was using this to check the existing version first but it can be removed now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@fjuma ubuntu does not package 3.x versions, they just patch CVEs when needed to older versions IIUC. So I had to install manually and I cca followed this tutorial https://www.howtoforge.com/tutorial/how-to-install-openssl-from-source-on-linux/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This uses 3.0.7 since that is the one that got used in windows but we should configure windows version as well, I created https://issues.redhat.com/browse/SSLNTV-36 for now

echo "/usr/local/ssl/lib64" | sudo tee openssl-3.0.7.conf
sudo ldconfig -v
- if: matrix.os == 'ubuntu-latest'
name: Run tests with the built Linux native
Copy link
Contributor

@fjuma fjuma Jan 31, 2023

Choose a reason for hiding this comment

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

Are we missing a block for building the Ubuntu native with the newly installed OpenSSL?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, sorry I realized it a few minutes ago , it was built with the old version and then wilfdly-openssl tested with new one I think, working on it!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

macos is almost ready as well, will update both

Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome!

@fjuma
Copy link
Contributor

fjuma commented Aug 8, 2023

@Skyllarr Where did we get to on this? Do we have the Mac changes as well? (Would like to run CI on #16 so was just curious if we are almost ready for that.)

@Skyllarr
Copy link
Contributor Author

Skyllarr commented Aug 9, 2023

@Skyllarr Where did we get to on this? Do we have the Mac changes as well? (Would like to run CI on #16 so was just curious if we are almost ready for that.)

@fjuma I opened this PR #27 to check if the macos CI that I have works. The macOS passed CI, but windows job failed. But the Windows CI was merged already #23 so not sure what changed, it now has issues locating libssl. I tried a "test" commit that changes path to openssl https://github.com/wildfly-security/wildfly-openssl-natives/pull/27/commits but it did not help.

You can let me know if the macOS in #27 looks good to you in the current state, and if so I can update this ubuntu job accordingly

@Skyllarr
Copy link
Contributor Author

@fjuma Ready for review

name: Install latest version of OpenSSL in Ubuntu
run: |
cd /usr/local/src/
sudo wget https://www.openssl.org/source/openssl-3.0.7.tar.gz
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we update this to 3.1.2 now?

sudo make test
sudo make install
cd /etc/ld.so.conf.d/
echo "/usr/local/ssl/lib64" | sudo tee openssl-3.0.7.conf
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here?

openssl version
export WILDFLY_OPENSSL_NATIVES_VERSION=${{ steps.build-wildfly-openssl-natives-on-ubuntu.outputs.WILDFLY_OPENSSL_NATIVES_VERSION }}
echo Running tests with WildFly OpenSSL Natives $WILDFLY_OPENSSL_NATIVES_VERSION
mvn -B verify --file pom.xml -Dorg.wildfly.openssl.path="/usr/local/src/openssl-3.0.7" -Dversion.org.wildfly.openssl.natives=$WILDFLY_OPENSSL_NATIVES_VERSION
Copy link
Contributor

Choose a reason for hiding this comment

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

And here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thanks!

@fjuma
Copy link
Contributor

fjuma commented Aug 31, 2023

Thanks @Skyllarr! CI failed for some reason so I've re-triggered it.

@Skyllarr
Copy link
Contributor Author

Skyllarr commented Sep 1, 2023

Superseded by #30

@Skyllarr Skyllarr closed this Sep 1, 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.

2 participants